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
/* | |
* burn.c | |
* Secure in-memory string erasure | |
* | |
* This is a modified version of the code originally posted to the | |
* Cryptograhy ML by Werner Koch: | |
* https://www.mail-archive.com/cryptography@metzdowd.com/msg08428.html | |
* | |
* By default, modern C compilers will pick up and use the static inline | |
* function. However, if you prefer your C to be pre-C99, compile with |
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 | |
# git-email-prompt.bash yesmar@gmail.com | |
# Bash prompt that asks for email address to configure for git repository. | |
# This is a modified version of the script originally created by | |
# [Marvin Frommhold](http://depressiverobot.com/2015/01/05/git-email.html). | |
# I have extracted the hardcoded email addresses out of script. Create a | |
# ~/.gitmails file and put your email addresses in there. The content of the | |
# file should look like: |
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
// https://godoc.org/golang.org/x/crypto/argon2 | |
package main | |
import ( | |
"crypto/rand" | |
"encoding/hex" | |
"fmt" | |
"golang.org/x/crypto/argon2" |
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
package main | |
import ( | |
"fmt" | |
) | |
// HexDump the specified byte slice. | |
func HexDump(bs []byte, width int) { | |
for i, v := range bs { | |
fmt.Printf("%02x ", v) |
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 | |
case $((RANDOM % 4)) in | |
1) precip=🔪 ;; | |
*) precip=❄️ ;; | |
esac | |
lines=$(tput lines) | |
columns=$(tput cols) |
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 | |
# insult.bash: insult generator inspired by a picture I saw on Imgur | |
# Copyright © 2016, Ramsey Dow. All rights reserved. | |
# SPDX-License-Identifier: BSD-2-Clause | |
shopt -s extglob | |
declare -a alpha=(lazy stupid insecure idiotic slimy slutty smelly | |
pompous communist dicknose pie-eating racist elitist 'white trash' | |
drug-loving butterface 'tone deaf' ugly creepy |
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 | |
# gknox.bash: encrypted disk image on/off switch for macOS | |
# Copyright © 2015,2017, Ramsey Dow. All rights reserved. | |
# SPDX-License-Identifier: BSD-2-Clause | |
PERSONAL_BIN=~/.local/bin | |
PATH=${PERSONAL_BIN}:/bin:/usr/bin:/usr/sbin | |
script=$(basename "$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
#!/usr/bin/env ruby | |
# dupes.rb — Given one or more target directories, identify duplicate files through | |
# cryptographic hashing. The exit status is the number of duplicates identified. | |
# Copyright © 2016,2017, Ramsey Dow. All rights reserved. | |
# SPDX-License-Identifier: BSD-2-Clause | |
# 20160811 yesmar@gmail.com | |
# 20160822 added color output and deletion support |
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 | |
# showdefines.bash: display default compiler symbols. | |
# Copyright © 2011,2017, Ramsey Dow. All rights reserved. | |
# SPDX-License-Identifier: BSD-2-Clause | |
# Usage: showdefines.bash [-c compiler] [-l language] [additional flags ...] | |
# Defaults to clang++, but works fine with C and groks the GNU and Intel compilers, as well. | |
# http://clang.llvm.org/ |
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/env ruby | |
# aapl_slurp.rb: downloader for Apple open source projects | |
# Copyright © 2017, Ramsey Dow. All rights reserved. | |
# SPDX-License-Identifier: BSD-2-Clause | |
# mkdir /tmp/macOS-1013 && pushd !#:1 | |
# curl -#LO https://opensource.apple.com/plist/macos-1013.plist | |
# SSL_CERT_FILE=$CURL_CA_BUNDLE ruby /path/to/aapl_slurp.rb macos-1013.plist |
OlderNewer