Skip to content

Instantly share code, notes, and snippets.

View mchaker's full-sized avatar

M mchaker

View GitHub Profile
@dankrause
dankrause / _hover_example.py
Last active June 26, 2024 22:35
Example code to use the (unofficial, unsupported, undocumented) hover.com DNS API.
import requests
class HoverException(Exception):
pass
class HoverAPI(object):
def __init__(self, username, password):
params = {"username": username, "password": password}
r = requests.post("https://www.hover.com/api/login", params=params)
@23maverick23
23maverick23 / stripSpacesXMLTags.py
Last active January 1, 2023 14:03
Python: Strip spaces between tags
#!/usr/bin/env python
print re.sub('\s+(?=<)', '', xml_string)
# This regex will turn a prettyprinted XML string into a spaceless
# string which is sometimes easier to deal with.
# Example response from xml.etree.ElementTree.fromstring(xml)
# <response>
# <Auth status="0"/>
@aguslr
aguslr / README.md
Last active December 20, 2015 00:19
Grub2 loopback multiboot pen drive to boot from ISO
@aras-p
aras-p / preprocessor_fun.h
Last active July 16, 2024 02:50
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@cnDelbert
cnDelbert / How to install tcpping on Linux.md
Last active May 7, 2024 04:31
How to install tcpping on Linux

To install tcptraceroute on Debian/Ubuntu:

$ sudo apt-get install tcptraceroute

To install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:

$ sudo yum install tcptraceroute
@sparrc
sparrc / phabricator_readme.md
Last active March 25, 2024 05:59
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

@sylvia43
sylvia43 / resources.md
Last active April 5, 2016 19:14
Penetration Testing and Security Resources

This is a comment by Shane Wilton in this post from HH Information Security.


Start with MicroCorruption to familiarize yourself with reverse engineering and exploit development. It's ~18 challenges, entirely on the website, that task you with reverse engineering MSP-430 programs, and developing exploits against them.

From there, Pwnable.kr has another few dozen exploitation challenges. These are more real-world, but ramp up in difficulty quickly. The first block should be doable by anyone with Linux experience though.

If you're starting from the very beginning, keep Hacking: The Art of Exploitation nearby. It's a very good primer for all of this stuff. Once you work your way through that, [TAOCP](http://www.amazon.com/T

@oguya
oguya / fah-config.xml
Created September 30, 2015 12:21
FAHClient config. file—/etc/fahclient/config.xml
<config>
<!-- See sample config: /usr/share/doc/fahclient/sample-config.xml -->
<!-- Client Control
Don't fold anonymously, provide user info. -->
<fold-anon v='false'/>
<!-- Folding Slot Configuration -->
<gpu v='true'/> <!-- If true, attempt to autoconfigure GPUs -->
@olih
olih / jq-cheetsheet.md
Last active July 16, 2024 23:02
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@jasonrm
jasonrm / reenable.sh
Last active March 13, 2022 17:13
Dell PowerEdge DRAC 5 KVM
# Original : http://en.community.dell.com/support-forums/servers/f/956/t/18394689
# Archive : http://archive.is/8LkJs
I was also facing this issue, but had to jump some more hurdles:
- In the Java Control Panel, add https://<server IP/hostname> to the exception site list. (not related to this issue, but needs to be done though)
- In the Advanced tab (this is on windows) enable the console, so I could check what java version was being used. (I have 5 versions installed)
- Edit the mentioned java.security for the correct version, but, I had to make an additional change. I also had to alter the "jdk.certpath.disabledAlgorithms" parameter, and remove MD5 there. Hence, enable MD5 support.