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 | |
# Flora Dropbox clear by LeaskH.com | |
dbcMatcher="*(*'s conflicted copy 20*-*-*)*" | |
num=`find ~ -name "$dbcMatcher" | wc -l` | |
if [ $num -gt 0 ]; then | |
echo "Dropbox conflicted file(s):\n" | |
find ~ -name "$dbcMatcher" | |
echo "\nTotal: $num item(s), do you want to clear now? (y/n)" | |
read answer |
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
# Flora Up by LeaskH.com | |
up() { | |
echo 'Updating brew packages...' | |
brew update | |
brew upgrade --all | |
brew cleanup | |
echo ':) Done' | |
} |
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 | |
# Flora BlackBox Utilities by LeaskH.com | |
# BlackBox is a simple toolkit to backup my GoPro videos and my Blackberry phone records. | |
initBlackBox() { | |
if [ -e "$basePath" ]; then | |
logFile="$basePath$logFile" | |
echoWithLog "<<<<<<< Flora BlackBox >>>>>>>\n" | |
else | |
logFile="/var/log$logFile" |
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
{"lastUpload":"2020-01-10T14:41:13.416Z","extensionVersion":"v3.4.3"} |
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
const { randomBytes } = require('crypto') | |
const secp256k1 = require('secp256k1') | |
// or require('secp256k1/elliptic') | |
// if you want to use pure js implementation in node | |
// generate message to sign | |
const msg = randomBytes(32) | |
// generate privKey | |
let privKey |
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>InAppPurchaseReceipt_com.fiftythree.paper.mixer</key> | |
<data>MTMzMzA1Njc5OC45MTQ0NjI=</data> | |
<key>WebKitDiskImageCacheSavedCacheDirectory</key> | |
<string></string> | |
<key>FacebookSharingEnabled</key> | |
<false/> |
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 | |
# Linuxium's installation script for upgrading Ubuntu with Canonical's Z3735F customizations | |
if [ -d /target ]; then | |
echo "$0: Do not run this script from a LiveCD ... exiting." | |
exit | |
fi | |
DEFAULT_GATEWAY=`ip r | grep default | cut -d ' ' -f 3` |
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
const { randomBytes } = require('crypto') | |
const secp256k1 = require('secp256k1') | |
const createKeccakHash = require('keccak') | |
const signToPubAddress = (msghash, sig) => { | |
// TODO: verify msghash and sig | |
const v = Number(sig.slice(128)); | |
const sigObj = {r: sig.slice(0, 64), s: sig.slice(64, 128)}; | |
const point = secp256k1.recoverPubKey(msghash, sigObj, v); | |
const pub = point.encode('hex'); |
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 | |
# Flora Listening by LeaskH.com | |
initFlora() { | |
export PATH=~/Documents/.flora:$PATH | |
} | |
getLastListening() { | |
echo `cat /tmp/flora_listening 2> /dev/null` | |
} |