- Patch
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
- Build
brew reinstall --verbose --debug --build-from-source vim
- Locate your dynamic library with
find /Users/bronoric/.pyenv/ -name '*libpython3*.dylib'
- It's probably going to contain
darwin
in the path.
- It's probably going to contain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table t ( | |
user_id int, | |
username text, | |
surname text, | |
age int, | |
aboutme text, | |
sex bool, | |
city int | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
nspname as schemaname, | |
c.relname::text, | |
pg_size_pretty(pg_relation_size(c.oid)) as "size", | |
pg_size_pretty | |
( | |
case when c.reltoastrelid > 0 | |
then | |
pg_relation_size(c.reltoastrelid) | |
else 0 end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@task(routing_key="low_priority", queue="low_priority", acks_late=True) | |
def long_running(): | |
import os | |
from time import sleep | |
while not os.path.isfile('/Users/romanko/stop'): | |
logger.info('no file: waiting 5 seconds') | |
sleep(5) | |
logger.info('file exists: exiting') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# stdin should be integers, one per line. | |
# command line perncentiles e.g. 75 90 95 | |
percentiles=$* | |
tmp="$(mktemp -t percentileXXXX)" | |
total=$(sort -n | tee "$tmp" | wc -l) | |
for percentile in $percentiles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Latency Comparison Numbers | |
-------------------------- | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Timer.h> | |
#include <IRremote.h> | |
#include <Servo.h> | |
#define irPin 5 | |
#define motorASpeedPin 10 | |
#define motorAIn1Pin 9 | |
#define motorAIn2Pin 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parent(object): | |
conf = {} | |
def __init__(self, *args, **kwargs): | |
type(self).conf = defaultdict( | |
None, **super(type(self), self).conf) | |
super(Parent, self).__init__(*args, **kwargs) | |
@classmethod | |
def set_param(cls, name, value): |
I hereby claim:
- I am romank0 on github.
- I am romanko (https://keybase.io/romanko) on keybase.
- I have a public key whose fingerprint is 1BB3 F9FF D0B0 685D BF2A EC9F 14BE 6262 EEFD E2E0
To claim this, I am signing this object:
NewerOlder