- Install spf13-vim
sh <(curl https://j.mp/spf13-vim3 -L)- Install Go bundle
echo "export PATH=\$PATH:\$(go env GOPATH)/bin" >> ~/.bashrcsh <(curl https://j.mp/spf13-vim3 -L)echo "export PATH=\$PATH:\$(go env GOPATH)/bin" >> ~/.bashrc| #!/bin/sh | |
| sudo apt-get remove -y --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
| sudo apt-get install -y --no-install-recommends \ | |
| liblua5.1-dev \ | |
| luajit \ | |
| libluajit-5.1 \ | |
| python-dev \ | |
| ruby-dev \ | |
| libperl-dev \ |
| from isoweek import Week | |
| from ics import Calendar, Event | |
| c = Calendar() | |
| weeks = [ Week(2017,w) for w in range(1,53)] | |
| objectives = [ | |
| "The rule of thirds is the first compositional rule most photographers learn; but most don't know why they learn it. The rule of thirds is amazing for telling a story. Tell a story using rule of thirds.", | |
| "Straight out of the Camera. No Photoshop. Shoot a compelling image and post it without edits. No cheating! (Be sure and save the image file for the end of the challenge!)", | |
| "Your inspiration this week is land. This could be a landscape, or an image inspired by the land in some way.", |
| diskutil list | |
| diskutil partitionDisk /dev/diskN MBR FAT32 DISKNAME 100% | |
| # copy files | |
| diskutil unmountDisk /dev/diskN | |
| sudo fdisk -e /dev/diskN | |
| def cookbook_version | |
| metadata = Chef::Cookbook::Metadata.new | |
| metadata.from_json ::File.read ::File.join ::File.dirname(__dir__), | |
| "metadata.json" | |
| metadata.version | |
| end |
| vm.dirty_background_ratio = 5 | |
| vm.dirty_ratio = 80 | |
| vm.swappiness = 1 |
| when HTTP_REQUEST { | |
| HTTP::header insert X-Request-Start [clock clicks -milliseconds] | |
| } |
| suites: | |
| - name: node1 | |
| run_list: | |
| - recipe[app_vault::default] | |
| attributes: | |
| app_vault: | |
| node2: <%= '"' + YAML::load_file('.kitchen/node2-rhel-7.yml')['hostname'] + '"' %> | |
| node3: <%= '"' + YAML::load_file('.kitchen/node3-rhel-7.yml')['hostname'] + '"' %> | |
| - name: node2 | |
| run_list: |
| [Unit] | |
| Description=GPS node | |
| After=network.target | |
| [Service] | |
| User=appuser | |
| Group=appgroup | |
| WorkingDirectory=/var/www/ | |
| ExecStart=/usr/bin/node index.js | |
| ExecReload=/bin/kill -HUP $MAINPID |
| func fetchWeather(location string) string { | |
| time.Sleep(time.Duration(rand.Intn(10)) * time.Second) | |
| return "sunny" | |
| } | |
| func fallbackWeather() string { | |
| return "raining" | |
| } | |
| func main() { |