This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generate your own initialization vector | |
Blob iv = Blob.valueOf('Lorem ipsum dolor sit amet'); | |
// Generate an AES key | |
Blob key = Crypto.generateAesKey(256); | |
// Generate the data to be encrypted | |
Blob data = Blob.valueof('Encrypt everything!'); | |
// Encrypt the data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
default=4.4.14-11.pvops.qubes.x86_64 | |
[4.4.14-11.pvops.qubes.x86_64] | |
options=loglvl=all | |
kernel=vmlinuz-4.4.14-11.pvops.qubes.x86_64 root=/dev/mapper/qubes_dom0-root vconsole.font=latarcyrheb-sun16 rd.lvm.lv=qubes_dom0/root i915.preliminary_hw_support=1 rd.blacklist.drivers=radeon radeon.modeset=0 | |
ramdisk=initramfs-4.4.14-11.pvops.qubes.x86_64.img | |
mapbs=1 | |
noexitboot=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/lib/rpm/ | |
mv __db.00* /tmp | |
rpm --rebuilddb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global user.signingKey <PASTE_YOUR_KEY_ID_HERE> | |
git config --global commit.gpgsign true | |
git config --global tag.gpgsign true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place this file in your $HOME directory. | |
# Set file permissions: chmod 600 ~/.pypirc | |
[distutils] | |
index-servers = | |
pypi | |
testpypi | |
[pypi] | |
# python setup.py sdist upload -r pypi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/yum.repos.d | |
[virtualbox] | |
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox | |
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch | |
enabled=1 | |
gpgcheck=1 | |
repo_gpgcheck=1 | |
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
volumes: | |
nextcloud: | |
db: | |
services: | |
db: | |
image: mariadb | |
env_file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/iamcryptoki/f56ec8af05cebed39fad40f718e393cf | |
MYSQL_ROOT_PASSWORD=*********************** | |
MYSQL_DATABASE=nextcloud | |
MYSQL_USER=nextcloud | |
MYSQL_PASSWORD=************************************ | |
MYSQL_HOST=db | |
NEXTCLOUD_VERSION=13.0 | |
NEXTCLOUD_ADMIN_USER=example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
certbot certonly --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns -d '*.example.com' --email [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uname [OPTION] | |
-a, --all Prints all information, omitting -p and -i if the information is unknown. | |
-s, --kernel-name Print the kernel name. | |
-n, --nodename Print the network node hostname. | |
-r, --kernel-release Print the kernel release. | |
-v, --kernel-version Print the kernel version. | |
-m, --machine Print the machine hardware name. | |
-p, --processor Print the processor type, or "unknown". | |
-i, --hardware-platform Print the hardware platform, or "unknown". |
OlderNewer