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/sh | |
set -eo pipefail | |
in="$(mktemp)" | |
out="$(mktemp)" | |
trap "rm '$in' '$out'" EXIT | |
cat /dev/stdin > "$in" | |
"$@" < "$in" 2>/dev/null > "$out" && cat "$out" || cat "$in" |
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
func! s:populate(file, cmd) abort | |
unlet! t:job | |
try | |
exe 'cgetfile '.a:file | |
finally | |
call setqflist([], 'a', {'title': a:cmd}) | |
endtry | |
endfunc | |
func! AsyncDo(...) abort |
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
[38;5;252m[1m ╓▄≡≡▄╖ | |
[38;5;253m[1m ╓▀ [38;5;238m⸜⏋⎾⸝[38;5;253m ▀╖ | |
[38;5;255m[1m ,▓[38;5;238m⸜[38;5;52m▚[38;5;88m▃[38;5;238m`´[38;5;88m▃[38;5;52m▞[38;5;238m⸝[38;5;255m▓, | |
[38;5;255m[1m █ [38;5;238m `⸜[38;5;160m▀▀[38;5;238m⸝´ [38;5;255m █ | |
[38;5;253m[1m . ▓▐ [38;5;238m ∕≡≡∖ [38;5;253m ▌▓ . | |
[38;5;248m[1m #⌉'╯ ║▌ [38;5;238m ∣≡≡∣ [38;5;248m ▐║ ╰'⌠# | |
[38;5;248m[1m ¬" [38;5;242m ▐V [38;5;248m ▀▄[38;5;238m_∕≡≡∖_[38;5;248m▄▀ [38;5;242mV▌ [38;5;248m"⌐ | |
[38;5;248m[1m w╜ [38;5;242m▐[38;5;245m▄ [38;5;238m,:« "[38;5;248m▀▀▀▀[38;5;238m" »:, [38;5;245m▄[38;5;242m▌[38;5;248m ╙w | |
[38;5;248m[1m ▐╖▄▄▄▄[38;5;238m²[38;5;248m▌[38;5;238m^ ▐ ▌ ^[38;5;248m▌[38;5;238m²[38;5;248m▄▄▄▄╓▌ | |
[38;5;248m[1m ▐[38;5;238m╡W▐[38;5;248m[1m║ ▐ [38;5;238m / ,, \ [38;5;248m[1m ▐ ║▌[38;5;238mW[38;5;248m[1m╞▌ |
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
## Build | |
build: | |
stage: build | |
tags: | |
- elixir | |
script: | |
- eval $(ssh-agent -s) | |
- echo "$SSH_BUILD_KEY" | tr -d '\r' | ssh-add - | |
- git branch -f master HEAD | |
- mix edeliver build release --revision="$CI_BUILD_REF" --auto-version=revision |
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
### Keybase proof | |
I hereby claim: | |
* I am hauleth on github. | |
* I am hauleth (https://keybase.io/hauleth) on keybase. | |
* I have a public key ASC0dZl_5-9qDXYdx41ee4Hg-qPbyRBmapJevdcVdwy5Rwo | |
To claim this, I am signing this object: |
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
extern crate rayon; | |
extern crate regex; | |
extern crate scan_dir; | |
use rayon::prelude::*; | |
use regex::Regex; | |
use scan_dir::ScanDir; | |
use std::env; | |
use std::fs::File; |
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
fn witness(num: BigInt, a: BigInt, d: &BigInt, s: usize) -> Result { | |
let mut x = (&a).pow_mod(d, &num); | |
if x == one() || x == (&num - BigInt::one()) { return Result::Composite } | |
for _ in 0..s { | |
x = (&x * &x) % # | |
if x == one() { return Result::Composite } | |
if x == (&num - BigInt::one()) { return Result::PropablyPrime } | |
} |
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
# Example answer file for setup-alpine script | |
# If you don't want to use a certain option, then comment it out | |
# Use US layout with US variant | |
KEYMAPOPTS="us us" | |
# Set hostname to alpine-test | |
HOSTNAMEOPTS="-n alpine" | |
# Contents of /etc/network/interfaces |
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
# INSTALL INSTRUCTIONS: save as ~/.gdbinit | |
# | |
# DESCRIPTION: A user-friendly gdb configuration file, for x86/x86_64 and ARM platforms. | |
# | |
# REVISION : 8.0.5 (18/08/2013) | |
# | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit, | |
# truthix the cyberpunk, fG!, gln | |
# | |
# FEEDBACK: http://reverse.put.as - [email protected] |
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
Fresh gcc v0.3.8 | |
Fresh pkg-config v0.3.5 | |
Fresh bitflags v0.3.0 | |
Fresh libc v0.1.8 | |
Fresh openssl-sys v0.6.3 | |
Fresh libz-sys v0.1.6 | |
Fresh curl-sys v0.1.24 | |
Fresh libucl-sys v0.1.5 | |
Fresh ucl v0.1.3 (file:///home/hauleth/Workspace/ucl-rs) | |
Running `/home/hauleth/Workspace/ucl-rs/target/debug/ucl-49bf07184c877340` |