Author: LloydLeung

  • BTSync on AWS EC2

    Objective: Allow Ubuntu to start BTSync on reboot.   Server create an EC2 instance, with appropriate storage space. Ubuntu LTS 64bit (currently 14.04) download the BTSync client http://www.bittorrent.com/sync The 64bit linux version. dump the btsync.conf ./btsync –dump-sample-config > btsync.conf edit the btsyn.conf for your settings. sudo su create /etc/init.d/btsync file See below chmod 755 /etc/init.d/btsync update-rc.d btsync…

  • How/What do you backup?

    Things of importance Family photos/videos Documents scanned docs license/registration information for software Everything else.     How to backup, rule of 3-2-1 3 – (three) copies of everything of importance. 2 – (two) media types at least.  Remember floppies? Remember Zip disks? Beta tapes… yeah… 1 – (one) off site copy.  Home burns down… you’re…

  • Mass VHOST wildcard; subdomain to folder

    I couldn’t find any information as my search terms were incorrect. My google-fu was off when I was searching. My objective was to make http://*.localhost.com go to /var/www/*/www, where * is a wildcard. I’m hoping that this will help others; specifically developed that work on multiple projects. First, I wanted to wildcard my in my…

  • Automated watering system project notes

    The plastic T-connectors broke over the winter.  Not very hardy.  Use the internal ones with hose clamps. The solenoids kept up, so far.   Lost the code to the automated system.   GPIO pin 7 – Far East solenoid – hanging plants. GPIO pin 8 – One West of Pin 7 solenoid – walk way…

  • [fixed] raspbian / debian apt-get connect (101: Network is unreachable)

    Are you having issues When I ran: $> sudo apt-get install mosh Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: libio-pty-perl libprotobuf7 libutempter0 The following NEW packages will be installed: libio-pty-perl libprotobuf7 libutempter0 mosh 0 upgraded, 4 newly installed, 0 to remove and 1 not…

  • xdebug.ini with phpstorm

    [Server xdebug.ini file] zend_extension=xdebug.so xdebug.remote_enable=true xdebug.remote_connect_back = On xdebug.profiler_enable=1 xdebug.profiler_output_dir=”/tmp” Zero config phpstorm xdebug mode will now work.     [Ensure your router isn’t blocking xdebug] Port Trogger is turned on Trigger port: 80/tcp Incoming port 9000/tcp OR Set your local machine as the DMZ OR Port forwarding

  • mac ports php rsync version not default

    You have a mac, and you’ve discovered that you want to install later versions of software that aren’t default on the Mac.   Say, python 3.x, a newer version of PHP, curl, rsync… etc. you’ve installed them, and they reside nicely in /opt/local/bin but whenever you’re in the shell, they aren’t being used… what gives?…

  • New Car Smell? Getting rid of new car smell

    Some people love it.  Some people hate it. To get rid of new car smell… Febreze your car.  Just got these from home depot ($6.00 CDN + tax).  New car smell, by the next morning, gone/masked.  Two things: it smells nice (if you like that scent), and it’s getting rid/masking the new car smell. Still…

  • So my site was compromised…

    Someone cracked my site, and started running a litecoin cpu miner on my server. I didn’t know how to remove them, thought I patched up the system. If you found out your site is hacked: Calm down Back up the system Diagnose what happened. Log files, etc… google it. Wipe it clean, and start fresh.…

  • Personal domain cname alias to ddns

    I know this will be giberish to most of my friends… if you have your own personal domain name; and decent router that supports ddns services, or a computer remains on most of the time, you could get something like: DOMAIN: privatelan.lloydleung.com to point to your home LAN, and no longer a need to remember…