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
#!/bin/sh | |
prog_name=${0##*/} | |
version=1.0 | |
version_text="Boilerplate for new scripts v$version" | |
options="h o: q v V" | |
help_text="Usage: $prog_name [-o <text>] [-hqvV] [<file>]... | |
Boilerplate for new scripts |
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
.DEFAULT_GOAL:=help | |
# COLORS | |
GREEN := $(shell tput -Txterm setaf 2) | |
YELLOW := $(shell tput -Txterm setaf 3) | |
WHITE := $(shell tput -Txterm setaf 7) | |
RESET := $(shell tput -Txterm sgr0) | |
TARGET_MAX_CHAR_NUM=20 |
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
" Settings | |
let newtaburl = "https://www.duckduckgo.com/"; | |
let homeurl = "https://www.duckduckgo.com/"; | |
map "shift+d" scrollHalfPageDown | |
map "shift+u" scrollHalfPageUp | |
let blacklists = ["*://mail.google.com/*"] | |
" Unmap defaults | |
unmap "e" | |
unmap "shift+e" |
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
set smoothscroll | |
set completeonopen | |
set linkanimations | |
set defaultnewtabpage | |
set noautofocus | |
let defaultengine = "duckduckgo" | |
let blacklists = ["*://mail.google.com/*","*://*.feedly.com/*","*://*.youtube.com/*","*://*.rememberthemilk.com/*","*://*.inputclub.com/*","*://*.trello.com/*","http://localhost/*","https://hackertyper.net/*"] |
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
### Keybase proof | |
I hereby claim: | |
* I am devnall on github. | |
* I am devnall (https://keybase.io/devnall) on keybase. | |
* I have a public key whose fingerprint is 664F 4475 61D7 139C 74A7 8B93 B0F1 C8FC C791 E64A | |
To claim this, I am signing this object: |
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": 3.5, | |
"c": "#53682b", | |
"t": "#ffffff" | |
}, | |
"#\n3", | |
{ | |
"x": 10.5 |
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
In reply to @ZachWeiner's "If lightning never strikes in the same place, how long until lightning can’t strike anywhere?" | |
Lightning bolt diameter is roughly that of a quarter or half dollar <http://www.stormwise.com/striking.htm> | |
Quarter diameter = 462.2mm^2 | |
Half dollar diameter = 735.9mm^2 | |
Averaged diameter of the two = 599.05mm^2 | |
Earth surface area (per Wolfram Alpha) = 2.6e41mm^2 | |
Lightning strikes the earth at a rate of roughly 100 times/sec <http://www.ask.com/science/many-times-per-day-lightning-strike-earth-66d5e236ffaa2aca> |
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
#!/bin/bash | |
# A one-liner to display the priority values of the repos on a RHEL/CentOS box | |
# Assumes installation of the Priorities plugin for yum (see http://wiki.centos.org/PackageManagement/Yum/Priorities) | |
sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo|sort -k3n |
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
zcat access_log*.gz | cat access_log - | awk '$9 == "404" {print $7}' |sort|uniq -c|sort -rn| head -n 50 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.19370138645172119</real> | |
<key>Green Component</key> | |
<real>0.15575926005840302</real> |
NewerOlder