homebrew (https://brew.sh/)
Standard option: iterm2
brew install iterm2
diff --git a/Python/random.c b/Python/random.c | |
index 93d300d..396041d 100644 | |
--- a/Python/random.c | |
+++ b/Python/random.c | |
@@ -3,6 +3,9 @@ | |
#include <windows.h> | |
#else | |
#include <fcntl.h> | |
+#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY) | |
+#include <sys/random.h> |
#!/usr/bin/env python3 | |
import http | |
import http.server | |
import socketserver | |
import sys | |
def _log(s): | |
print(s) |
import java.lang.reflect.Type; | |
import android.util.Base64; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.JsonDeserializationContext; | |
import com.google.gson.JsonDeserializer; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonParseException; |
homebrew (https://brew.sh/)
Standard option: iterm2
brew install iterm2
#! /usr/bin/env python3 | |
""" | |
Build to compare two outputs of this line on fairly identical executables | |
nm --print-size --radix=d <executable> | grep ' .* .* ' | cut -d' ' -f 2-10 | |
To just see the top symbols, can run e.g | |
nm --print-size --size-sort --radix=d <executable> | |
""" |
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import subprocess | |
import sys | |
from dataclasses import dataclass | |
@dataclass |
wt() { | |
if [ "$#" -eq 0 ]; then | |
local -a extra_fzf_args | |
elif [ "$#" -eq 1 ]; then | |
extra_fzf_args=( | |
--query | |
"'$1" | |
) | |
else | |
echo "Unknown arguments $@" |
#!/bin/bash | |
usage_exit() { | |
echo "$0 <target-url> <jrpc-method> [jrpc-params] [extra-curl-args]" | |
exit 1 | |
} | |
target="$1" | |
shift | |
method="$1" | |
shift | |
if [[ -z $target ]] || [[ -z $method ]]; then |
package main | |
import ( | |
"crypto/rand" | |
"flag" | |
"fmt" | |
"math/big" | |
) | |
func GenerateSecurePassword(n int, alphabet string) (string, error) { |
/* | |
Sample output: | |
> gradle test ruby-1.9.3-p194 testing_with_gradle 9179829 ✗ | |
... | |
:test | |
Results: SUCCESS (84 tests, 74 successes, 0 failures, 10 skipped) | |
*/ | |
test { | |
testLogging { |