Skip to content

Instantly share code, notes, and snippets.

@Dzoge
Dzoge / install-tor-and-nginx-on-centos7.md
Last active January 7, 2024 17:33
Install Tor and Nginx

Installation

Linux

  1. Download latest version Minimal ISO CentOS from https://www.centos.org/
  2. Install centos with minimal required hardware configuration
    • CPU - 1
    • RAM - 1GB
    • HDD - 20GB
  3. optional Create an additional user with the administrator privilages (ex: myuser)
@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active July 29, 2024 07:41
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@hallettj
hallettj / global-variables-are-bad.js
Created February 14, 2009 21:15
How and why to avoid global variables in JavaScript
// It is important to declare your variables.
(function() {
var foo = 'Hello, world!';
print(foo); //=> Hello, world!
})();
// Because if you don't, the become global variables.
(function() {