Skip to content

Instantly share code, notes, and snippets.

View wiedzmin's full-sized avatar

Alex Ermolov wiedzmin

View GitHub Profile
@wiedzmin
wiedzmin / 0_reuse_code.js
Created February 9, 2014 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wiedzmin
wiedzmin / fftutorial.cs
Created February 4, 2017 15:10 — forked from Lovesan/fftutorial.cs
FFmpeg & SDL2 - play audio & video
#define __STDC_CONSTANT_MACROS
#include <stdint.h>
#include <inttypes.h>
#include <windows.h>
#include <stdio.h>
extern "C"
{
#include <libavfilter/avfilter.h>
#!/usr/bin/env zsh
# ----------------------------------------------------------------------
# Send the standard input into a running emacs server, either on the
# kill ring, in a specified register, or in a new buffer. Examples:
# echo -n some text into the kill ring | into-emacs
# echo -n other text into register 1 | into-emacs -r 1
# long_command | into-emacs -b "long command output"
@wiedzmin
wiedzmin / forwarder.py
Created July 21, 2017 13:32 — forked from abhinavsingh/forwarder.py
Tornado websockets and ZMQ pubsub
import zmq
def main():
try:
context = zmq.Context(1)
frontend = context.socket(zmq.SUB)
frontend.bind('tcp://*:5559')
frontend.setsockopt(zmq.SUBSCRIBE, '')
@wiedzmin
wiedzmin / xmobar.hs
Created July 27, 2017 20:09 — forked from aragaer/xmobar.hs
xmonad
Config {
font = "xft:Droid Sans Mono:size=9:bold:antialias=true"
bgColor = "#000000",
fgColor = "#ffffff",
position = Top,
lowerOnStart = True,
commands = [
Run CommandReader "~/Projects/pymodoro/pymodoro.py" "pomodoro"
,Run Kbd [("us", "US"), ("ru", "RU")]
,Run Date "%Y.%m.%d %H:%M:%S" "date" 10
;;; ace-jump-mode.el --- a quick cursor location minor mode for emacs -*- coding: utf-8-unix -*-
;; Copyright (C) 2012 Free Software Foundation, Inc.
;; Author : winterTTr <winterTTr@gmail.com>
;; URL : https://github.com/winterTTr/ace-jump-mode/
;; Version : 2.0.RC
;; Keywords : motion, location, cursor
;; This file is part of GNU Emacs.
" Vundle"{{{
set nocompatible " be iMproved, required
filetype off " required
if has('win32') || has('win64')
set directory=$HOME\\temp\\
set backupdir=$HOME\\temp\\
set rtp+=~/vimfiles/bundle/Vundle.vim
let path='~/vimfiles/bundle'
call vundle#begin(path)
From: http://redteams.net/bookshelf/
Techie
Unauthorised Access: Physical Penetration Testing For IT Security Teams by Wil Allsopp.
Social Engineering: The Art of Human Hacking by Christopher Hadnagy
Practical Lock Picking: A Physical Penetration Tester's Training Guide by Deviant Ollam
The Art of Deception: Controlling the Human Element of Security by Kevin Mitnick
Hacking: The Art of Exploitation by Jon Erickson and Hacking Exposed by Stuart McClure and others.
Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Scanning by Fyodor
The Shellcoder's Handbook: Discovering and Exploiting Security Holes by several authors
@wiedzmin
wiedzmin / syslog-injection.sh
Created November 27, 2017 11:55 — forked from mdub/syslog-injection.sh
Redirect STDOUT and STDERR into syslog, using "logger", and bash process substitution
# Redirect STDOUT/STDERR into syslog
exec > >(logger -p user.info) 2> >(logger -p user.warn)
@wiedzmin
wiedzmin / mgoExample.go
Created December 12, 2017 09:19 — forked from border/mgoExample.go
mgo example
package main
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"time"
)
type Person struct {