jon at kestrel in ~/fs/git/kubernetes-client-haskell(master|…)
$ git reset --hard
HEAD is now at 94ee7cc Merge pull request #92 from jonschoning/fix-incorrectly-generated-querystrings
jon at kestrel in ~/fs/git/kubernetes-client-haskell(master|…)
$ stack build
kubernetes-client-core> build (lib)
kubernetes-client-core> Preprocessing library for kubernetes-client-core-0.4.2.0..
kubernetes-client-core> Building library for kubernetes-client-core-0.4.2.0..
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 docalc() { | |
var deck = $('#ndeck').val(); | |
var copies = $('#ncopies').val(); | |
var drawn = $('#ndrawn').val(); | |
var successes = $('#nsuccesses').val(); | |
var hyperGeoOutput = '<p>'; | |
//Chance to draw x or more cards | |
if (successes > 0) | |
pral = 1 - hyp(successes - 1, drawn, copies, deck); |
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
from time import sleep | |
import mouse | |
import sys | |
def main(): | |
mouse.move_to_area( | |
int(sys.argv[1]), # x | |
int(sys.argv[2]), # y | |
int(sys.argv[3]), # w | |
int(sys.argv[4]), # h |
This file has been truncated, but you can view the full file.
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
hfmt=(lambda s0,w=2,j=' ':(lambda s:j.join([s[i:i+w]for i in range(0,len(s),w)]))(s0 if len(s0)%w==0else'0'*(w-len(s0)%w)+s0)) | |
xfmt=lambda v,w=2,j=' ':hfmt("{:x}".format(v),w,j) | |
bfmt=lambda v,w=4,j=' ':hfmt("{:b}".format(v),w,j) | |
#xfmt(0xAA) | |
#bfmt(0XAA) |
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
import Control.Exception | |
import Control.Concurrent | |
import System.IO (hSetBuffering, BufferMode(NoBuffering), stdout) | |
main = do | |
hSetBuffering stdout NoBuffering | |
bracket (return "ending") | |
(\x -> putStrLn x) | |
(\_ -> threadDelay 10000000000) |
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
import sys | |
def wait_for_enter(): | |
input("Press Enter to continue: ") | |
def create_ssh_keys(context): | |
"""Run: | |
ssh-keygen -t rsa -f ~/{username} | |
""" | |
pass |
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
/usr/bin/xscreensaver -nosplash | |
xwinwrap -b -fs -sp -fs -nf -ov -- nice -n 19 /usr/lib/xscreensaver/klein -root -view-mode walk -mode wireframe -speed-wx 0.01 -speed-wy 0.01 -speed-wz 0.01 -speed-xy 0.1 -speed-xz 0.01 -speed-yz 0.01 -walk-direction -14.3363 -walk-speed .03 -window-id WID | |
/usr/lib/xscreensaver/klein -root -view-mode walk -mode wireframe -speed-wx 0.01 -speed-wy 0.01 -speed-wz 0.01 -speed-xy 0.1 -speed-xz 0.01 -speed-yz 0.01 -walk-direction -14.3363 -walk-speed .03 -window-id 0x5c00001 |
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
pactl load-module module-null-sink sink_name="obsvirtual_sink" sink_properties=device.description="obsvirtual" # Create Sink | |
pactl load-module module-remap-source source_name="obsvirtual_source" master="obsvirtual_sink.monitor" # Create Source |
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
// ==UserScript== | |
// @name Facebook messages: Declutter | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
const SPECS = | |
[ { selectors: `._4_j5`, description: 'remove right pane', action: action_remove, enabled: true } | |
, | |
]; |
NewerOlder