I hereby claim:
- I am anned20 on github.
- I am anned20 (https://keybase.io/anned20) on keybase.
- I have a public key ASB2bzDsCkNBzjHmrLMJi5r2wDr3KdLMsmYgFxFu1PESbgo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
current=$(cat /sys/class/backlight/intel_backlight/brightness) | |
max=$(cat /sys/class/backlight/intel_backlight/max_brightness) | |
wanted=$1 | |
stepsize=30 | |
function usage() { | |
echo "Usage:" | |
echo "Make it higher: brightness higher" |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* This script can convert a latin1 database(s) to utf8mb4 and then actually convert the data too. | |
* | |
* Actually stolen from and tweaked a lot from | |
* @link https://gist.github.com/pobegov/f8b293fb6eb658a13feb1c318e6c07ed | |
* | |
* Disclaimer: This is a really _hacky_ script but it does the job. | |
* |
const crypto = require('crypto'); | |
const algorithm = 'aes-256-ctr'; | |
let key = 'MySuperSecretKey'; | |
key = crypto.createHash('sha256').update(String(key)).digest('base64').substr(0, 32); | |
const encrypt = (buffer) => { | |
// Create an initialization vector | |
const iv = crypto.randomBytes(16); | |
// Create a new cipher using the algorithm, key, and iv | |
const cipher = crypto.createCipheriv(algorithm, key, iv); |