You can run these commands to encrypt or decrypt a string:
To encrypt:
printf "Lorem ipsum dolor sit amet, ..." | \
openssl enc -e -base64 -A -pbkdf2 -aes-256-cbc -pass pass:"my-password"
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| assert(block.hashMerkleRoot == uint256("0x38ca78a781d3c571a681ea2241ffb1e0d89bd1ecd3499f1bf6edeaa8751e7151")); | |
| // If genesis block hash does not match, then generate new genesis hash. | |
| if (false && block.GetHash() != hashGenesisBlock) | |
| { | |
| printf("Searching for genesis block...\n"); | |
| // This will figure out a valid hash and Nonce if you're | |
| // creating a different genesis block: | |
| uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256(); | |
| uint256 thash; |
| driver = mysql | |
| connect = host=127.0.0.1 dbname=postfixadmin user=postfixadmin password=MYPASS | |
| default_pass_scheme = SHA512-CRYPT | |
| password_query = SELECT username, password FROM mailbox WHERE username='%u' |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| var CryptoJS = require("crypto-js");//replace thie with script tag in browser env | |
| //encrypt | |
| var rawStr = "hello world!"; | |
| var wordArray = CryptoJS.enc.Utf8.parse(rawStr); | |
| var base64 = CryptoJS.enc.Base64.stringify(wordArray); | |
| console.log('encrypted:', base64); | |
| //decrypt | |
| var parsedWordArray = CryptoJS.enc.Base64.parse(base64); |
| #!/bin/bash | |
| # | |
| # Generates thumbnail contact sheets of all video files in current working directory. | |
| # | |
| # Script defaults to writing PNG contact sheets to the same folder, using the original | |
| # video filename as the basename for the contact sheet | |
| # | |
| # More details: https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video | |
| # | |
| # NOTE: 'montage' requires that Ghostscript be installed, in order to be able to generate titles |
| #!/usr/bin/env bash | |
| # postfix-wrapper.sh, version 0.1.0 | |
| # | |
| # You cannot start postfix in some foreground mode and | |
| # it's more or less important that docker doesn't kill | |
| # postfix and its chilren if you stop the container. | |
| # | |
| # Use this script with supervisord and it will take | |
| # care about starting and stopping postfix correctly. | |
| # |
| // ==UserScript== | |
| // @version 1.0.2 | |
| // @name Removes the autoplay up next feature | |
| // @match *://www.youtube.com/* | |
| // @run-at document-start | |
| // @grant none | |
| // @noframes | |
| // ==/UserScript== | |
| (function () { | |
| 'use strict'; |
| (function($) { | |
| $(function() { | |
| var isoCountries = [ | |
| { id: 'AF', text: 'Afghanistan'}, | |
| { id: 'AX', text: 'Aland Islands'}, | |
| { id: 'AL', text: 'Albania'}, | |
| { id: 'DZ', text: 'Algeria'}, | |
| { id: 'AS', text: 'American Samoa'}, | |
| { id: 'AD', text: 'Andorra'}, | |
| { id: 'AO', text: 'Angola'}, |