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"
| #!/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 |
| 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); |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| 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' |
| 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; |
| # 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 |
| #!/usr/bin/env python | |
| # GPGIt : Automatically GPG-encrypt incoming email | |
| # Aeris <[email protected]> | |
| # Licensed under AGPLv3 or later | |
| import email | |
| import sys, os | |
| import re | |
| from pyme.core import Data, Context | |
| from email.mime.base import MIMEBase |
| #!/bin/bash | |
| # install the smartctl package first! (apt-get install smartctl) | |
| if sudo true | |
| then | |
| true | |
| else | |
| echo 'Root privileges required' |
| <?php | |
| /** | |
| * Case-insensitive in_array() wrapper. | |
| * | |
| * @param mixed $needle Value to seek. | |
| * @param array $haystack Array to seek in. | |
| * | |
| * @return bool | |
| */ |