echo 'unencrypted' | openssl aes-256-cbc -a -salt -pbkdf2
echo 'encrypted' | openssl aes-256-cbc -d -a -pbkdf2
#!/bin/bash | |
# --------------------------------------- | |
# EXAMPLE USE: | |
# | |
# ./watch.sh target/debug/my-server-app | |
# --------------------------------------- | |
kill_prev_pid () { | |
echo Killing prev pid $(cat .pid) |
Here's a script for squashing up to the first commit coming after a merge commit (with confirmation). Useful for working in a branch and then squashing temporary commits before merging into trunk.
Save the script as squash
. Upon executing, it brings your git editor (vim/nano/whatever) to confirm the prepped rebase
todo — so you would only need to simply save-and-exit (in most cases).
#!/usr/bin/env python3
# flake8: noqa
// ----------------------------------------------------------------- | |
'use strict' | |
// ----------------------------------------------------------------- | |
function replicate (times, n) { | |
let arr = [] | |
if (times <= 0) { return arr } | |
arr.push (n) |
0xF4B9d98828dF938ccf16b644Be471cF23816AB9F |
### Keybase proof | |
I hereby claim: | |
* I am xpl on github. | |
* I am xpl (https://keybase.io/xpl) on keybase. | |
* I have a public key ASCbmgidGUS8v1jHmPMQmSQEqPMHxAmeQERrU2XSi1jyOAo | |
To claim this, I am signing this object: |