This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -la | |
echo "hello" | |
tree | |
adb devices | |
adb wait-for-device #example of a long running task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2015-07-18T18:29:00+00:00] WARN: No config file found or specified on command line, using command line options. | |
[2015-07-18T18:29:00+00:00] INFO: Auto-discovered chef repository at /home/ubuntu/chef-repo | |
[2015-07-18T18:29:00+00:00] DEBUG: Sleeping for 0 seconds | |
[2015-07-18T18:29:00+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /home/ubuntu/chef-repo | |
One version per cookbook | |
[2015-07-18T18:29:00+00:00] INFO: Forking chef instance to converge... | |
[2015-07-18T18:29:00+00:00] DEBUG: Fork successful. Waiting for new chef pid: 3879 | |
[2015-07-18T18:29:00+00:00] DEBUG: Forked instance now converging | |
[2015-07-18T18:29:00+00:00] INFO: *** Chef 12.3.0 *** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# file: group_vars/all_users | |
mygroups: | |
admins: | |
state: present | |
users: | |
- name: include | |
comment: francisco.cabrita@gmail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
letters = { 'v' => 'aeiou', | |
'c' => 'bcdfghjklmnpqrstvwxz' } | |
10.times do | |
@word = Array.new | |
"cvvcvc".each_char do |byte| | |
source = letters[byte] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# PS1 magic | |
# | |
# Mostly copied from YUVAL KOGMAN version, added my own __git_ps1 stuff | |
# Original: http://gist.github.com/621452 | |
# | |
# See video demo of this at http://vimeo.com/15789794 | |
# | |
# To enable save as .bash_prompt in $HOME and add to .bashrc: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@e5ded7e1593c:/base# cat start.pl | |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
## Move app into place | |
mkdir('/runtime') unless -d '/runtime'; | |
system(split(/\s+/, "/usr/bin/rsync -a /build/ /runtime/app")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A Shell Script To Convert All .flac Files To .MP3 Format | |
# Note: I found this script somewhere on usenet and I've modified it for my needs | |
METAFLAC=/usr/local/bin/metaflac | |
FLAC=/usr/local/bin/flac | |
#ID3=/usr/bin/id3 | |
LAME=/usr/local/bin/lame | |
FIND=/usr/bin/find | |
t=$(${FIND} . -type f -iname "*.flac") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- conding: UTF-8 -*- | |
import sys | |
import os | |
import time | |
def main(): | |
'''yep this is an awesome but tiny test''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL_LIST=$* | |
YOUTUBE_DL="/usr/local/bin/youtube-dl" | |
YOUTUBE_DL_OPTS="--title --restrict-filenames --write-thumbnail --extract-audio --audio-format mp3 --audio-quality 0 --continue --no-overwrites" | |
${YOUTUBE_DL} ${YOUTUBE_DL_OPTS} ${URL_LIST} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NAGIOS LAZY ./CONFIGURE NOTES | |
export VERSION="3.5.1" | |
./configure | |
--prefix=/servers/MONIT/nagios-${VERSION} | |
--cache-file=/servers/MONIT/nagios-${VERSION}/var/nagios.cache | |
--with-lockfile=/servers/MONIT/nagios-${VERSION}/var/nagios.lock | |
--with-checkresults-dir=/servers/MONIT/nagios-${VERSION}/var/checkresults |