Skip to content

Instantly share code, notes, and snippets.

@numberwhun
numberwhun / 22 Hacking Sites To Practice Your Hacking Skills
Created July 14, 2016 00:36
22 Hacking Sites To Practice Your Hacking Skills
Taken from: https://hackerlists.com/hacking-sites/
22 Hacking Sites, CTFs and Wargames To Practice Your Hacking Skills
InfoSec skills are in such high demand right now. As the world continues to turn everything into an app and connect even the most basic devices to the internet, the demand is only going to grow, so it’s no surprise everyone wants to learn hacking these days.
However, almost every day I come across a forum post where someone is asking where they should begin to learn hacking or how to practice hacking. I’ve compiled this list of some of the best hacking sites to hopefully be a valuable resource for those wondering how they can build and practice their hacking skill set. I hope you find this list helpful, and if you know of any other quality hacking sites, please let me know in the comments, so I can add them to the list.
1. CTF365 https://ctf365.com/
@physacco
physacco / README.md
Last active December 8, 2024 07:48
Python 3 extension example

Python 3 extension example

Build

python3 setup.py build

Output: build/lib.macosx-10.11-x86_64-3.5/hello.cpython-35m-darwin.so

Run

@nogajun
nogajun / fonts.conf
Created August 21, 2016 02:23
fontconfig
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<include ignore_missing="yes" prefix="xdg">fontconfig/msfonts.conf</include>
<match target="font">
<edit mode="assign" name="rgba"><const>rgb</const></edit>
<edit mode="assign" name="hinting"><bool>false</bool></edit>
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
<edit mode="assign" name="antialias"><bool>true</bool></edit>
@wojteklu
wojteklu / clean_code.md
Last active May 7, 2026 12:10
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

Vazir|Vazir.zip|https://github.com/rastikerdar/vazir-font/archive/master.zip|"A Persian (Farsi) Font"|
Samim|Samim.zip|https://github.com/rastikerdar/samim-font/archive/master.zip|"A Persian (Farsi) Font"|
Tanha|Tanha.zip|https://github.com/rastikerdar/tanha-font/archive/master.zip|"A Persian (Farsi) Font"|
Vazir-code|Vazir-code.zip|https://github.com/rastikerdar/vazir-code-font/archive/master.zip|"A Persian (Farsi) Font"|
Awesome|Awesome.zip|https://github.com/rastikerdar/awesome-persian/archive/master.zip|"A Persian (Farsi) Font"|
Shabnam|Shabnam.zip|https://github.com/rastikerdar/shabnam-font/archive/master.zip|"A Persian (Farsi) Font"|
Gandom|Gandom.zip|https://github.com/rastikerdar/gandom-font/archive/master.zip|"A Persian (Farsi) Font"|
Sahel|Sahel.zip|https://github.com/rastikerdar/sahel-font/archive/master.zip|"A Persian (Farsi) Font"|
Parastoo|Parastoo.zip|https://github.com/rastikerdar/parastoo-font/archive/master.zip|"A Persian (Farsi) Font"|
Mirza|Mirza.zip|https://github.com/rastikerdar/mirza-fo
@laobubu
laobubu / ABOUT.md
Last active April 13, 2026 00:55
A very simple HTTP server in C, for Unix, using fork()

Pico HTTP Server in C

This is a very simple HTTP server for Unix, using fork(). It's very easy to use

How to use

  1. include header httpd.h
  2. write your route method, handling requests.
  3. call serve_forever("12913") to start serving on port 12913
@romainl
romainl / Vim_pushing_built-in_features_beyond_their_limits.markdown
Last active April 16, 2026 04:49
Vim: pushing built-in features beyond their limits

Vim: pushing built-in features beyond their limits

The situation

Searching can be an efficient way to navigate the current buffer.

The first search commands we learn are usually / and ?. These are seriously cool, especially with the incsearch option enabled which lets us keep typing to refine our search pattern. / and ? really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:

  • when we want to search something that's not directly there, those two commands can make us lose context very quickly,
  • when we need to compare the matches.
@phaustin
phaustin / qwebpage.py
Created November 17, 2016 23:14
qt web scraper
#http://stackoverflow.com/questions/21274865/scrape-multiple-urls-using-qwebpage
import sys
from PyQt4 import QtCore, QtGui, QtWebKit
class WebPage(QtWebKit.QWebPage):
def __init__(self):
super(WebPage, self).__init__()
self.mainFrame().loadFinished.connect(self.handleLoadFinished)
def start(self, urls):
/*
* systray.c - systray handling
*
* Copyright © 2008-2009 Julien Danjou <julien@danjou.info>
*
* 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 2 of the License, or
* (at your option) any later version.
*
@bhepple
bhepple / i3-move-resize.py
Last active November 17, 2018 09:15
i3-move-resize.py
#!/usr/bin/python3
# lives at: https://gist.github.com/bhepple/5c43e83e945a42297ba6433ee8ba88ce
# derived from: https://github.com/benkaiser/i3-wm-config
# $0 x y width height (-1 for unchanged)
import subprocess
import sys
import json