Host AwesomeServer
HostName host.example.com
User ubuntu
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
// ==UserScript== | |
// @name Block by URL OR by text (shadow DOM safe, no overlay) | |
// @namespace taher-block-url-or-text | |
// @description If URL has a keyword: blank the page. Else: hide elements whose text matches (scans nested shadow DOMs). No overlay. | |
// @version 1.0 | |
// @run-at document-start | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Facebook Blue Badge Remover | |
// @namespace http://taher.xyz/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author @entrptaher | |
// @match https://www.facebook.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=facebook.com | |
// @grant none | |
// ==/UserScript== |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
LIBVIRT_POOL = 'fast' | |
Vagrant.configure("2") do |config| | |
config.vm.box = "generic/ubuntu1604" | |
config.vm.synced_folder ".", "/vagrant", type: "nfs", nfs_udp: false | |
#config.vm.synced_folder "../../datastore/spindle/ML/datasets/", "/mnt", type: "nfs", nfs_udp: false | |
config.vm.network "private_network", :dev => "br0", :mode => 'bridge', :ip => "192.168.17.25" |
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
/** | |
* Utility that waits for @predicate function to return truthy, testing at @interval until @timeout is reached. | |
* | |
* Example: await until(() => spy.called); | |
* | |
* @param {Function} predicate | |
* @param {Number} interval | |
* @param {Number} timeout | |
* | |
* @return {Promise} |
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
# Just change the first THEME variable to whatever theme you want. The line will edit, reload and print you the changed line in the .zshrc file | |
THEME="agnoster"; sed -i s/^ZSH_THEME=".\+"$/ZSH_THEME=\"$THEME\"/g ~/.zshrc && source ~/.zshrc && echo "Edited line in ~/zshrc :" && cat ~/.zshrc | grep -m 1 ZSH_THEME |
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
#!/bin/bash | |
onedrive=`dirname $0` | |
zsh_dir=.oh-my-zsh #you may need modify this line | |
readonly onedrive | |
readonly zsh_dir | |
upload_ssh() { | |
od_ssh=$onedrive/.ssh |
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
{ | |
"input": { | |
"icon": "i-cursor", | |
"badges": { | |
"selector": true, | |
"execute": true | |
}, | |
"type": "input", | |
"data": { | |
"count": 0, |
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
/* | |
Given the input is a string | |
Print out all permutations and permutations of their capitalizations, in an array | |
All elements of the output array should contain all letters from the input | |
*/ | |
function capitalPermutations(input){} | |
capitalPermutations("a") // => ["a", "A"] | |
capitalPermutations("ab") // => ["ab", "Ab", "aB", "ba", "Ba", "bA"] |
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
<style> | |
@font-face{ | |
font-family:SutonnyMJ; | |
src: url(/data/uploads/sutonnymj.ttf) format('truetype'); | |
} | |
</style> | |
<textarea style="font-family:SutonnyMJ;"></textarea> |
NewerOlder