Skip to content

Instantly share code, notes, and snippets.

View include's full-sized avatar
👽
Free Jaffa

Francisco Cabrita include

👽
Free Jaffa
View GitHub Profile
@include
include / script.sh
Last active August 29, 2015 14:19 — forked from adnaan/script.sh
ls -la
echo "hello"
tree
adb devices
adb wait-for-device #example of a long running task
@include
include / learn_apache2
Last active August 29, 2015 14:25
chef-client
[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 ***
@include
include / group_vars__users
Last active September 7, 2015 17:19
manage users/groups with ansible
---
# file: group_vars/all_users
mygroups:
admins:
state: present
users:
- name: include
comment: francisco.cabrita@gmail.com
@include
include / funnydom.rb
Created March 3, 2011 02:24
build funny OR stupid domain names
require 'open-uri'
letters = { 'v' => 'aeiou',
'c' => 'bcdfghjklmnpqrstvwxz' }
10.times do
@word = Array.new
"cvvcvc".each_char do |byte|
source = letters[byte]
@include
include / .bash_prompt
Created March 12, 2012 23:50 — forked from melo/.bash_prompt
uber git PS1
#!/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:
@include
include / start.pl
Last active October 23, 2015 14:55
lol start
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"));
#!/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")
#! /usr/bin/env python
# -*- conding: UTF-8 -*-
import sys
import os
import time
def main():
'''yep this is an awesome but tiny test'''
#!/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}
# 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