This file contains 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
cd ~ | |
mkdir -p ~/.config | |
sudo apt-get install -y inotify-tools | |
sudo apt-get install -y tmux | |
git clone https://github.com/clupasq/clupasq.git $HOME/.config/clupasq | |
$HOME/.config/clupasq/setup.sh -o |
This file contains 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
(function(){ | |
var styleId = 'invert-style'; | |
var style = document.getElementById(styleId); | |
if (style) { | |
style.parentElement.removeChild(style); | |
} else { | |
style = document.createElement('style'); | |
style.id = styleId; | |
style.textContent = '' + | |
'html,img, video, object, [style*=url] {' + |
This file contains 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
// Run this script on any page to load the DataTables library | |
// (https://datatables.net/) | |
// and add DataTable functionality to all tables | |
var addJqueryIfNotPresent = function(callback){ | |
if(!window.jQuery){ | |
var scr = document.createElement('script'); | |
scr.src = 'https://code.jquery.com/jquery-2.2.4.min.js'; | |
scr.onload = function(){ callback && callback(); }; | |
document.head.appendChild(scr); |
This file contains 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
__AUTHOR__ = "wolf & radu" | |
__TITLE__ = "Super Crazy" | |
-- Based on two other game modes by chameleon: Jumping Jack and Sticky Mode | |
mode = "default" | |
function randomize() | |
x = math.random(1,3) | |
if x == 1 then mode = "default" | |
elseif x == 2 then mode = "jumping" |
This file contains 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
ssh-keygen -t rsa -b 4096 | |
cd .ssh/ | |
touch authorized_keys | |
chmod 644 authorized_keys | |
sudo yum update | |
sudo yum install bash-completion | |
sudo yum install epel-release | |
sudo yum install git | |
mkdir -p ~/.config | |
sudo yum install inotify-tools tmux htop |
This file contains 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
// Script to download images from WhatsApp | |
// | |
// Steps to use: | |
// 1. Open up the conversation you want to download pics from | |
// 2. Open the leftmost image you want to download (the script | |
// will download and advance to the next image until the last | |
// image is reached. | |
// 3. Open the developer console and paste the script in it | |
// 4. Click OK on the "Download multiple files" browser prompt | |
// (if it appears) |
This file contains 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 searchObject = function(o, expr, callback, path, visited) { | |
try{ | |
visited = visited || new Set(); | |
path = path || ''; | |
if (visited.has(o)) { return; } | |
if (!o) { return; } | |
visited.add(o); | |
if (typeof o === 'string') { | |
if (o.match(expr)) { | |
callback(path); |
This file contains 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
x `shouldBe` y = putStrLn $ if x == y then "OK" else "Not OK!" |
This file contains 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 'rspec/autorun' | |
require 'json' | |
require 'httparty' | |
require 'pp' | |
GuessResult = Struct.new :x, :y, :count | |
class FakeGame | |
def initialize(x=random_num, y=random_num) | |
@x = x |
This file contains 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
setxkbmap -option caps:escape,shift:both_capslock |