Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
include $(GOROOT)/src/Make.$(GOARCH) | |
TARG=kademlia | |
GOFILES=\ | |
nodeid.go\ | |
routingtable.go\ | |
contact.go\ | |
kademlia.go | |
include $(GOROOT)/src/Make.pkg |
pm list packages -f |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
ffmpeg -i INFILE -r 25 -f mpeg -vcodec mpeg1video -ar 48000 -b 1500k -acodec mp2 -ar 44100 -ac 1 -y OUTFILE.mpg |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Jun 15 14:00:29 2012 | |
Author: Josef Perktold | |
License: MIT, BSD-3 (for statsmodels) | |
http://en.wikipedia.org/wiki/Distance_correlation | |
Yaroslav and Satrajit on sklearn mailing list |
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works | |
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/ssh" | |
) | |
const privateKey = `content of id_rsa` |
; Exposes two hotkeys: | |
; - Win+G generates & pastes a new lowercase guid | |
; - Win+Shift+G generates & pastes a new UPPERCASE guid | |
; In both cases, the guid is left on the clipboard so you can easily paste it more than once. | |
; | |
GUID() | |
{ | |
format = %A_FormatInteger% ; save original integer format | |
SetFormat Integer, Hex ; for converting bytes to hex | |
VarSetCapacity(A,16) |
import binascii | |
import StringIO | |
class PKCS7Encoder(object): | |
def __init__(self, k=16): | |
self.k = k | |
## @param text The padded text for which the padding is to be removed. | |
# @exception ValueError Raised when the input padding is missing or corrupt. | |
def decode(self, text): |
#!/bin/sh -x | |
#This script removes Mono from an OS X System. It must be run as root | |
rm -r /Library/Frameworks/Mono.framework | |
rm -r /Library/Receipts/MonoFramework-* | |
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do | |
(cd ${dir}; |