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 | |
Red='\e[0;31m'; | |
# reset color | |
RCol='\e[0m' | |
cleanUp(){ | |
# clean up | |
unset counter | |
unset PDFNAME |
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
DATE=`date "+%Y-%m-%d_%H-%M-%S"` | |
#snap teh shot .__. | |
zfs snapshot -r tank@$DATE | |
#send it | |
zfs send -R tank@$DATE | ssh -c arcfour travos "zfs receive -F tank" | |
echo "THE end" |
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/local/bin/zsh | |
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin | |
DATE=$(date "+%Y-%m-%d_%H-%M-%S") | |
SCRIPTNAME=$(basename $0) | |
PIDFILE=/var/run/${SCRIPTNAME}.pid | |
if [ -f ${PIDFILE} ]; then |
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/sh | |
USERNAME=$1 | |
pw user add $USERNAME -m -s /sbin/nologin -c "mail user ($USERNAME)" # create user account | |
passwd $USERNAME # change password | |
mkdir /home/$USERNAME/mbox # create mail directory | |
chown -R $USERNAME:$USERNAME /home/$USERNAME/mbox # own the directory to the right user |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<!----> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>{Title}{block:SearchPage} | {SearchQuery}{/block:SearchPage}{block:PostSummary} | {PostSummary}{/block:PostSummary}</title> | |
<link rel="shortcut icon" href="{Favicon}"> | |
<link rel="alternate" type="application/rss+xml" href="{RSS}"> | |
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description} | |
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
l33t@nas:~$ rvm -v | |
rvm 1.18.10 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] | |
l33t@nas:~$ ruby -v | |
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux] | |
l33t@nas:~$ gem -v | |
1.8.25 | |
l33t@nas:~$ t -v | |
1.7.1 |
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 | |
import tweepy | |
#use your one keys ;) | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) |
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
/******************************************************************************* | |
* | |
* | |
* Beschreibung: Diese Programm kann zufällige zahlen Generieren. | |
* | |
* Benötigte Libraries: | |
* - stdlib.h | |
* - stdio.h | |
* - time.h | |
* |
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
/******************************************************************************* | |
* | |
* | |
* Beschreibung: Diese Programm kann zufällige zahlen Generieren. | |
* | |
* Benötigte Libraries: | |
* - stdlib.h | |
* - stdio.h | |
* - time.h | |
* |