http://www.joshparker.us/php/securely_hashing_passwords_with_php.html
(Read More..)Sabtu, 29 Desember 2012
Jumat, 28 Desember 2012
gemicon
Gemicon is handcrafted icon set by Turqois,
which there 3 different sizes (16, 32, 64). Each icon created with
pixel-perfect shape layer on Photoshop. Download and get PNGs and PSDs
file.
Oh yes, it's FREE and suitable to implement here and there for your
next awesome project!
http://gemicon.net/
Rabu, 26 Desember 2012
php_fpm, nginx, php_value, and multiple values
MadMACs: MAC Address Spoofing and Host Name Randomizing App for Windows 7 (Should work in Windows Vista and Windows 8 too)
Minggu, 23 Desember 2012
Terminal Eye Candy
Sabtu, 22 Desember 2012
Cooperative multitasking using coroutines (in PHP!)
Be productive with the MySQL command line
Jumat, 21 Desember 2012
ppl The command line address book
ppl is free software made out of other free software. It's built on top of
Ruby and Git, and the completely free vcard address book format. Even your
phone can probably speak vcard.
http://ppladdressbook.org/
fabric - ssh
Fabric is a Python (2.5 or higher) library and command-line tool for
streamlining the use of SSH for application deployment or systems
administration tasks.
It provides a basic suite of operations for executing local or remote shell
commands (normally or via sudo) and uploading/downloading files, as well as
auxiliary functionality such as prompting the running user for input, or
aborting execution.
Typical use involves creating a Python module containing one or more functions,
then executing them via the fab command-line tool. Below is a small but
complete “fabfile” containing a single task:
http://docs.fabfile.org/en/1.5/
Attacking Ruby Session
Ruby on Rails Sessions
http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
(Read More..)Minggu, 16 Desember 2012
REDISLIVE
Visualize your redis instances, analyze query patterns and spikes.
https://github.com/kumarnitin/RedisLive
Sabtu, 15 Desember 2012
prettyPrint.js
prettyPrint.js is an in-browser JavaScript variable dumper, similar in functionality to ColdFusion's cfdump tag.
First, a preview:
https://github.com/padolsey/prettyPrint.js
GAS - Google Analytics on Steroids
GAS is a wrapper around the Google Analytics Tracking API from Google. It tries
to add new functionality while keeping the same API.
GAS is not an official Google library and GAS developers are not affiliated
with Google.
Installation
To install GAS download the script from download page and put it somewhere on your website. Also install the basic snippet on every page of your website. Be sure to change the Account Number (UA) and the correct gas.js file location.You can also use gas hosted on cdnjs.
The basic snippet looks like this:
https://github.com/cardinalpath/gas (Read More..)
Tweetable PHP-Non Alpha
I started to try and break the 10 charset limit of PHP non-alpha
after @InsertScript showed me that PHP Dev supports [] syntax for
arrays. I wondered if it would be possible to break the limit within
production PHP. At first I thought you could but then after some testing
I found that there was no way to concat without “.” and no way to call a
string as a function without $ and =. However since I got into PHP
Non-alpha again I thought why not try and improve it and make the code
tweetable.
The first hack I found was that underscore is usable in PHP as a
string since there is a function called “_”. Therefore we can create 0
by simply doing:
echo +_;
You can also create numbers and arrays using undefined variable references like so:
echo ++$_[];//prints 1
http://www.thespanner.co.uk/2012/12/13/tweetable-php-non-alpha
Persistent Terminal Sessions
Have you ever had a remote terminal session running, only to have
your connection drop out half way through a large task? Then, you
reconnect, not knowing anything about its progress (if any) and current
status.
Screen
is the solution to this problem. Screen allows you to start terminal
sessions that you can disconnect from and resume at any time.
I personally use screen a lot with Node.js
web servers, so I can kick off the process, and resume my terminal
session to check logs or errors, or restart the process if it died.
This article is an introduction to Screen for the average developer, including a few tips and tricks.
Installing
Screen is a Unix tool, so with Ubuntu, you can useapt-get
to install it:sudo apt-get install screen
http://webadvent.org/2012/persistent-terminal-sessions-by-remy-sharp
(Read More..)
CentOS / RHEL: Install ipset Administration Tool For IP Sets and IPTables
15 Greatest Open Source Terminal Applications Of 2012
Linux / Unix: Test Internet Connection Speed From Console Over SSH Command Line
Non-persistent connection performance improvements in 5.6
Jumat, 14 Desember 2012
TraceKit
Tracekit is a JavaScript library that automatically normalizes and exposes stack traces for unhandled exceptions across the 5 major browsers: IE, Firefox, Chrome, Safari, and Opera.
https://github.com/occ/TraceKit
(Read More..)DevTools tip: You can replay any XHR (POST or GET) within the Network tab in an XHR's context menu: http://t.co/1yjrMnjj
DevTools tip: You can replay any XHR (POST or GET) within the Network tab in an XHR's context menu: http://t.co/1yjrMnjj
(Read More..)Linux now supports full stack TCP Fast Open (http://t.co/hiooot2a) as for 3.7 http://t.co/r29f1C4M . TCP can be as fast as UDP!
Linux now supports full stack TCP Fast Open (http://t.co/hiooot2a) as for 3.7 http://t.co/r29f1C4M . TCP can be as fast as UDP!
(Read More..)Return Multiple Values From A Delphi Function
Porting of cURL to Android OS using NDK
Minggu, 09 Desember 2012
Watch.js 1.2.0
Watch.JS is a small library that brings a lot of possibilities. You may
know that the "Observer" design pattern involves executing some function
when an observed object changes. Other libraries exist that do this,
but with Watch.JS you will not have to change the way you develop. Take a
look at the examples to see how simple it is to add Watch.JS to your
code.
https://github.com/melanke/Watch.JS
timer.js
Timer.js is a periodic timer for Node.js and the browser.
https://github.com/fschaefer/Timer.js
oolib.js
oolib.js is a tiny JavaScript library that provides an original
solution to the age-old problem of JavaScript OOP encapsulation. It
offers the following features:
- Real encapsulation of object fields and private methods.
- Class inheritance. (The fields and private methods are accessible by the subclasses.)
- Support of object initialization and deinitialization.
- Super method call.
- Intuitive syntax.
- Only 1.9 kilobytes minified / 0.9 kilobytes gzipped.
http://idya.github.com/oolib/ (Read More..)
echo "foo:bar" | chpasswd #Quickest way to change password for user 'foo' to 'bar' under Linux/change a users password inside a script.
echo "foo:bar" | chpasswd #Quickest way to change password for user 'foo' to 'bar' under Linux/change a users password inside a script.
(Read More..)Numeral.js
http://numeraljs.com/ (Read More..)
tabIndent.js
he following textarea has been enhanced with tabIndent.js,
so that the tab key no longer takes you to the next input, but rather, acts like a text editor by inserting a tab character.
Multi-line highlighted text is also tab-able, and shift-tab removes a tab character instead.
http://julianlam.github.com/tabIndent.js/
AURA PHP
The Aura project provides independent library packages for PHP 5.4+.
These packages can be used alone, in concert with each other, or
combined into a full-stack framework of their own.
http://auraphp.github.com/
Common Linux tools on Android without root by installing BusyBox
Replication of the NOW() function (also, time travel)
Linux / Unix Command To Optimize and Compress PNG Files In Bulk
Linux: GNU/Screen Scroll Up and Down Look At Data
Gracefully Restart Nginx Web Server After Changes Made In a Config File
interesting that python hides itself in an mp3 file on android
Customize your distribution
The basic layout of a distribution is:AndroidManifest.xml - (*) android manifest (generated from templates)
assets/
private.mp3 - (*) fake package that will contain all the python installation
public.mp3 - (*) fake package that will contain your application
bin/ - contain all the apk generated from build.py
blacklist.txt - list of file patterns to not include in the APK
buildlib/ - internals libraries for build.py
build.py - build script to use for packaging your application
build.xml - (*) build settings (generated from templates)
default.properties - settings generated from your distribute.sh
libs/ - contain all the compiled libraries
local.properties - settings generated from your distribute.sh
private/ - private directory containing all the python files
lib/ this is where you can remove or add python libs.
python2.7/ by default, some modules are already removed (tests, idlelib, ...)
project.properties - settings generated from your distribute.sh
python-install/ - the whole python installation, generated from distribute.sh
not included in the final package.
res/ - (*) android resource (generated from build.py)
src/ - Java bootstrap
templates/ - Templates used by build.py
(*): Theses files are automatically generated from build.py, don't change them directly !
101 Tips to MySQL Tuning and Optimization
MySQL Server Hardware and OS Tuning:
1. Have enough physical memory to load your entire InnoDB file into memory – InnoDB is much faster when the file can be accessed in memory rather than from disk.2. Avoid Swap at all costs – swapping is reading from disk, its slow.
3. Use Battery-Backed RAM.
4. Use an advanced RAID – preferably RAID10 or higher.
5. Avoid RAID5 – the checksum needed to ensure integrity is costly.
6. Separate your OS and data partitions, not just logically, but physically – costly OS writes and reads will impact your database performance.
7. Put your mysql temp space and replication logs on a separate partition than your data – background writes will impact your database when it goes to write/read from disk.
8. More disks equals more speed.
9. Faster disks are better.
10. Use SAS over SATA.
11. Smaller disks are faster than larger disks, especially in RAID configs.
12. Use Battery-Backed Cache RAID controllers.
13. Avoid software raids.
14. Consider using Solid State IO Cards (not disk drives) for your data partition – these cards can sustain over 2GB/s writes for almost any amount of data.
15. On Linux set your swappiness value to 0 – no reason to cache files on a database server, this is more of a web server or desktop advantage.
16. Mount filesystem with noatime and nodirtime if available – no reason to update database file modification times for access.
17. Use XFS filesystem – a faster, smaller filesystem than ext3 and has more options for journaling, also ext3 has been shown to have double buffering issues with MySQL.
18. Tune your XFS filesystem log and buffer variables – for maximum performance benchmark.
19. On Linux systems, use NOOP or DEADLINE IO scheduler – the CFQ and ANTICIPATORY scheduler have been shown to be slow vs NOOP and DEADLINE scheduler.
20. Use a 64-bit OS – more memory addressable and usable to MySQL.
21. Remove unused packages and daemons from servers – less resource stealing.
22. Put your host that use MySQL and your MySQL host in a hosts file – no dns lookups.
23. Never force kill a MySQL process – you will corrupt your database and be running for the backups.
24. Dedicate your server to MySQL – background processes and other services can steal from the db cpu time.
MySQL Configuration:
26. Avoid O_DIRECT and EXT3 filesystem – you will serialize all your writes.
27. Allocate enough innodb_buffer_pool_size to load your entire InnoDB file into memory – less reads from disk.
28. Do not make innodb_log_file_size too big, with faster and more disks – flushing more often is good and lowers the recovery time during crashes.
29. Do not mix innodb_thread_concurrency and thread_concurrency variables – these two values are not compatible.
30. Allocate a minimal amount for max_connections – too many connections can use up your RAM and lock up your MySQL server.
31. Keep thread_cache at a relatively high number, about 16 – to prevent slowness when opening connections.
32. Use skip-name-resolve – to remove dns lookups.
33. Use query cache if your queries are repetitive and your data does not change often – however using query cache on data that changes often will give you a performance hit.
34. Increase temp_table_size – to prevent disk writes.
35. Increase max_heap_table_size – to prevent disk writes.
36. Do not set your sort_buffer_size too high – this is per connection and can use up memory fast.
37. Monitor key_read_requests and key_reads to determine your key_buffer size – the key read requests should be higher than your key_reads, otherwise you are not efficiently using your key_buffer.
38. Set innodb_flush_log_at_trx_commit = 0 will improve performance, but leaving it to default (1), you will ensure data integrity, you will also ensure replication is not lagging
39. Have a test environment where you can test your configs and restart often, without affecting production.
MySQL Schema Optimization:
41. Archive old data – to remove excessive row returns or searches on queries.
42. Put indexes on your data.
43. Do not overuse indexes, compare with your queries.
44. Compress text and blob data types – to save space and reduce number of disk reads.
45. UTF 8 and UTF16 is slower than latin1.
46. Use Triggers sparingly.
47. Keep redundant data to a minimum – do not duplicate data unnecessarily.
48. Use linking tables rather than extending rows.
49. Pay attention to your data types, use the smallest one possible for your real data.
50. Separate blob/text data from other data if other data is often used for queries when blob/text are not.
51. Check and optimize tables often.
52. Rewrite InnoDB tables often to optimize.
53. Sometimes, it is faster to drop indexes when adding columns and then add indexes back.
54. Use different storage engines for different needs.
55. Use ARCHIVE storage engine for Logging tables or Auditing tables – this is much more efficient for writes.
56. Store session data in memcache rather than MySQL – memcache allows for auto-expiring values and prevents you from having to create costly reads and writes to MySQL for temporal data.
57. Use VARCHAR instead CHAR when storing variable length strings – to save space since CHAR is fixed length and VARCHAR is not (utf8 is not affected by this).
58. Make schema changes incrementally – a small change can have drastic effects.
59. Test all schema changes in a development environment that mirrors production.
60. Do NOT arbitrarily change values in your config file, it can have disastrous affects.
61. Sometimes less is more in MySQL configs.
62. When in doubt use a generic MySQL config file.
64. Use EXPLAIN to determine queries are functioning appropriately.
65. Test your queries often to see if they are performing optimally – performance will change over time.
66. Avoid count(*) on entire tables, it can lock the entire table.
67. Make queries uniform so subsequent similar queries will use query cache.
68. Use GROUP BY instead of DISTINCT when appropriate.
69. Use indexed columns in WHERE, GROUP BY, and ORDER BY clauses.
70. Keep indexes simple, do not reuse a column in multiple indexes.
71. Sometimes MySQL chooses the wrong index, use USE INDEX for this case
72. Check for issues using SQL_MODE=STRICT.
73. Use a LIMIT on UNION instead of OR for less than 5 indexed fields.
74. Use INSERT ON DUPLICATE KEY or INSERT IGNORE instead of UPDATE to avoid the SELECT prior to update.
75. Use a indexed field and ORDER BY instead of MAX.
76. Avoid using ORDER BY RAND().
77. LIMIT M,N can actually slow down queries in certain circumstances, use sparingly.
78. Use UNION instead of sub-queries in WHERE clauses.
79. For UPDATES, use SHARE MODE to prevent exclusive locks.
80. On restarts of MySQL, remember to warm your database, to ensure that your data is in memory and queries are fast.
81. Use DROP TABLE then CREATE TABLE instead of DELETE FROM to remove all data from a table.
82. Minimize the data in your query to only the data you need, using * is overkill most of the time.
83. Consider persistent connections instead of multiple connections to reduce overhead.
84. Benchmark queries, including using load on the server, sometimes a simple query can have affects on other queries.
85. When load increases on your server, use SHOW PROCESSLIST to view slow/problematic queries.
86. Test all suspect queries in a development environment where you have mirrored production data.
MySQL Backup Procedures:
88. Stop replication during backups to prevent inconsistencies on data dependencies and foreign constraints.
89. Stop MySQL altogether and take a backup of the database files.
90. Backup binary logs at same time as dumpfile if MySQL dump used – to make sure replication does not break.
91. Do not trust an LVM snapshot for backups – this could create data inconsistencies that will give you issues in the future.
92. Make dumps per table for easier single table recovery – if data is isolated from other tables.
93. Use –opt when using mysqldump.
94. Check and Optimize tables before a backup.
95. When importing temporarily disable foreign constraints for a faster import.
96. When importing temporarily disable unique checks for a faster import.
97. Calculate size of database/tables data and indexes after each backup to monitor growth.
98. Monitor slave replication for errors and delay with a cron script.
99. Perform Backups regularly.
100. Test your backups regularly.
For key MySQL health metrics also look at our white paper: The Monitis Internal MSQL Server Monitoring
Monitis is an all-in-one hosted systems monitoring platform for small and medium-sized businesses. 70,000 sysadmins and IT managers use Monitis platform to monitor their websites, applications and networks. Monitis provides free 15-days trial. (Read More..)
Sabtu, 08 Desember 2012
Trying to combine dropbox and skydrive for redundancy with simbolic link using mklink.
Trying to combine dropbox and skydrive for redundancy with simbolic link using mklink.
(Read More..)Configuring the Social-Engineer Toolkit (SET) to use valid SSL certificates
A JavaScript standard library based on the Ruby core-lib
RubyJS is a JavaScript implementation of all methods from Ruby classes like Array, String, Numbers, Time and more.
Read the announcement post.
http://rubyjs.org/
a!ertifyjs
An unobtrusive customizable JavaScript notification system
http://fabien-d.github.com/alertify.js/
(Read More..)
Kodama
Kodama is a MySQL replication listener based on ruby-binlog.
Kodama provides a simple DSL to easily write your own replication listener.
Features
- Provides simple DSL for writing binlog event handlers
- Automatically restarts from the saved binlog position
- Attempts to reconnect to MySQL when the connection is somehow teminated
https://github.com/y310/kodama (Read More..)
Making your ruby fly
But, there are other tricks which you can use to improve the ruby performance.
Note: you need to recompile ruby if you add one of these “tweaks”
http://alisnic.net/blog/making-your-ruby-fly/
recall slow diff pages on GitHub? ~30s for CSS style recalculation! how they fixed it: http://t.co/IDxB36fC - great presentation.
recall slow diff pages on GitHub? ~30s for CSS style recalculation! how they fixed it: http://t.co/IDxB36fC - great presentation.
(Read More..)PwnPi v2.0 - A Pen Test Drop Box distro for the Raspberry Pi
PwnPi is a Linux-based penetration testing dropbox distribution for the
Raspberry Pi. It currently has 114 network security tools pre-installed
to aid the penetration tester. It is built on the debian squeeze image
from the raspberry pi foundation’s website and uses Xfce as the window
manager
http://toolsyard.thehackernews.com/2012/11/pwnpi-v20-pen-test-drop-box-distro-for.html#_
Understanding Owner Drawing in Delphi
CSS EXPLAIN
Think of it like SQL EXPLAIN
, but for CSS selectors.
https://github.com/josh/css-explain
Minggu, 25 November 2012
SimpleChartjs
A free and open-source javascript shopping cart that easily integrates with your current website.
http://simplecartjs.org/
(Read More..)
Full table scan vs full index scan performance
How-To: Migrate PostgreSQL databases to MySQL using the MySQL Workbench Migration Wizard
lsof -u apache | wc -l #Count number of open files per user. In this case count for the Apache user.
lsof -u apache | wc -l #Count number of open files per user. In this case count for the Apache user.
(Read More..)Jumat, 23 November 2012
TEKNIK OPTIMASI SINYAL SMARTFREN CDMA GEEK
Minggu, 18 November 2012
Sabtu, 17 November 2012
Welcome to Raspbian
Jumat, 16 November 2012
dSploit
The most complete and advanced IT security professional toolkit on Android.
http://www.dsploit.net/
bootup.js
Cache and load static files from local storage. This makes it easier
to manage Javascript and other files for offline use, or just to improve
the startup time of your web app.
https://github.com/TradeMe/bootup.js
Garlic.js
Garlic.js allows you to automatically persist your
forms' text field values locally, until the form is submitted. This way,
your users don't lose any precious data if they accidentally close
their tab or browser.
It strives to have a javascript agnostic interface for UI/UX developers that might want to use it. Just add some data-persist="garlic"
in your form tags, and you're good to go!
http://garlicjs.org/
Multicast in Ruby: Building a Peer-to-Peer Chat System
Sabtu, 03 November 2012
JQ
jq is a lightweight and flexible command-line JSON process
http://stedolan.github.com/jq/
Numeral.js
A javascript library for formatting and manipulating numbers.
http://numeraljs.com/
scylla - advanced audit tools
Scylla is a tool to audit different online application protocols and
configurations, built over a brute-force core.This tool acts at a tool
for unifying auditing techniques, in other words, it does what oscanner,
winfingerprint, Hydra, DirBuster, and other tools do, and also what
those tools don’t do.
http://security-sh3ll.blogspot.ro/2012/11/scylla-v10-advanced-audit-tool.html
speedup traceroute
traceroute -n -w1 hostName #Speed up traceroute by disabling DNS lookup & reduce wait for a response to a probe from default 5sec to 1sec.
(Read More..)mbed Microcontrollers
The mbed Microcontrollers
are a series of microcontrollers development boards designed for fast,
flexible and low-risk and professional rapid prototyping.
They are packaged as a small 40-pin 0.1" DIP form-factor convenient
for prototyping with solderless breadboard, stripboard, and through-hole
PCBs. They include a built-in USB programming interface that is as
simple as using a USB Flash Drive. Plug it in, drop on an ARM program
binary, and its up and running!
http://mbed.org
Minggu, 28 Oktober 2012
4 Langkah Buat Failover Server sederhana dengan CARP
Jumat, 26 Oktober 2012
Using and Extending Kojoney SSH Honeypot
Kojoney (http://kojoney.sourceforge.net/)
is a wonderful low interaction SSH honeypot written in Python.
Honeypots are systems that are set up in a deliberately vulnerable state
in order to capture and observe intruder behaviour. For more
information about honeypots see the excellent HoneyNet Project (http://www.honeynet.org/).
There are many reasons to run a honeypot, but for the purposes of this
discussion we will assume that you want to run a honeypot to observe
post compromise behavior in order to fingerprint patterns. This is
useful because you can use fingerprints to set up alerting or protective
mechanisms that can detect compromise quickly and aid in response. For
instance, running a honeypot you might discover that most attackers,
after compromising an apache web server, attempt to write a file into
the /tmp directory. You can use this information to set up monitoring
of the /tmp directory, and alert administrators whenever apache writes
new files into /tmp. This can tip off systems administrators to a
possible compromise, by alerting them that there is behavior occurring
on their system that typically corresponds to post compromise attacker
behavior.
http://www.madirish.net/node/242
Minggu, 21 Oktober 2012
chrome DevTools
edit your chrome DevTools, in... DevTools: open DevTools (cmd-opt-i), undock, and cmd-opt-i again. voila, DevTools inception!
list only directories
alias lld="ls -ltrF --color | grep ^d" #an alias to list only directories. Just run lld.
OSQA : The Open Source Q&A System
OSQA is the free, open source Q&A system you've been waiting for.
Your OSQA site is more than just an FAQ page, it is a full-featured
Q&A community. Users earn points and badges for useful
participation, and everyone in the community wins.
http://www.osqa.net/
Too many or too big open MyISAM tables??
Using pt-table-checksum with Percona XtraDB Cluster
Supersonic Query Engine
Introduction
Supersonic is an ultra-fast, column oriented query engine library written in C++. It provides a set of data transformation primitives which make heavy use of cache-aware algorithms, SIMD instructions and vectorised execution, allowing it to exploit the capabilities and resources of modern, hyper pipelined CPUs. It is designed to work in a single process.Supersonic is intended to be used as a back-end for various data warehousing projects. The functionalities it provides are:
- speed
- cache consciousness
- instruction pipelining
- SIMD use
- efficient memory allocation
- custom data structures
- reliability
- failure handling
- high test coverage (under development)
- robustness
- support for standard columnar database operations
- a wide range of specialised expressions (including many math, string and date manipulation functionalities)
Scripted : Javascript Editor from vmware
What is Scripted?
Scripted is a fast and lightweight code editor with an initial focus on JavaScript editing. Scripted is a browser based editor and the editor itself is served from a locally running Node.js server instance.What are the key features?
- Fast startup, lightweight.
- Syntax highlighting for JavaScript, HTML and CSS.
- Errors and warnings:
- JSLint is integrated to provide error/warning markers on JavaScript code.
- AMD and CommonJS module resolution: there is basic resolution where unresolved references will be marked as errors.
- Content assist:
- Basic content assist for HTML, CSS
- For JavaScript, content assist is driven by a type inferencing engine which is aware of AMD/CommonJS module dependencies and also uses JSDoc comments to help it understand the code.
- Hovers: hovering over a JavaScript identifier will bring up the inferred type signature.
- Navigation:
- press F8 on an identifier (that the inferencer has recognized) and the editor will navigate to the declaration.
- this also works on module identifiers (e.g. in
define()
clauses)
- Formatting: JSbeautify is integrated
- Sidepanel: alongside the main editor a sidepanel can be opened - currently this can be used to host a second editor.
- Key binding to external command: Key bindings in the editor can invoke external commands (less, mvn, etc)
Many of these are covered in this introductory screencast:
https://github.com/scripted-editor/scripted
(Read More..)
Experimenting with 5.6 InnoDB Online DDL (bugs included)
HowTo: Linux Hard Disk Encryption With LUKS [ cryptsetup Command ]
Backbone--RequireJS--and-Testem-Boilerplate-Project /
This is a simple bit of boilerplate to create a new testable Backbone application. It's setup for:
- Backbone
- Require.js
- Testem
- Package Management, via Jam
Setting up SPDY Protocol over NginX for your Rails App.
PHP Warning: fread(): Length parameter must be greater than 0 in setoptions.php on line 311 Error and Solution
Sabtu, 15 September 2012
How to lag a slave behind to avoid a disaster
bonsaijs - A lightweight graphics library with an intuitive graphics API and an SVG renderer.
A lightweight graphics library with an intuitive graphics API and an SVG renderer.
http://bonsaijs.org/
(Read More..)DbNinja for MySQL
DbNinja is an advanced web-based application for MySQL database administration and development. It's a must-have
for those who wish to access their hosted servers remotely. DbNinja supports all the latest features including:
triggers, events, views, stored routines and foreign keys; in addition it allows to import and backup data and MySQL
object structures, manage users and much more. DbNinja has a highly functional and elegant user interface, and can
be used securely in any modern browser on any OS.
http://www.dbninja.com/
Fresco
Fresco is a beautiful responsive lightbox. It can be used to create
stunning overlays that work great at any screen size, in all browsers on
every device.
http://www.frescojs.com/
WiFiKill v1.7 - Eject any WiFi device from network
Linux / Unix sed: Delete Word From File / Input
Linux / Unix rsync: Delete Source File After Transfer
gifsockets
"This library is the websockets of the '90s" - Somebody at Hacker News.
This library demoes how to achieve realtime text communication using GIF images as transport.
The interesting part is that you can even use IE6 with this library and get the data in Real Time (TM).
Of course this should have been delivered as an April's Fools joke
but sadly we are in mid September here in the northern hemisphere.
See it in action in this video: https://vimeo.com/49447841.
Sabtu, 18 Agustus 2012
Custom Sublime Text Build Systems For Popular Tools And Languages
PZen Dump
PZenDump (Process Zen Dumper) is a very tiny tool made for dumping
target process memory very easily, most if not all process dumper are
console line tools and it could be dificult or not the best choice for
lazy people, in console tool most of the time you must identify the
process ID of the target process, using this soft you just need to
select the process you wan't to dump then proceed.Also this application
is multithread and allow you to dump a list of process.
http://www.phrozensoft.com/pzen.more |
Holder.js
Holder.js
Holder renders image placeholders entirely on the client side.It works both online and offline, and offers a chainable API to style and create placeholders with ease.
http://imsky.github.com/holder/ (Read More..)
Ways to export MySQL result set to file on client side
normalize.css
A modern, HTML5-ready alternative to CSS resets
Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.What does it do?
- Preserves useful defaults, unlike many CSS resets.
- Normalizes styles for a wide range of HTML elements.
- Corrects bugs and common browser inconsistencies.
- Improves usability with subtle improvements.
- Explains what code does using detailed comments.
Linux lsscsi: See List Of All SCSI / SATA Hard Disks and CD / DVD Drives
Linux: Find Out What’s Using Up All Virtual Memory
lftp Mirror Command Exclude Matching Files [ Regex ]
Viktor Cleaner 1.2
http://astr0baby.wordpress.com/2012/07/06/viktor-cleaner-1-2/
TightSocks5 Description
TightSocks5 is a tiny but efficient network tool that allows you to
create a socks5 server proxy in your own machine. You will then be able
to surf to your home IP address from anywhere, using compatible software
(browsers for example). This software is multiport/multithread and
secured (you can use Socks Authentification). Also, your port profiles
are stored in a local database and your username and password are
hashed. Notice: You must forward your port(s) to connect throught your
socks 5 server from the outside.
Coded by : | Jean-Pierre LESUEUR |
Compatible with : | Windows XP, Windows Vista, Windows 7, Windows 8 (x86 and x64) |
http://www.phrozensoft.com/tsocks.more |
GREP WITH COLOR
grep --color [Cat] <<<"nixCraft" or egrep --color -i 'err|warn|fatal' /file #Highlight matched words or strings for ease of reading
(Read More..)Sabtu, 11 Agustus 2012
flashrom
flashrom is a utility for identifying, reading, writing,
verifying and erasing flash chips. It is designed to flash
BIOS/EFI/coreboot/firmware/optionROM images on mainboards,
network/graphics/storage controller cards, and various other programmer
devices.
http://flashrom.org/Flashrom
MySQL as a Key Value Store (KVS) - Why, some background and some more tests
Piecon - Pie chart in your faveicon
Pie charts in your favicon!
A tiny javascript library for dynamically generating progress pie charts in your favicons.
http://lipka.github.com/piecon/
Start New X window
startx -- :1 -depth 24 OR startx window-manger -- :1 -depth 24 #Start a new X. To go back to old X hit CTRL+ALT+F7 May need to run as root
(Read More..)wget Download and Split
wget -nv -O - http://t.co/Si1JfIPB | split #Download and split a file on the fly without creating tmp file. #tips
(Read More..)#Get rid of syslog messages
dmesg -n level ; dmesg -n 1 #Get rid of syslog messages from your console. 1 leve prevents all messages, except panic messages on console.
(Read More..)Meny
A three dimensional and space efficient menu concept.
Move your mouse to the left edge of this page — or swipe in from
the left edge if you're on a touch device — to expand the menu.
Pass in a URL to test it with any page, like so: lab.hakim.se/meny/?http://hakim.se.
CSS 3D transforms are used for the transition effect and JavaScript is used to track mouse/touch movement.
The name, Meny, is swedish.
http://lab.hakim.se/meny/
Minggu, 05 Agustus 2012
Rabu, 01 Agustus 2012
Senin, 30 Juli 2012
Bash / KSH: Define Delimiter (IFS) While Using read Command
Hi, I’m jQuery++.
am a MIT licensed collection of extremely useful DOM helpers and
special events for jQuery 1.7 and later. I’m not a UI project like jQuery UI or jQuery Tools. Instead, I’m all about providing low-level utilities for things that jQuery doesn’t support. If Underscore is jQuery’s functional-programming tie, I am jQuery’s bald-spot covering toupee.
Select the plugins you want and click “Download” for a customized, unminified JavaScript file:
http://jquerypp.com/
Step by step from jQuery to Backbone
Minggu, 22 Juli 2012
Linux Run Command As Another User
Upgrading to CodeIgniter 2.x from CodeIgniter 1.7.x
pinfo: Read Linux Info Documentation in Colors
PHP Libraries For Working With Excel, Word And Powerpoint Files
The Unix Tree | Source Code Unix Pertama Kali
Welcome to the Unix Tree. Here you can browse the source code and manuals
of various old versions of Unix. For every file, you can also find related
files from other versions: this can help show how the different versions of
Unix are related. Most of the Unix versions below come from the
Unix Archive.
http://minnie.tuhs.org/cgi-bin/utree.pl
Minggu, 15 Juli 2012
Throttle v0.2.0
Throttle is a simple node.js app that allows you to simulate poor
network connections (e.g. like a cellular connection) so you can test
how your websites will perform. For example, testing a responsive
website on a poor 3G connection without actually having to have a poor
3G connection. To use Throttle simply connect your Mac to ethernet,
share that network connection via Airport, turn on Throttle, and any
device connected to that WiFi access point will then be throttled to the
the network speed you specify via a web-frontend. If you don’t have
node.js on your computer don’t fret. It’s very easy to install so you
can get Throttle up and running quickly.
It’s important to note that Throttle was designed to be used in
conjunction with a device lab and products like shim or Adobe Shadow
where a shared connection is expected. That has definitely influenced
its design and test cases.
https://github.com/dmolsen/Throttle
Key Principles of Maintainable JavaScript
1337day.com | Inj3ct0r
The ultimate archive of exploits and vulnerable software and a great
resource for vulnerability researchers and security professionals.
Our
aim is to collect exploits from submit tals and various mailing lists
and concentrate them in one, easy to navigate database.
This was written for educational purpose. Use it at your own risk. Author will be not responsible for any damage. // r0073r
http://1337day.com/
Sabtu, 14 Juli 2012
Percona Playback 0.3 development release
I’m glad to announce the third Percona Playback release – another
alpha release of a new software package designed to replay database
server load. The first two versions were released in April, just in time
for my talk at the Percona Live MySQL Conference and Expo: Replaying Database Load with Percona Playback.
This is still very much under development, so there’s likely going to be bugs. Please feel free to report bugs here: https://bugs.launchpad.net/percona-playback
Percona Playback is designed to replay database load captured either
in a MySQL slow query log or a tcpdump capture of the MySQL protocol
exchange between client and server.
It can replay the load either as fast as possible or in accurate
mode, where it tries to replay load over the same wall time as the
capture.
Current Notable Limitations:
- tcpdump replay: IPv4 only
- tcpdump replay: no support for server side prepared statements
- libtbb-dev (Intel Threading Building blocks)
- boost (including boost program_options)
- intltool
- gettext
- libpcap-dev
- libcloog-ppl (if using gcc 4.6)
- libmysqlclient-dev
- libdrizzle-dev
- pkg-config
http://www.mysqlperformanceblog.com/2012/07/10/percona-playback-0-3-development-release
(Read More..)
Building A Multi-Version Build System | PHP MUltiple Version
Building A Multi-Version Build System
http://blog.ircmaxell.com/2012/07/building-multi-version-build-system.html (Read More..)
Egress Buster Reverse Shell and Bypassing AV
Back in February Dave Kennedy released a tool called Egress Buster
that would look for outbound ports and let you know what egress rules
were in place behind a firewall. The way this initially worked was by
sending TCP packets on each and every port originating from inside the
firewall to an externally facing server that was listening on those
ports. Today we would like to announce the release of the Egress Buster
Reverse Shell which will scan for open ports on the internal network and
once an open port has been established, spawn a reverse shell.
Benchmark testing showed about a 1,000 ports were tested in under five
seconds.
https://www.trustedsec.com/july-2012/egress-buster-reverse-bypassav/
projectfedena.org
Fedena is a free & opensource school management software
that has more features than a student information system.
Use fedena to efficiently manage students, teachers, employees, courses
& all the system & process related to your
institution.
projectfedena.org
Minggu, 08 Juli 2012
Impact of memory allocators on MySQL performance
MOUSETRAP
A simple library for handling keyboard shortcuts in Javascript.
Try pressing some of the keys here:
http://craig.is/killing/mice
An Introduction To PZQ
PZQ is a persistent store daemon by Mikko Koppanen which uses the
ZeroMQ messaging socket library (version 2) for communication and Kyoto
Cabinet for disc and in memory data storage. Using ZeroMQ makes the
service almost totally language independent - it’s accessible by
anything that has ZeroMQ bindings (though we’ll use PHP in the examples,
and the client library supplied along with PZQ).
Following the ZeroMQ and Unix philosophy of doing few things, but
doing them well, PZQ is designed to act as a simple store-and-forward
device, with the following sorts of use cases as the main objective,
each of which is discussed below:
- Provide a replacement for ZeroMQ SWAP
- Perform as an asynchronous job queue
https://github.com/mkoppanen/pzq/wiki/An-Introduction-To-PZQ (Read More..)
AltSQL
AltSQL is a way to improve your user experience with mysql
, sqlite3
, psql
and other tools that Perl has DBI drivers for. Currently written for
MySQL only, the long term goal of this project is to provide users of
the various SQL-based databases with a familiar command line interface
but with modern improvements such as color, unicode box tables, and
tweaks to the user interface that are fast and easy to prototype and
experiment with.
http://ewaters.github.com/altsql-shell/
Handsontable
Sabtu, 23 Juni 2012
Replicate from Oracle to MySQL *without* GoldenGate
pageguide.js
pageguide.js is an interactive visual guide to elements on web pages.
Instead of cluttering your interface with static help message, or explanatory text,
add a pageguide and let your users learn about new features and functions.
http://tracelytics.github.com/pageguide/