I hereby claim:
- I am peixian on github.
- I am pylon (https://keybase.io/pylon) on keybase.
- I have a public key whose fingerprint is 9040 3863 B81D 7507 2B5D 7C12 BA74 5EDD CD1F 203A
To claim this, I am signing this object:
% Assume the existence of process `process_b`, which may be overloaded. We're in `process_a` right now. | |
% two ways to handle it: | |
% do not actually cancel, just disregard the message from B when it comes back. | |
% This is for circumstances where the extra computation is fine | |
Pid1 = spawn(fun () -> gen_server:call(process_b, func_name, {Args}, 5000)) % waits for 5 seconds before exiting with a `timeout` | |
Pid2 = spawn(fun () -> gen_server:call(process_b, func_name, {Args}, 5000)) % waits for 5 seconds before exiting with a timeout | |
link(Pid1, Pid2) % links the two pids, when one comes back and dies, the other one is also killed. | |
(defun format-gps-coordinates (latitude longitude) | |
"Format latitude and longitude into a human-readable string." | |
(let ((lat-hem (if (string-match "S" latitude) "S" "N")) | |
(long-hem (if (string-match "W" longitude) "W" "E"))) | |
(format "%s, %s" | |
(replace-regexp-in-string " deg.*" "" latitude) | |
(replace-regexp-in-string " deg.*" "" longitude)))) | |
(defun extract-exif-geolocation (file) | |
"Extract and format the EXIF geolocation data from an image file." |
#!/bin/bash | |
######################################################################################################################################### | |
# This file takes in a kubectl context, namespace, pod selector, and erlang cookie and opens a non-hidden connection to the target pod. # | |
# It assumes that your deploy uses the pod IP as an IP address and atom, in the shape of :"SERVICE@<INTERNAL_KUBE_IP>" # | |
# It modifies either `iptables` or `pfctl` depending on your system. # | |
# Sources: # | |
# - https://quan.io/2019/09/02/using-erlangs-observer-in-kubernetes-for-an-elixir-release/ # | |
# - https://gist.github.com/avocade/2fe5f6c01832154eb51f05a2fef692ce # | |
# - https://www.openbsdhandbook.com/pf/cheat_ |
All Dates are Tentative | |
Aug. 29: Course Introduction | |
September 2 Monday Labor Day Weekend - COLLEGE CLOSED - NO CLASSES | |
I. Interrogations | |
Session 1. (Sep. 5 & 9) | |
Hamid Dabashi “Can Non-Europeans Think?” in Hamid Dabashi (2015) Can Non-Europeans Think? London: Zed Books -- chapter 1 | |
I hereby claim:
To claim this, I am signing this object:
,Metric,Metric Display Name,Unit,Aggregation Type,Description,Dimensions | |
1, azure.analysisservices_servers.qpu_metric,QPU,Count,Average," Microsoft.AnalysisServices/servers: QPU. Range 0-100 for S1, 0-200 for S2 and 0-400 for S4",ServerResourceType | |
2, azure.analysisservices_servers.memory_metric,Memory,Bytes,Average," Microsoft.AnalysisServices/servers: Memory. Range 0-25 GB for S1, 0-50 GB for S2 and 0-100 GB for S4",ServerResourceType | |
3, azure.analysisservices_servers.total_connection_requests,Total Connection Requests,Count,Average, Microsoft.AnalysisServices/servers: Total connection requests. These are arrivals.,ServerResourceType | |
4, azure.analysisservices_servers.successfull_connections_per_sec,Successful Connections Per Sec,CountPerSecond,Average, Microsoft.AnalysisServices/servers: Rate of successful connection completions.,ServerResourceType | |
5, azure.analysisservices_servers.total_connection_failures,Total Connection Failures,Count,Average, Microsoft.AnalysisServices/servers: Total failed connection |
-- Implentation of TEA encrpytion in agda. | |
-- Very nearly a word for word clone of https://github.com/wmoss/haskell-Crypto/blob/80d25c75fff189acfd32a7383659dea0f6a61be8/Codec/Encryption/TEA.hs | |
module TEA where | |
open import Streams | |
open import Ops | |
open import Poly | |
open import Data.String hiding (_++_) | |
open import Data.Bool |
# Hosts File: Ad Blocking Hosts | |
# This hosts file is brought to you by Dan Pollock and can be found at | |
# http://someonewhocares.org/hosts/ | |
# You are free to copy and distribute this file for non-commercial uses, | |
# as long the original URL and attribution is included. | |
# | |
# See below for acknowledgements. | |
# Please forward any additions, corrections or comments by email to |
I hereby claim:
To claim this, I am signing this object:
import json
import requests
story_str = 'https://hacker-news.firebaseio.com/v0/item/{}.json'
new_stories = requests.get('https://hacker-news.firebaseio.com/v0/newstories.json').json()
best_stories = requests.get('https://hacker-news.firebaseio.com/v0/beststories.json').json()
top_stories = requests.get('https://hacker-news.firebaseio.com/v0/beststories.json').json()