This file contains 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
In a magic kingdom there is a granite cliff in the shape of a cube 1km long at the edge. Once a century, a raven sits at the cliff and cleans his beak, eroding the cliff by 0.0001g. The amount of years that will pass before the cliff is ground to dust is less than Nᴀ. |
This file contains 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
*.rb |
This file contains 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
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+RC4:EDH+aRSA:EECDH:RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!SSLv3; |
This file contains 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
--- a/bfd/elf32-or1k.c 2015-08-02 15:45:34.275922535 +0300 | |
+++ b/bfd/elf32-or1k.c 2015-08-02 15:45:36.635931622 +0300 | |
@@ -199,7 +199,7 @@ | |
FALSE, /* partial_inplace */ | |
0, /* src_mask */ | |
0xffffffff, /* dst_mask */ | |
- FALSE), /* pcrel_offset */ | |
+ TRUE), /* pcrel_offset */ | |
HOWTO (R_OR1K_16_PCREL, |
This file contains 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 | |
set +e | |
if ! [ "`id -u`" == '0' ]; then | |
echo 'This script must be run as root' | |
exit | |
fi | |
mkdir -p diff-pci-configs-data |
This file contains 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
require 'treetop' | |
Treetop.load 'ast_quirks.treetop' | |
parser = SimpleExpressionParser.new | |
ast = parser.parse %q{42} | |
p ast.to_code |
This file contains 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
diff -urN strace-4.6.old/defs.h strace-4.6.new/defs.h | |
--- strace-4.6.old/defs.h 2011-03-15 20:19:09.000000000 +0300 | |
+++ strace-4.6.new/defs.h 2011-10-05 01:06:42.000000000 +0400 | |
@@ -594,6 +594,7 @@ | |
extern int rtc_ioctl(struct tcb *, long, long); | |
extern int scsi_ioctl(struct tcb *, long, long); | |
extern int block_ioctl(struct tcb *, long, long); | |
+extern int v4l2_ioctl(struct tcb *, long, long); | |
#endif | |
This file contains 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
(3995:lookup-switch 3523 [3307, 3307, 3307, 3337, 3337, 3337, 3337, 3337, 3491, 3491, 3491, 3491, 3491, 3491, 3491, 3523] | |
(ternary | |
(3560:=== | |
(3558:bit-or | |
(3555:lshift | |
(3551:integer 46) | |
(3553:integer 16)) | |
(3556:integer 14)) | |
(3559:get-local 3)) | |
(3564:integer 0) |
This file contains 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 | |
set -e | |
UPDATE_PKG=$1 | |
if [ "$UPDATE_PKG" == "" ]; then | |
echo "Usage: $0 <update package>" | |
echo | |
exit 1 |
This file contains 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
# Convert raw stats into hourly stats. | |
def self.squash!(before=Time.now) | |
transaction do | |
range = where(%{ | |
date_trunc('hour', collected_at) < date_trunc('hour', timestamp ?) | |
}, before) | |
from_id, to_id = range.minimum(:id), range.maximum('id') | |
return nil if [from_id, to_id].none? |