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
ppp@shell:~$ gdb -q a.out | |
Reading symbols from /home/ppp/a.out...(no debugging symbols found)...done. | |
(gdb) b main | |
Breakpoint 1 at 0x8048467 | |
(gdb) r | |
Starting program: /home/ppp/a.out | |
Breakpoint 1, 0x08048467 in main () | |
(gdb) p system | |
$1 = {<text variable, no debug info>} 0xf7e68250 <system> |
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
top - 23:57:09 up 23 days, 5:13, 9 users, load average: 4.14, 1.67, 0.72 | |
Tasks: 265 total, 10 running, 254 sleeping, 1 stopped, 0 zombie | |
Cpu(s): 99.4%us, 0.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st | |
Mem: 66110592k total, 14748744k used, 51361848k free, 2440864k buffers | |
Swap: 6377464k total, 2252k used, 6375212k free, 9141156k cached | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
26481 areece 20 0 322m 33m 6716 R 100 0.1 0:23.46 demo | |
26493 areece 20 0 350m 62m 6228 R 100 0.1 0:23.43 demo | |
26503 areece 20 0 327m 38m 6312 R 100 0.1 0:22.93 demo |
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
import re | |
import string | |
regex_string = '.*(dark ?star|black ?hole|location|darkstar|php ?[1-4]|solution|core ?dump|spam ?carver|bitwise|get ?key|robomunication|format ?[1-2]|rop ?[1-4]|ever ?green|more ?evil|mildly ?evil|overflow ?[1-5]|clue|eval ?[1-5]|broken rsa|grep is your friend).*' | |
yell_string = "DO NOT DISCUSS PROBLEMS IN CHANNEL. If you need help, pm an op by doing '/query tylerni7' (or another op). Ops have an @ in front of their names." | |
good_guys = {'ajaska`': True, 'Feynman': True, 'rcombs': True, 'wizjany': True} | |
def good_guy(willie, trigger): | |
global good_guys | |
if trigger.admin: |
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
import re | |
import string | |
def yell_at_problem(willie, trigger): | |
if not trigger.admin: | |
willie.reply("DO NOT DISCUSS PROBLEMS IN CHANNEL. If you need help, pm an op by doing '/query tylerni7' (or another op).") | |
yell_at_problem.rule = '.*(answer|problem).*' | |
yell_at_problem.rate = 60 | |
yell_at_problem.name = 'yell_at_problem' |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
THEME = './theme' | |
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html' | |
MONTH_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/index.html' | |
ARTICLE_URL = 'posts/{date:%Y}/{date:%m}/{slug}.html' | |
ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%m}/{slug}.html' | |
ARTICLE_LANG_URL = 'posts/{date:%Y}/{date:%m}/{slug}-{lang}.html' |
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
def try_shit(flist1, flist2): | |
ideal1 = flist1*R | |
ideal2 = flist2*R | |
expected = ideal1.intersection(ideal2).groebner_basis() | |
actual_ideal = [f.lcm(g) for f in flist1 for g in flist2]*R | |
actual = actual_ideal.groebner_basis() | |
return (expected == actual, expected, actual, flist1, flist2) | |
for powx1 in xrange(3): | |
for powx2 in xrange(3): |
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
amwatson: Oh shit, 418 had a redo exam tonight? Dammit! | |
amwatson: I am the saddest of pandas | |
areece: Sorry! I thought you knew | |
amwatson: Nope! Shit shit shit | |
amwatson: They must have announced it Thursday. Not that I could have changed my plans at that point | |
areece: It went pretty well | |
amwatson: That's...not good news | |
amwatson: Oh man, I am so fucked | |
areece: Post a snarky comment in the survey? | |
areece: I'm sure if you asked Kayvon he'd be reasonable |
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
$ kinit -f | |
Password for [email protected]: | |
$ ldd `which kinit` | |
linux-vdso.so.1 => (0x00007fff00fff000) | |
libkadm5srv_mit.so.8 => /usr/lib64/libkadm5srv_mit.so.8 (0x00007f9596664000) | |
libkdb5.so.5 => /usr/lib64/libkdb5.so.5 (0x00007f9596451000) | |
libgssrpc.so.4 => /lib64/libgssrpc.so.4 (0x00007f9596231000) | |
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f9595fef000) | |
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f9595d0f000) | |
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f9595ae3000) |
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
$ ldd `which kinit` | |
linux-vdso.so.1 => (0x00007fff627ff000) | |
libkadm5srv_mit.so.8 => /usr/lib64/libkadm5srv_mit.so.8 (0x00007f9f8ebdb000) | |
libkdb5.so.5 => not found | |
libgssrpc.so.4 => /lib64/libgssrpc.so.4 (0x00007f9f8e9ba000) | |
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f9f8e776000) | |
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f9f8e48f000) | |
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f9f8e263000) | |
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f9f8e05f000) | |
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f9f8de53000) |
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
$ for i in {01..70}; do ssh ghc$i 'locate libkdb5.so.5 >/dev/null'; if [ $? -ne 0 ]; then echo ghc$i; fi done 2>/dev/null | |
ghc01 | |
ghc02 | |
ghc03 | |
ghc04 | |
ghc05 | |
ghc08 | |
ghc09 | |
ghc10 | |
ghc11 |