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
# A simple gdb plugin for attaching to processes without knowing their PIDs | |
from sys import stderr | |
from abc import ABCMeta, abstractmethod | |
from datetime import datetime | |
from fnmatch import fnmatch, fnmatchcase | |
from textwrap import dedent, wrap | |
import platform | |
try: | |
import psutil |
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
from ctypes import * | |
from ctypes.util import find_library | |
class LibClang(CDLL): | |
def __getitem__(self, name): | |
return super().__getitem__('clang_' + name) | |
libclang = LibClang(find_library('clang')) | |
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 | |
# hidrelayd - A daemon for powering remotely controllable HID devices | |
# | |
# Copyright (C) 2017 Red Hat Inc. | |
# | |
# This library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Library General Public | |
# License as published by the Free Software Foundation; either | |
# version 2 of the License, or (at your option) any later version. | |
# |
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 socket | |
from socket import (getaddrinfo) | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
url = "www.example.com" | |
port = 80 | |
protocols = { | |
"AH" : socket.IPPROTO_AH, |
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/sh | |
########################################## | |
# Just fill in the USERNAME and PASSWORD # | |
# here and throw it in # | |
# /etc/NetworkManager/dispatcher.d # | |
########################################## | |
ESSID="SeneNET" | |
USERNAME="FILL_ME_IN" | |
PASSWORD="FILL_ME_IN" |
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/sh | |
##### How to install ##### | |
# Because this is a short script and it was written mainly for my own | |
# convenience I haven't bothered writing any installation scripts for it, and | |
# it's simple enough to install that I just figured I'd write the installation | |
# instructions here with a big header so everyone notices them. | |
# | |
# Hopefully this should go without saying, but this script requires you use | |
# NetworkManager for this to work. In addition, you must also have WEXT | |
# compatibility enabled in your kernel for cfg80211 and you must have curl |
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
_current_envrc="" | |
# Per-project enviornment variables | |
_envrc_handler() { | |
local current_dir="$(pwd -P)" | |
while [[ $current_dir != "" ]]; do | |
if [[ -e "$current_dir/.envrc" ]]; then | |
_load_envrc "$current_dir/.envrc" | |
return |
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/sh | |
##### How to install ##### | |
# Because this is a short script and it was written mainly for my own | |
# convenience I haven't bothered writing any installation scripts for it, and | |
# it's simple enough to install that I just figured I'd write the installation | |
# instructions here with a big header so everyone notices them. | |
# | |
# Hopefully this should go without saying, but this script requires you use | |
# NetworkManager for this to work. In addition, you must also have WEXT | |
# compatibility enabled in your kernel for cfg80211 and you must have curl |
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
# This program is free software. It comes without any warranty, to the extent | |
# permitted by applicable law. You can redistribute it and/or modify it under | |
# the terms of the Do What The Fuck You Want To License, Version 2, as published | |
# by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more details. | |
require 'optparse' | |
require 'ostruct' | |
require 'rexml/element' | |
require 'rexml/document' | |
require 'net/http' |