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
# Authors: Ingmar Steen / Sander Ferdinand | |
from twisted.internet import defer, task | |
from twisted.web.http_headers import Headers | |
from treq import text_content, request | |
class HttpPool(object): | |
def __init__(self): | |
self._sem = defer.DeferredSemaphore(20) # no more than 20 at once |
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 | |
# Paste a screenshot taken with `scrot` to https://paste.cedsys.nl. Resulting link will be copied to clipboard. | |
# requires: python-requests, scrot, xclip, libnotify-bin, libnotify-dev | |
echo $(scrot -s -e 'printf $f | | |
python -c "\$\(echo aW1wb3J0IHN5cztpbXBvcnQgcmVxdWVzdHM7YmFzZV91cmkgPSAiaHR0cHM6Ly9wYXN0ZS5jZWRzeXMubmwiO2ZpbGVzID0geyJmaWxlc1tdIjogb3BlbihzeXMuc3RkaW4ucmVhZCgpKX07ciA9IHJlcXVlc3RzLnBvc3QoIiVzL3Bhc3RlIiAlIGJhc2VfdXJpLCBmaWxlcz1maWxlcyk7c3lzLnN0ZG91dC53cml0ZSgiJXMlcy9yYXciICUgKGJhc2VfdXJpLCByLmpzb24oKVsidXJpIl0pKQ== | |
| base64 -d\)" && mv $f ~/screenshots') | | |
xclip -selection clipboard && | |
notify-send -t 1000 $(echo "Pasted (clipboard)") |
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
#!/usr/bin/python3 | |
import inspect | |
from functools import wraps | |
__author__ = "Sander Ferdinand" | |
__credits__ = "Joe Jevnik" | |
__date__ = 2017 | |
def type_police(f): | |
""" |
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
import json | |
from sqlalchemy import inspect as sqla_inspect | |
from sqlalchemy.orm.dependency import OneToManyDP, ManyToOneDP | |
from sqlalchemy.exc import NoInspectionAvailable | |
from sqlalchemy.orm.mapper import Mapper | |
from sqlalchemy import Column, String, Integer, create_engine, ForeignKey, inspect | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker, relationship |
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
ngrep -i '[&\s?](?:login|cookie|user(?:name|)|p(ass(?:word|wd|)|w|wd))[\s:=]\s?([^&\s]*)' -deth0 -qt -W byline port 80 |
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
ssh -p 22 root@192.xxx.xx.x sudo tcpdump -i xxxx -U -w - not port 5900 | wireshark -i - -k |
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
sudo apt-get build-dep | |
apt-get source [...] | |
cd [...] | |
DEB_CFLAGS_APPEND="-fPIC" DEP_CXXFLAGS_APPEND="-fPIC" DEB_CPPFLAGS_APPEND="-fPIC" dpkg-buildpackage -B -us -uc -j3 -rfakeroot |
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 --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c | |
index 9b894059..dd1a7ffd 100644 | |
--- a/src/http/ngx_http_header_filter_module.c | |
+++ b/src/http/ngx_http_header_filter_module.c | |
@@ -53,7 +53,21 @@ static u_char ngx_http_server_build_string[] = "Server: " NGINX_VER_BUILD CRLF; | |
static ngx_str_t ngx_http_status_lines[] = { | |
- ngx_string("200 OK"), | |
+ ngx_string(u8"200 NANANANAANANANA OK " |
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
cmake_minimum_required(VERSION 3.10) | |
project(monero-gui C CXX) | |
message(STATUS "Initiating compile using CMake ${CMAKE_VERSION}") | |
set(STATIC OFF) | |
set(DEBUG ON) | |
set(CMAKE_BUILD_TYPE Debug) | |
# GUI |
OlderNewer