I hereby claim:
- I am tadasv on github.
- I am tadasv (https://keybase.io/tadasv) on keybase.
- I have a public key ASCGrghnxBEUnd7xLAn2V7JWVDloZsz9xIToQZ53RzLt0Qo
To claim this, I am signing this object:
| /* | |
| This is an implementation of simple ORM that supports CRUD operations on single object, column mapping from struct tags. | |
| example: | |
| type Account struct { | |
| orm.Model | |
| UUID string | |
| Name string | |
| Email string |
I hereby claim:
To claim this, I am signing this object:
| #include <stdio.h> | |
| /* | |
| You can do the same with a built in function if your compiler supports it: | |
| zeros = __builtin_clz(arg); | |
| */ | |
| int main(int argc, const char *argv[]) | |
| { |
| $InputFileName file.log | |
| $InputFileTag file_tag: | |
| $InputFileStateFile /var/spool/rsyslog/file.log_spool | |
| $InputFileFacility local7 | |
| $InputFileMaxLinesAtOnce 100000 | |
| $InputRunFileMonitor | |
| # | |
| # Include all config files in /etc/rsyslog.d/ | |
| # |
| [] tadas@tadascb-2 ~/tmp: cat generators.py | |
| def munge(i): | |
| return i ** 2 + i | |
| def func1(): | |
| return ( munge(i) for i in xrange(10) ) | |
| def func2(): | |
| return [ munge(i) for i in xrange(10) ] |
| from math import sqrt | |
| def is_prime(n): | |
| if n is 2 or n is 3 or n is 5: | |
| return True | |
| if n % 2 == 0 or n % 3 == 0: | |
| return False | |
| sq = sqrt(n) |
| Mac OS X has only 16K ports available that won't be released until socket | |
| TIME_WAIT is passed. The default timeout for TIME_WAIT is 15 seconds. | |
| Consider reducing in case of available port bottleneck. | |
| You can check whether this is a problem with netstat: | |
| # sysctl net.inet.tcp.msl | |
| net.inet.tcp.msl: 15000 | |
| # sudo sysctl -w net.inet.tcp.msl=1000 |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ANSIBlueColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
| AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAB | |
| TxAQMCAwLjUwMTk2MDgxNCAxANIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv | |
| cqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FI |
| # Get dir of the script | |
| DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |