This file contains hidden or 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
| videobalance hue=-1 ! autovideosink | |
| ffmpegcolorspace ! video/x-raw-yuv,format=(fourcc)YV12 ! xvimagesink |
This file contains hidden or 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
| adduser --system --no-create-home --group --shell /bin/false runner |
This file contains hidden or 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
| $ sfdisk -d /dev/sda > partitions.txt | |
| $ sfdisk /dev/sdb < partitions.txt |
This file contains hidden or 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
| Nifty color: #4B7399 |
This file contains hidden or 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
| // Written by Pioz. | |
| // Compile with: gcc -o autoclick autoclick.c -lX11 | |
| #include <stdio.h> // printf, fprintf and fflush | |
| #include <string.h> // memset | |
| #include <unistd.h> // sleep and usleep | |
| #include <X11/Xlib.h> // X11 | |
| #include <X11/Xutil.h> // XGetPixel and XDestroyImage | |
| // Simulate mouse click |
This file contains hidden or 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
| mplayer -really-quiet "http://translate.google.com/translate_tts?tl=LOCALE&q=TEXT" |
This file contains hidden or 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 'uri' | |
| require 'psych' | |
| require 'net/http' | |
| require 'meme' # Install meme_generator | |
| module Campfire | |
| class API | |
| attr_reader :uri, :token, :pass |
This file contains hidden or 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 | |
| PATH=/opt/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
| NAME=solr | |
| DESC=apache-solr | |
| VERSION=1.4.1 | |
| SOLR_PATH=/opt/solr-$VERSION | |
| COMMAND=/usr/bin/java | |
| OPTIONS="-Dsolr.solr.home=$SOLR_PATH/solr -Djetty.home=$SOLR_PATH -jar $SOLR_PATH/start.jar" | |
| PIDFILE=/var/run/$NAME.pid |
This file contains hidden or 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
| find . -type f -name '*.html' | sed s/html// | xargs -I {} html2haml {}html {}haml |
This file contains hidden or 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
| mysqldump DBNAME -u USER -p > backup.sql | |
| cat backup.sql | sed s/latin1/utf8/ > converted.sql | |
| mysql -u USER -p --execute="drop database DBNAME;" | |
| mysql -u USER -p --execute="create database DBNAME character set utf8 collate utf8_general_ci;" | |
| mysql DBNAME -u USER -p < converted.sql |
OlderNewer