For symmetic encryption, you can use the following:
To encrypt:
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt
To decrypt:
Create Github access token: https://github.com/settings/tokens
Setup backup tool:
pip3 install github-backup
export GITHUB_BACKUP_TOKEN=ghp_bananabananabananabananabananabanana
export GITHUB_BACKUP_USER=dreikanter
export GITHUB_BACKUP_PATH=~/github-backup/$GITHUB_BACKUP_USER
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Diagnostics; | |
namespace Interpolation | |
{ | |
/// <summary> | |
/// Spline interpolation class. |
Usage example:
echo "#banana #banana #ololo #un_der-sco_re #по-русски #123" | ./extract_hashtags
#123
#banana
#ololo
#un_der-sco_re
#по-русски
-- hs.hotkey.bind({"cmd", "shift"}, "1", function() | |
-- hs.keycodes.setLayout("English - Ilya Birman Typography") | |
-- end) | |
-- hs.hotkey.bind({"cmd", "shift"}, "2", function() | |
-- hs.keycodes.setLayout("Russian - Ilya Birman Typography") | |
-- end) | |
hs.hotkey.bind({"cmd", "alt"}, "1", function() | |
hs.keycodes.setLayout("English - Ilya Birman Typography") |
# Python gzip demo: create and unpack archive | |
import os | |
import random | |
import string | |
import glob | |
import tarfile | |
import shutil | |
import filecmp |
using System; | |
using System.Management; | |
namespace UniqueSystemIdentifier | |
{ | |
class Program | |
{ | |
private static string GetSystemID() | |
{ | |
var search = new ManagementObjectSearcher(String.Format("SELECT * FROM Win32_Processor")); |
import os | |
import random | |
import shutil | |
def copydir(source, dest, indent = 0): | |
"""Copy a directory structure overwriting existing files""" | |
for root, dirs, files in os.walk(source): | |
if not os.path.isdir(root): | |
os.makedirs(root) |
require 'yaml' | |
data = YAML.load_file('.rubocop_todo.yml') | |
data.each do |cop, options| | |
excludes = options['Exclude'] | |
next unless excludes | |
next if excludes.empty? | |
data[cop]['Exclude'] = excludes.select do |path| |