Tagged: hacks

0

iTerm2 shell integration scripts offline usage

At times we are working in an internet less environment. So, here are a few things we can do, Make the scripts available over a local http server Change scripts for any http://internet-address/ to http://local-address Making scripts available on local $...

0

WordPress theme support page print

Add following snippet to style.css @media print { .post-nav,.post-tags,.sidebar,.s1,.s2,.single article ~ *,li.comments, #header, #footer{display: none !important;} * {color:black !important;background: none !important; } body {font-size: 10pt;} .main-inner{padding-left:0 !important;padding-right:0 !important;} }   Hueman theme: Colored fonts printing, removed share icon bar @media...

0

Super charge bash with these bash_profile tips

Some tips and tricks to super charge bash Tip #01: Up down arrow auto complete ~/.inputrc #File: ~/.inputrc ## arrow up “\e[A”:history-search-backward ## arrow down “\e[B”:history-search-forward   Tip #2: Auto complete hostnames in ssh, scp. More details here. $ brew install...

0

Setup bulk password-less ssh

Following script will help in setting up password-less ssh in one shot to multiple machines, Usage sample: $ remote-keyless.sh <file_of_hosts.txt> [password] #!/usr/bin/expect -f # remote-keyless.sh, v0.1, 2016-05-03, [email protected] # v0.2, 2016-09-28, [email protected] – added to make it compatible with pdsh ;)...

0

Remote X11 display on Windows machines

Xming X Server for Windows is required to open display from your remote *nix host. Xming URL: https://sourceforge.net/projects/xming/ X11 packages are required on remote machine Following settings may or may not be required on the remote machine to X11 to work...

0

Ondemand local webserver

Ever wanted a local directory to host contents over http? Here is how you do it, $ python -mSimpleHTTPServer Above command will host the contents of the current directory over http port 8000. If you want to use a custom...

0

Installing perl modules in non standard directory

Source: http://modperlbook.org/html/3-9-1-Installing-Perl-Modules-into-a-Nonstandard-Directory.html Specifying PREFIX=/home/user is the only part of the installation process that is different from usual. Note that if you don’t like how Makefile.PL chooses the rest of the directories, or if you are using an older version of it...

0

Compiling in $HOME

Original article Author updates   Original article Source: http://blog.sanctum.geek.nz/compiling-in-home/ If you don’t have root access on a particular Linux system that you use, or if you don’t want to install anything to the system directories and potentially interfere with others’ work...

0

How to Build a Car Mount for Your Cellphone from Office Supplies

Source: http://lifehacker.com/5747897/how-to-build-a-car-mount-for-your-cellphone-from-office-supplies   Reader Ryan Mottau built this awesome DIY smartphone car mount using our favorite DIY wonder-tool, the binder clip. Here’s how he did it. What You’ll Need Large (2″ wide) binder clips String for wrapping (I found black macramé thread...