Here are some moderately secure methods for contacting me.
My Signal username is schlink.16
.
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="http://assets.tumblr.com/fonts/gibson/stylesheet.css?v=3"> | |
<script src="http://code.jquery.com/jquery-1.10.2.js"></script> | |
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script> | |
<script src="http://samschlinkert.com/gif_rank/js/jquery-touch-punch.js"></script> | |
<style> | |
figure{margin:0} | |
</style> |
require 'open-uri' | |
require 'nokogiri' | |
require 'json' | |
url = "https://instances.mastodon.xyz/instances.json" | |
# Or, if you saved down a local copy... | |
# url = "instances.json" | |
instance_json = Nokogiri::HTML(open(url)) |
fn main() { | |
println!("Ring number for 12 is {}", get_ring_number(12)); | |
println!("distance to closest railroad for 12 is {}", find_distance_to_closest_railroad(12)); | |
println!("total steps for 12 is {}", find_distance_to_closest_railroad(12) + get_ring_number(12)); | |
println!("total steps for 23 is {}", find_distance_to_closest_railroad(23) + get_ring_number(23)); | |
println!("total steps for 1024 is {}", find_distance_to_closest_railroad(1024) + get_ring_number(1024)); | |
println!("total steps for 347991 is {}", find_distance_to_closest_railroad(347991) + get_ring_number(347991)); | |
} |
Below is a step-by-step guide to test whether I could get a secret PGP key off of my YubiKey.
gpg --card-status
sourcegpg --export-secret-keys -a KEYID > secret.asc
, filling in the KEYID with the key id.secret.asc
require 'mastodon' | |
require 'csv' | |
system("clear") | |
puts "Welcome to the Mastodon Following Updater!" | |
puts "\n" | |
puts "First, enter the URL of your home instance. For example, https://mastodon.social or https://octodon.social" | |
base_url = gets.chomp | |
system("clear") |
Before I took these steps, I ran brew uninstall python
in an attempt to clear out a different Python installation. I also had to clear out some stuff in my .bash_profile
.
brew update && brew install pyenv
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
pyenv install --list
and pick new-ish-but-stable versions of python2 and python3 to install. For example: pyenv install 3.7.0 2.7.15
pyenv global 3.7.0 2.7.15
. You can also set your system
's Python as a secondary fallback by running pyenv global 3.7.0 2.7.15 system
.use std::collections::HashMap; | |
use std::fs::File; | |
use std::io; | |
use std::io::BufRead; | |
use std::io::BufReader; | |
use std::str::FromStr; | |
fn main() { | |
let mut events_vec: Vec<String> = read_by_line("inputs/day04-test.txt").unwrap(); |
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty it self. | |
env: | |
# TERM env customization. | |
# | |
# If this property is not set, alacritty will set it to xterm-256color. | |
# |
// https://www.codewars.com/kata/playing-with-digits/train/rust | |
// status: Getting a multiply overflow werror when I "Attempt" | |
fn dig_pow(n: i64, p: i32) -> i64 { | |
let digits: Vec<_> = n.to_string().chars().map(|d| d.to_digit(10).unwrap()).collect(); | |
let mut sum: u64 = 0; | |
let mut i: u32 = 0; | |
for digit in digits { | |