Update: I made this a proper blog post
- linux box
#!/bin/bash | |
# I use this script, then also create an alias, for example: | |
# mkdir -p /Users/eric/Downloads/tv && rsync-retry.sh [email protected]:~/torrents/eric/bitmetv/ /Users/eric/Downloads/tv | |
### ABOUT: See: http://gist.github.com/366269 | |
### Runs rsync, retrying on errors up to a maximum number of tries. | |
### On failure script waits for internect connection to come back up by pinging google.com before continuing. | |
### | |
### Usage: $ ./rsync-retry.sh source destination |
server { | |
listen 80; | |
server_name forum.example.com; | |
root /var/www/example_forum/; | |
index index.php; | |
access_log /var/log/nginx/forum.example.access.log main; | |
error_log /var/log/nginx/forum.example.error.log; |
Update: I made this a proper blog post
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
โข Node 1, 2, โฆ X | |
โ sudo su -l | |
โ cd | |
โ apt-get update | |
โ apt-get upgrade | |
โ apt-get install git-core | |
โ apt-get install libyaml-dev | |
โ apt-get install erlang | |
โ apt-get install unzip | |
โ apt-get build-dep ejabberd |
/** | |
* ps_Nest Thermostat | |
* | |
* Copyright 2014 Patrick Stuart | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
# Clear existing task so we can replace it rather than "add" to it. | |
Rake::Task["deploy:compile_assets"].clear | |
namespace :deploy do | |
desc 'Compile assets' | |
task :compile_assets => [:set_rails_env] do | |
# invoke 'deploy:assets:precompile' | |
invoke 'deploy:assets:precompile_local' | |
invoke 'deploy:assets:backup_manifest' |
Are you let down when you saw there is no guide to use Windows Server 2016 under *nix environments? I really loved Microsoft when I heard they are working on Windows containers, but when this week has arrived, it was sad to see that installation requirements were Windows and HyperV. But actually it is not. You just have to modify the VHD file a bit with nicer tools and execute the already available script in the downloaded VM. I will assume you are running a decent version of Linux and accepted EULA and all the legal stuff that I do not care.
$ sudo apt-get install qemu-kvm virt-manager // or virtualbox, but we need qemu-kvm for image manipulation
$ sudo apt-get install qemu-utils libguestfs-tools // image manipulation tools