Skip to content

Instantly share code, notes, and snippets.

Sergio Vilar sergiovilar

Block or report user

Report or block sergiovilar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sergiovilar on github.
  • I am svilar ( on keybase.
  • I have a public key ASCQQ_XGqnv3iKNFhklDIXeNnRbaq00zTszSU9XFl2wtGAo

To claim this, I am signing this object:

sergiovilar / init.js
Created Oct 2, 2017
Translate DVORAK hotkeys to QWERTY in Atom
View init.js
atom.keymaps.addKeystrokeResolver(({keystroke, event}) => {
var qKeys = "q w e r t y u i o p [ ] a s d f g h j k l ; ' z x c v b n m , . /".split(' ')
, dvorakKeys = "' , . p y f g c r l / = a o e u i d h t n s - ; q j k x b m w v z".split(' ')
, key = keystroke
, replaced = [];
if(event.type == 'keydown' && event.metaKey && event.key !== 'Meta' && keystroke.startsWith('cmd-')) {
for(var i in dvorakKeys) {
View cookie-clicker-cheat.js
sergiovilar / pkg.js
Created Sep 15, 2015
Package Electron applications
View pkg.js
#!/usr/bin/env node
var os = require('os');
var pkgjson = require('./package.json');
var path = require('path');
var sh = require('shelljs');
var appVersion = pkgjson.version
, electronPackager = 'electron-packager'
, electronVersion = '0.29.2'
View output
]2;npm i levelup leveldown --verbose]1;npmnpm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'i',
npm verb cli 'levelup',
npm verb cli 'leveldown',
npm verb cli '--verbose' ]
npm info using npm@2.7.5
npm info using node@v0.12.2
npm verb node symlink /usr/local/bin/node
View gist:fa12011fc5d9f4ce8334
cd ~/
git clone
cd ~/subtitle-finder
mv config.sample.json config.json
View gist:0bbad72fcb96b262e952
cd /tmp
sudo dpkg -i plex*
sudo service plexmediaserver restart
View gist:b3e4d8833c6c01f7035d
sudo service transmission-daemon-stop
sudo nano /etc/transmission-daemon/settings.json
You can’t perform that action at this time.