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 -vo xv tv:// -tv driver=v4l2:width=640:height=480:fps=30:device=/dev/video0 | |
recordmydesktop --width 1920 --height 1200 --full-shots --fps 15 --channels 1 --device hw:1,0 --delay 10 |
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
PS=${PS:-"nginx"} # process name | |
DESCRIPTION=${DESCRIPTION:-"Nginx Server..."} # process description | |
NGINXPATH=${NGINXPATH:-/usr/bin} # root path where installed | |
DAEMON=${DAEMON:-$NGINXPATH/nginx} # path to daemon binary | |
NGINX_CONF_FILE=${NGINX_CONF_FILE:-/etc/nginx/nginx.conf} # config file path | |
PIDNAME=${PIDNAME:-"nginx"} # lets you do $PS-slave | |
PIDFILE=${PIDFILE:-$PIDNAME.pid} # pid file | |
PIDSPATH=${PIDSPATH:-/var/run} # default pid location, you should change it | |
RUNAS=${RUNAS:-root} |
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
#include<stdio.h> | |
#include<stdlib.h> | |
//------------------------------------------------- | |
struct node | |
{ | |
int data; | |
struct node *next; | |
}*start=NULL; | |
//------------------------------------------------------------ |
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
λ ~ amixer -D pulse set Master 1+ toggle |
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
├── app | |
│ ├── index.html | |
│ └── index.js | |
├── dist | |
├── LICENSE | |
├── node_modules | |
│ ├── babel-core | |
│ ├── babel-loader | |
│ ├── babel-preset-es2015 |
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
#first | |
document.getElementsByClassName('author notFaded')[0].children[0].textContent | |
#2nd | |
document.querySelector('.author.notFaded a').innerText | |
#fk | |
document.querySelector('.subtitle').innerText.slice(1,-1).split(",").slice(1) |
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
echo 524288 | sudo tee -a /proc/sys/fs/inotify/max_user_watches |
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
var casper = require('casper').create({ | |
verbose: true, | |
logLevel: 'error', | |
clientScripts: [], | |
pageSettings: { | |
loadImages: false, // The WebPage instance used by Casper will | |
loadPlugins: false, // use these settings | |
userAgent : 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36' | |
}, | |
}); |
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
db.actors.find({"movies.name": "Fast Five"},{name:1,_id:0}).pretty() | |
db.actors.update({"movies.name": "Takers","name":"Paul Walker"},{'$set':{'movies.$.photo': "FUCK YOU"}}) |