Category Archives: linux administration
Tweak to my Laptop
I got frustrated at the slowness of my SSD enabled laptop so I did some more tweak, install Acrylic DNS Proxy (This will generally speed up couple milisecond to several second for DNS lookup) THEY ADD UP, trust me. If … Continue reading
Drag and Drop to Login
We all love websites but hated the feature/mandatory punishment of logging in with username and password. The solution would be drag and drop, the server generates a OpenSSH private/public key and allows the user to download the private key and … Continue reading
Download Compiling Node.JS v0.9.9 on Raspberry Pi
If you have the rasbian “wheezy”, well, you’re in luck. I’m currently compiling Node.JS v0.9.9 and it will be available here to download in a nice .zip format Stay toon for updates. Download Link: Link 1 is currently compiling!
Copy Files With Specific Extension while Retaining folder structure
Copy Files With Specific Extension while Retaining folder structure @echo off for %%p in (SOURCE_DIR DEST_DIR FILENAMES_TO_COPY) do set %%p= cls echo :: Copy Files Including Folder Tree echo :: http://stackoverflow.com rem /questions/472692/how-to-copy rem -a-directory-structure-but-only rem -include-certain-files-using-windows echo :: ReScripted … Continue reading
Rsync Broken Pipe Error
My crontab -e */3 * * * * pgrep rsync > /dev/null || /root/rsync.sh My /root/rsync.sh #!/bin/bash rsync -aruvP –inplace –exclude ‘*.part’ -e “ssh” root@205.185.121.211:/home/wwwroot/source/ /mnt/mirror1/backup/; Previous Error when I added encryption using arcfour method Write failed: Broken pipe rsync: … Continue reading
Two 10 seconds scripts to keep your data synchronized – Some code from mariocesar – Forrst
Two 10 seconds scripts to keep your data synchronized – Some code from mariocesar – Forrst. # — First script. Listen for changes and use # rsync just when new files are available or # existing files are modified. # … Continue reading
Protected: Personal Backup Using Rsync
There is no excerpt because this is a protected post.
ssh connections dropping: Apple Support Communities
The solution was to set these values to their default values net.inet.tcp.keepidle=7200000 and net.inet.tcp.keepintvl=75000 using the “sudo sysctl -w” command. via ssh connections dropping: Apple Support Communities.
Rsync Through SSH Using Non Standard Port and Transferring Large Chunk Of Files
Write failed: Broken pipe rsync: connection unexpectedly closed (28652 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7]
Convert Filename From UpperCase To LowerCase
Type the below command and it will convert rename ‘y/A-Z/a-z/’ *
Installing Cappuccino from Source
./cappuccino/bootstrap.sh Returns Error: java is required to bootstrap Cappuccino. Please install java and re-run bootstrap.sh
Image Changing Opacity
<img alt=”xx” src=”xx” style=”opacity: 0.6;”>
Multi AJAX? – Javascript – Novawave Forums
function Req($array, $url, $divname, $a = 1) { // Prevar is predefined variable – such as an ID // To set a dynamic var such as a textbox USE THIS FORMAT ‘+document.getElementById(‘box’).value+’ // For multiple AJAX requests, change the $a … Continue reading
Use Fonts From G00Gl3
<link href=’http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300′ rel=’stylesheet’ type=’text/css’><link href=’http://fonts.googleapis.com/css?family=Abel’ rel=’stylesheet’ type=’text/css’><link href=’http://fonts.googleapis.com/css?family=Dorsa’ rel=’stylesheet’ type=’text/css’><link href=’http://fonts.googleapis.com/css?family=Acme’ rel=’stylesheet’ type=’text/css’><link href=’http://fonts.googleapis.com/css?family=Rosario:400,700′ rel=’stylesheet’ type=’text/css’>
CA Registry Administrative Update June 12-13 2012
Certain .CA Registry administrative functions to be paused during system upgrade June 12-13 Dear %USERNAME%, On June 12, 2012, the Canadian Internet Registration Authority (CIRA) will be performing a system upgrade to further improve our .CA registry system. From enhanced … Continue reading
[ubuntu] Bind 9 DNS Server not accepting DNS client queries [Archive] – Ubuntu Forums
Add the following lines to named.conf.options in /etc/bind will do allow-query {any;}; allow-query-on {any;}; allow-recursion {any;}; allow-recursion-on {any;}; To the options of named.conf. via [ubuntu] Bind 9 DNS Server not accepting DNS client queries [Archive] – Ubuntu Forums.
mod_rpaf for Apache
I fell love with Nginx’s ability to reverse proxy pass, it is awesome and stuff but I’m annoyed by the amount of effort in trying to retrieve visitor logs, so why not just let apache logs those X-Forwarded-For request anyways. … Continue reading
