create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
{ | |
"countries":[ | |
{ | |
"name":"Afghanistan", | |
"phoneCode":"93", | |
"iso":"AF" | |
}, | |
{ | |
"name":"Albania", | |
"phoneCode":"355", |
#!/bin/bash | |
limit="${1-10000000}"; | |
echo "Keeping SourceKitService below $limit KiB of virtual memory." | |
echo "Hit ^C to quit." | |
while true; do | |
sleep 1; | |
p=`pgrep ^SourceKitService$` | |
if [ -n "$p" ]; then | |
vsz=`ps -o vsz -p "$p" | tail -1` |
// This is a re-implementation of the @Binding and @State property wrappers from SwiftUI | |
// The only purpose of this code is to implement those wrappers myself just to understand how they work internally and why they are needed | |
// Re-implementing them myself has helped me understand the whole thing better | |
//: # A Binding is just something that encapsulates getter+setter to a property | |
@propertyDelegate | |
struct XBinding<Value> { | |
var value: Value { | |
get { return getValue() } |
import UIKit | |
class CustomIntensityVisualEffectView: UIVisualEffectView { | |
/// Create visual effect view with given effect and its intensity | |
/// | |
/// - Parameters: | |
/// - effect: visual effect, eg UIBlurEffect(style: .dark) | |
/// - intensity: custom intensity from 0.0 (no effect) to 1.0 (full effect) using linear scale | |
init(effect: UIVisualEffect, intensity: CGFloat) { |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
location = /apple-app-site-association { | |
proxy_pass http://static.example.com/apple-app-site-association; | |
proxy_hide_header Content-Type; | |
add_header Content-Type "application/json"; | |
} | |
or | |
location = apple-app-site-association { | |
default_type application/json; |
You might want to read this to get an introduction to armel vs armhf.
If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.
First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static
so that you can run ARM executables directly on linux
function getCache(name) { | |
return new Promise((resolve, reject) => { | |
const version = 1; | |
const request = indexedDB.open(name, version); | |
request.onsuccess = event => { | |
const db = event.target.result; | |
/* | |
* Returns a Promise that resolves with an object |
function FindProxyForURL(url, host) { | |
var useSocks = ["imgur.com"]; | |
for (var i= 0; i < useSocks.length; i++) { | |
if (shExpMatch(host, useSocks[i])) { | |
return "SOCKS localhost:9999"; | |
} | |
} | |
return "DIRECT"; |