Skip to content

Instantly share code, notes, and snippets.

@hugohil
hugohil / disable-right-click.js
Last active August 29, 2015 14:22
Disable right click
(function(){
var blockContextMenu, element,
blockContextMenu = function (event){
event.preventDefault();
}
element = document.body;
element.addEventListener('contextmenu', blockContextMenu);
})();
@hugohil
hugohil / close-warning.sh
Last active August 29, 2015 14:21
Close Chrome/Chromium warning in full screen on a full HD display
xdotool mousemove --sync 1900 50
xdotool getactivewindow click 1
sleep 1
xdotool mousemove --sync 1900 20
xdotool getactivewindow click 1
@hugohil
hugohil / Preferences.sublime-settings
Last active August 29, 2015 14:06
Preferences.sublime-settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"draw_white_space": "all",
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
@hugohil
hugohil / install_computer.sh
Last active August 29, 2015 14:04
install_computer
#!/bin/bash
sudo apt-get install -y apt-transport-https
sudo apt-get install -y curl
sudo apt-get install -y vim
sudo apt-get install -y vim
sudo apt-get install -y apache2
sudo apt-get install -y build-essential
sudo apt-get install -y autoconf
@hugohil
hugohil / mouse.js
Created July 28, 2014 15:48 — forked from bfncs/mouse.js
Byzanz helper
/**
* Read Linux mouse(s) in node.js
* Author: Marc Loehe (marcloehe@gmail.com)
*
* Adapted from Tim Caswell's nice solution to read a linux joystick
* http://nodebits.org/linux-joystick
* https://github.com/nodebits/linux-joystick
*/
var fs = require('fs'),