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/sh | |
reset() { | |
ssh lab.m-labs.hk './miniconda/bin/artiq_flash -m qc1 start'; sleep 1s | |
} | |
ping -w 30 -i 0.5 -c 2 kc705.lab.m-labs.hk | |
timeout 30s artiq_run -vv $1 2>&1 | tee /tmp/artiq_run$$ | |
if grep KERNEL_FINISHED /tmp/artiq_run$$; then | |
exit 0 # no crash |
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/sh | |
truncate -s0 ${HOME}/.xsession-errors | |
configDir=${HOME}/.config | |
mkdir -p $configDir | |
cat >$configDir/startupconfigkeys <<EOF | |
kcminputrc Mouse cursorTheme 'breeze_cursors' | |
kcminputrc Mouse cursorSize '' |
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
--- 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 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
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 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
*.rb |
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
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 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/sh | |
sudo add-apt-repository 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main' | |
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install llvm-3.6-dev |
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
>KJ633805 | |
AGCAAAAGCAGGTCAAATATATTCAATATGGAAAGAATAAAAGAACTAAGAGATTTGATGTCACAGTCTC | |
GCACTCGCGAGATACTGACAAAAACAACTGTGGACCATATGGCCATAATCAAGAAATATACATCAGGAAG | |
ACAGGAGAAGAATCCTGCCCTTAGGATGAAGTGGATGATGGCAATGAAATATCCAATTACGGCAGACAAA | |
AGGATAATGGAGATGATCCCGGAAAGAAATGAGCAAGGTCAGACCCTTTGGAGCAAGACAAATGATGCTG | |
GATCAGACAGAGTGATGGTGTCACCTCTGGCTGTGACGTGGTGGAACAGAAATGGACCAACGACAAGCAC | |
AGTCCATTATCCAAAGGTCTATAAAACCTATTTTGAAAAGGTCGAAAGGCTAAAACATGGAACCTTCGGC | |
CCCGTTCACTTCAGAAACCAGGTTAAAATACGCCGCAGGGTCGACATAAACCCGGGCCATGCAGATCTTA | |
GTGCTAAAGAAGCACAGGATGTCATCATGGAGGTCGTATTCCCAAACGAAGTTGGAGCCAGAATATTGAC | |
ATCAGAGTCACAGTTAACGATTACCAAGGAAAAGAAGAAGGAGCTTCAGGACTGCAAAATTGCCCCTTTA |
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
--- a/linux-user/elfload.c 2014-12-09 17:45:42.000000000 +0300 | |
+++ b/linux-user/elfload.c 2015-02-12 10:25:38.477985307 +0300 | |
@@ -1227,7 +1227,7 @@ | |
#define TARGET_ELF_PAGESTART(_v) ((_v) & ~(unsigned long)(TARGET_ELF_EXEC_PAGESIZE-1)) | |
#define TARGET_ELF_PAGEOFFSET(_v) ((_v) & (TARGET_ELF_EXEC_PAGESIZE-1)) | |
-#define DLINFO_ITEMS 14 | |
+#define DLINFO_ITEMS 15 | |
static inline void memcpy_fromfs(void * to, const void * from, unsigned long n) |
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
.gdb_history | |
payload | |
payload.o | |
payload.bin | |
packed | |
packer |