Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
export BLACK="\033[0;38;5;0m" | |
export MAROON="\033[0;38;5;1m" | |
export GREEN="\033[0;38;5;2m" | |
export OLIVE="\033[0;38;5;3m" | |
export NAVY="\033[0;38;5;4m" | |
export PURPLE="\033[0;38;5;5m" | |
export TEAL="\033[0;38;5;6m" | |
export SILVER="\033[0;38;5;7m" | |
export GREY="\033[0;38;5;8m" | |
export RED="\033[0;38;5;9m" |
(function () { | |
var getCatalog = new GlideRecord("sc_cat_item"); | |
getCatalog.addEncodedQuery("active=true^hide_sp=false^sys_class_name=sc_cat_item"); //Update this | |
getCatalog.query(); | |
while (getCatalog.next()) { | |
var addVariableSet = new GlideRecord("io_set_item"); | |
addVariableSet.initialize(); | |
addVariableSet.sc_cat_item = getCatalog.getValue("sys_id"); | |
addVariableSet.variable_set = "86f3c8b51b0d9c508ed631d7dc4bcbcd"; //variable set sys_id |
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 |
<?php | |
/* | |
* Outputs a color (#000000) based Text input | |
* | |
* @param $text String of text | |
* @param $min_brightness Integer between 0 and 100 | |
* @param $spec Integer between 2-10, determines how unique each color will be | |
*/ | |
function genColorCodeFromText($text,$min_brightness=100,$spec=10) |
import Foundation | |
// A playground to see different ways to get environment variables in Swift | |
// Foundation is the easiest way using the awesome ProcessInfo class. | |
// Get all of the environment variables for your running process in a Dictionary. | |
let foundationEnv = ProcessInfo().environment | |
print("********** ProcessInfo Environment **********") |
What are the consequences for a person driving a motor vehicle under the influence of drugs (e.g. hashish, heroin, cocaine)?
[x] Confiscation of driving licence or driving ban
[x] Compulsory medical/psychological examination
[x] Fine and/or imprisonment
In which instances do you have to approach a pedestrian crossing with particular care?
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
public class RosaryApp { | |
private JFrame frame; | |
private JButton countButton; | |
private JLabel countLabel; | |
private int count = 0; |