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
#keep or delete? | |
function kod() | |
{ | |
ls -l $@ | |
echo "Keep (k) or Delete (d)?" | |
read answer | |
if [ $answer == "k" ]; then | |
echo "Keeping. As you wish." | |
elif [ $answer == "d" ]; then | |
echo "DELETING $@" |
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
config t | |
stack disable | |
ip route 0.0.0.0 0.0.0.0 10.50.42.1 | |
vlan 42 | |
router-interface ve 42 | |
int ve 42 | |
ip address 10.50.42.xxx 255.255.255.0 | |
end | |
wr mem |
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
import hpilo | |
tempkey = { | |
2 : 'Temp 1', | |
3 : 'Temp 1', | |
4 : '01-Inlet Ambient' | |
} | |
def get_ambient_temp(host, username, password, ilo_version): | |
try: |
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
# ~/.bashrc | |
export PROJECT_HOME=$HOME/Sandbox/venvs | |
export WORKON_HOME=$HOME/.venvs | |
source /usr/local/bin/virtualenvwrapper.sh |
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
# ~/.bash_profile on OS X (though could be .bashrc on other OS's) | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
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
# Just basic syntax highlighting for vim | |
set nocompatible | |
syntax on | |
colo peachpuff |
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
<?php | |
function bronto_menu($may_cache) { | |
$items = array(); | |
if ($may_cache) { | |
$items[] = array( | |
'path' => 'admin/mymodule/settings/bronto', | |
'access' => user_access('administer site configuration'), | |
'title' => t('Bronto settings'), |
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
function dealwithit() { | |
echo "( °_°)" | |
sleep 1 | |
tput cuu1 | |
tput el | |
echo "( °_°)‿‑●‑●" | |
sleep 2 | |
tput cuu1 | |
tput el | |
echo "(‑●‑●)>" |
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
function _totheleft() { | |
echo "(°_°)" | |
echo "<) )╯" | |
echo ' / \' | |
} | |
function _totheright() { | |
echo " (°_°)" | |
echo "\( (>" | |
echo ' / \' |
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
package main | |
import "os/exec" | |
import "fmt" | |
import "bytes" | |
func main() { | |
cmd := exec.Command("/bin/ls", "-al") | |
var out bytes.Buffer | |
cmd.Stdout = &out |