-
In
~/.ssh/config
, include the lines:Host * ControlPath ~/.ssh/sockets/%r@%h-%p
package bill.boottest; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.boot.CommandLineRunner; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.cloud.aws.messaging.listener.annotation.SqsListener; | |
import com.fasterxml.jackson.annotation.JsonCreator; |
Number of files that imports the module (~15000 files total) | |
1 oswalkdir | |
1 rstgen | |
1 ftpclient | |
1 distros | |
1 strmisc | |
2 rlocks | |
2 lenientops | |
2 unidecode | |
3 httpserver |
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
// FP Lenses | |
const lens = get => set => ({ get, set }); | |
const view = lens => obj => lens.get(obj); | |
const set = lens => val => obj => lens.set(val)(obj); | |
const over = lens => fn => obj => set(lens)(fn(view(lens)(obj)))(obj); | |
const lensProp = key => lens(prop(key))(assoc(key)); |
import macros | |
macro match(head, body: untyped): untyped = | |
result = newNimNode nnkStmtList | |
var casenode = newNimNode nnkCaseStmt | |
casenode.add head | |
for node in body: | |
node.expectKind nnkInfix |
#@yasinkuyu 08/09/2017 | |
# install luminati (https://luminati.io) proxy manager & run | |
from selenium import webdriver | |
from selenium.webdriver.common.proxy import Proxy, ProxyType | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.proxy import * | |
PROXY = '127.0.0.1:24000' |
Suppose you have weird taste and you absolutely want:
import jsffi | |
type Promise*[T] = ref object of JsObject | |
proc newPromise*[T](executor:proc(resolve:proc(val:T), reject:proc(reason:auto))): Promise[T] {.importcpp: "new Promise(#)".} | |
proc resolve*[T](val:T):Promise[T] {.importcpp: "Promise.resolve(#)",discardable.} | |
proc reject*[T](reason:T):Promise[T] {.importcpp: "Promise.reject(#)",discardable.} | |
proc race*[T](iterable:openarray[T]):Promise[T] {.importcpp: "Promise.race(#)",discardable.} | |
proc all*[T](iterable:openarray[Promise[T]]):Promise[seq[T]] {.importcpp: "Promise.all(#)",discardable.} |