Skip to content

Instantly share code, notes, and snippets.

View Foxboron's full-sized avatar
🖥️
Meandering through cyberspace

Morten Linderud Foxboron

🖥️
Meandering through cyberspace
View GitHub Profile
@Foxboron
Foxboron / Leiningen.sublime-build
Created November 18, 2012 18:41 — forked from Foredoomed/Leiningen.sublime-build
Leiningen.sublime-build
# Copy the following and place it a file called Leiningen.sublime-build in the Sublime user packages folder (~/.config/sublime-text-2/Packages/User on Linux).
# Select this as the build system for the project using Tools/Build System/Leiningen.
# You can then bring up the Sublime Command Palette (ctrl+shift+P on Windows/Linux) and issue any of the commands # (build, documentation, clean, run, test, etc). By default, build is bound to ctrl+b and run to ctrl+shift+b.
{
"cmd": ["lein", "compile", ":all"],
"working_dir": "$file",
"variants": [
{ "cmd": ["lein", "marg", "-m", "-d", "docs"],
from flask import Flask
from bs4 import BeautifulSoup
import urllib
app = Flask(__name__)
def bs4_slice(web_source):
soup = BeautifulSoup(web_source)
soup.body.find(id="header").decompose()
soup.body.find(id="footer").decompose()
@Foxboron
Foxboron / crime.py
Created September 12, 2012 09:02 — forked from stamparm/crime.py
It's not a crime to build a CRIME
# This is supposedly what CRIME by Juliano Rizzo and Thai Duong will do
# Algorithm by Thomas Pornin, coding by xorninja, improved by @kkotowicz
# http://security.blogoverflow.com/2012/09/how-can-you-protect-yourself-from-crime-beasts-successor/
import string
import zlib
import sys
import random
@Foxboron
Foxboron / smsbomber.py
Created April 12, 2012 15:32
SMS-Spammer
import urllib, urllib2
import threading
'''
'''
def main(nummer, text, n):
user_agent = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.151 Safari/535.19'