Skip to content

Instantly share code, notes, and snippets.

View geekodour's full-sized avatar
🐧
who are you and why are you here. tell me.

Hrishikesh Barman geekodour

🐧
who are you and why are you here. tell me.
View GitHub Profile
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
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}
#include<stdio.h>
#include<stdlib.h>
//-------------------------------------------------
struct node
{
int data;
struct node *next;
}*start=NULL;
//------------------------------------------------------------
λ ~ amixer -D pulse set Master 1+ toggle
├── app
│   ├── index.html
│   └── index.js
├── dist
├── LICENSE
├── node_modules
│   ├── babel-core
│   ├── babel-loader
│   ├── babel-preset-es2015
#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)
/* htmlText = htmlText
.split(reDataImage)
.slice(1)
.map(function(oneImg){
oneImg = "data:image/jpeg"+ oneImg.split("\"")[0];
var imgEl = document.createElement('img');
imgEl.src = escapeHTML(oneImg);
document.body.appendChild(imgEl);
return imgEl;
// return escapeHTML(oneImg);
@geekodour
geekodour / weathman isue
Created August 11, 2016 10:53
react natie watchman issue
echo 524288 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
@geekodour
geekodour / rockstarcasperadsblocker.js
Created August 17, 2016 05:53
A casperjs boiler to avoid annoying ads and social media plugin on webpages
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'
},
});
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"}})