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
| kalkcommu@sd-29651:~$ ldd /home/kalkcommu/bin/su | |
| libpam.so.0 => not found | |
| libpam_misc.so.0 => not found | |
| libc.so.6 => /lib32/libc.so.6 (0xb7629000) | |
| /lib/ld-linux.so.2 (0xb778a000) | |
| kalkcommu@sd-29651:~$ ldd /home/kalkcommu/bin/ls | |
| libselinux.so.1 => not found | |
| librt.so.1 => /lib32/librt.so.1 (0xb7776000) | |
| libacl.so.1 => not found |
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
| # -*- coding: utf-8 -*- | |
| # | |
| # Used like this: | |
| # | |
| # from repermute import ipermute | |
| # | |
| # for s in ipermute('[A-Z]\d'): | |
| # print s | |
| # | |
| # Almost all regular expression constructs are supported except for '*' |
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 | |
| # -*- coding: utf-8 -*- | |
| ########################################################################### | |
| # # | |
| # envbot - an IRC bot in bash # | |
| # Copyright (C) 2007-2008 Arvid Norlander # | |
| # # | |
| # This program is free software: you can redistribute it and/or modify # | |
| # it under the terms of the GNU General Public License as published by # | |
| # the Free Software Foundation, either version 3 of the License, or # |
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 | |
| # -*- coding: utf-8 -*- | |
| ########################################################################### | |
| # # | |
| # envbot - an IRC bot in bash # | |
| # Copyright (C) 2007-2008 Arvid Norlander # | |
| # # | |
| # This program is free software: you can redistribute it and/or modify # | |
| # it under the terms of the GNU General Public License as published by # | |
| # the Free Software Foundation, either version 3 of the License, or # |
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
| ProxyRequests Off | |
| SetOutputFilter proxy-html | |
| ProxyPass /sentry/ http://127.0.0.1:9000/ | |
| ProxyPassReverse /sentry/ http://127.0.0.1:9000/ | |
| ProxyHTMLURLMap http://127.0.0.1:9000 /sentry | |
| <Location /sentry/> | |
| ProxyHTMLURLMap / /sentry/ |
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
| var foo = new Object(null); | |
| // pourquoi... | |
| Object.defineProperty(foo, 'bar', { | |
| value: 'baz', | |
| writable: true} | |
| ); | |
| // ...et pas |
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 Queue | |
| import threading | |
| import urllib2 | |
| from urllib2 import urlopen | |
| import time | |
| from bs4 import BeautifulSoup as BeautifulSoup | |
| from urllib3 import HTTPConnectionPool | |
| #from urllib3 import urlopen | |
| import xlwt | |
| import time |
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
| from collections import defaultdict | |
| import gevent | |
| import requests | |
| countries_urls = { | |
| 'france': ['url1', 'url2', 'url3'], | |
| 'belgium': ['url1', 'url2', 'url3', 'url4'], | |
| 'uk': ['url1', 'url2'] |
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
| The rules file should be copied to "/etc/iptables/iptables.rules". | |
| The startup script should be copied to "/etc/init.d/iptables", and then the "update-rc.d iptables defaults" | |
| command should be run to enable it on system startup. |
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 -*- | |
| import shelve | |
| UBBER_LEET_DB = 'my_leet_db.shelve' # extension doesn't matter | |
| def write_to_db(db_file, key, value): | |
| db = shelve.open(db_file) | |
| db[key] = value |