Skip to content

Instantly share code, notes, and snippets.

View binaryreverse's full-sized avatar

Chris binaryreverse

View GitHub Profile
@binaryreverse
binaryreverse / mysql_shell_import.bash
Last active May 24, 2016 12:21
MySQL shell import
mysql -u <user> -p -h <host> <db_name> < mydump.sql
@binaryreverse
binaryreverse / rpm_package_changelog.bash
Last active May 24, 2016 12:21
Get changelog info to installed package (RPM based distro)
rpm -q --changelog <packagename> | less
@binaryreverse
binaryreverse / mysql_shell_login.bash
Last active May 24, 2016 12:20
MYSQL shell login
mysql -u <username> -p -h <host>
@binaryreverse
binaryreverse / vbox_kernel_module_compile.bash
Last active May 24, 2016 12:20
(Re)compile VirtualBox kernel module
sudo /usr/lib/virtualbox/vboxdrv.sh setup
@binaryreverse
binaryreverse / list_processes_and_grep.bash
Last active May 24, 2016 12:20
List processes and grep through
ps -aux | grep <search-term>
@binaryreverse
binaryreverse / js_object_inspect.js
Created March 15, 2016 09:40
JS Object inspection (Q&D)
function objInspect(o, i) {
if(typeof i == 'undefined') {
i = '';
}
if(i.length > 50) {
return '[MAX ITERATIONS]';
}
var r = [];
for(var p in o) {
var t = typeof o[p];
@binaryreverse
binaryreverse / install_update_rust.bash
Last active May 24, 2016 12:19
Install/Update Rust
curl -sSf https://static.rust-lang.org/rustup.sh | sh
@binaryreverse
binaryreverse / empty_zend_cache.bash
Last active May 24, 2016 12:21
Empty local Zend cache
sudo rm -rf /var/www/html/portale/data/cache/pages/*
sudo rm -rf /var/www/html/portale/data/cache/metadata/*
@binaryreverse
binaryreverse / new_tmux_window_pstorm.bash
Last active May 24, 2016 12:19
New tmux window with PHP Storm started from param
tmux new-window -n pstorm pstorm
@binaryreverse
binaryreverse / dummy_console_log.js
Created March 31, 2016 15:05
Dummy console.log() for Browsers with non active Debugging tools. This prevents console errors in production code.
if(typeof console === 'undefined') {
console = { log: function() { } };
}