- install the android ndk: https://developer.android.com/studio/projects/install-ndk
- install java 11:
brew tap homebrew/cask-versions
brew install --cask temurin11
create or replace function random_string(nb_bytes integer) | |
returns text | |
as $$ | |
select | |
trim('=' | |
from | |
( | |
select | |
replace ( ( | |
select |
brew tap homebrew/cask-versions
brew install --cask temurin11
#!/bin/sh | |
echo "Use the following format: yyyy-mm-dd (ex: 2022-01-15)" | |
echo "First day: " | |
read FIRST_DAY | |
echo "Last day: " | |
read LAST_DAY | |
If you want to create a redistributable installer for a Qt app with Cmake then youve come to the right place... I ve been struggling to make Qt work with cmake on windows, and finally figure out something that works:
Go ahead and download Qt: https://www.qt.io/download-qt-installer
We will install gcc in an upper directory, so that we can reuse it in all our projects
mkdir stm32 && cd stm32
BLOCKSIZE=m; export BLOCKSIZE | |
PAGER=less; export PAGER | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
export HISTCONTROL=ignoreboth:erasedups | |
alias l='ls -lah' | |
alias c='cat' | |
alias e='emacs' |
;; melpa | |
(require 'package) | |
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) | |
(package-initialize) | |
;; theme | |
(load-theme 'manoj-dark) | |
(global-linum-mode t) |
const crypto = require('crypto'); | |
const IV_LENGTH = 16; | |
class Encryption { | |
constructor(b64Key) { | |
this.key = Buffer.from(b64Key, 'base64'); | |
} |
package main | |
import ( | |
"bytes" | |
"compress/gzip" | |
"fmt" | |
"github.com/awslabs/aws-sdk-go/aws" | |
"github.com/awslabs/aws-sdk-go/aws/awsutil" | |
"github.com/awslabs/aws-sdk-go/service/s3" | |
"github.com/hyperboloide/pipe" |
# encrypt | |
openssl enc -aes-256-cbc -in myfile.tar -out myfile.tar.enc | |
# decrypt | |
openssl enc -aes-256-cbc -d -in myfile.tar.enc -out myfile.tar |