Skip to content

Instantly share code, notes, and snippets.

Setup tor proxy on Arch Linux

Copied from this article.

Installation

  1. Install tor

         $ sudo pacman -S tor
         $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more.

$ sudo pacman -S nyx

@vdaluz
vdaluz / fibonacci-midi.py
Created February 9, 2018 03:05
Music generated from the Fibonacci sequence and output to midi
import midi
# Music generated from the Fibonacci sequence and output to midi
# Inspired by https://dev.to/daniel40392/visualizing-fibonacci-for-the-music-lover-in-you-2609
# Using https://github.com/vishnubob/python-midi for midi output
# Please excuse any python or music theory mistakes, I'm not an expert at either
print('Welcome to the Fibonacci Composer.')
x = int(input('Enter Song Length: '))
k = input('Enter Song Key (C, G, D, A, E, B, F#, Db, Ab, Eb, Bb, F): ')
@nir-krakauer
nir-krakauer / shapiro_wilk_test.m
Last active February 19, 2024 21:37
Shapiro-Wilk test in Octave
## Copyright (C) 2017 Nir Krakauer
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@Wack0
Wack0 / gist:bda47c2bfadfb68d73ea
Created July 29, 2015 02:26
Cards against Security: list of all cards
Database: heroku_1ed5a148e6d9415
Table: black_cards
[16 entries]
+----+--------------------------------------------------------------------------------------------------------------+
| id | content |
+----+--------------------------------------------------------------------------------------------------------------+
| 1 | _____ means never having to say you're sorry. |
| 2 | The pen tester found _____ in the trash while dumpster diving. |
| 3 | Our CIO has a framed a picture of _____. |
| 4 | 9 out of 10 experts agree, _____ will increase your security effectiveness. |
@jboner
jboner / latency.txt
Last active July 27, 2024 12:32
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD