Skip to content

Instantly share code, notes, and snippets.

🏴
.

Jason M. json-m

🏴
.
Block or report user

Report or block json-m

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View videojs-plugin-events-logger.js
// The events are from https://www.w3.org/TR/html5/semantics-embedded-content.html#media-elements-event-summary
import videojs from 'video.js'
const Plugin = videojs.getPlugin('plugin')
const EVENTS = [
'loadstart',
'progress',
'suspend',
'abort',
'error',
View yet another radare2 cheatsheet.md

radare2

load without any analysis (file header at offset 0x0): r2 -n /path/to/file

  • analyze all: aa
  • show sections: iS
  • list functions: afl
  • list imports: ii
  • list entrypoints: ie
  • seek to function: s sym.main
@TheVoxcraft
TheVoxcraft / Vector3.py
Created Aug 8, 2017
Vector3 Class in python3
View Vector3.py
import math
class Vector3:
x = 0
y = 0
z = 0
def __init__(self, _x, _y, _z):
self.x = _x
self.y = _y
self.z = _z
def __add__(self, other):
@eyecatchup
eyecatchup / ffmpeg.md
Last active Sep 27, 2019
Some common ffmpeg commands, I tend to forget..
View ffmpeg.md

cut sequence from mp4 video

ffmpeg -ss <start_time_hh:ii:ss> -i input.mp4 -to <length_in_hh:ii:ss_from_start> -c copy ./out.mp4
ffmpeg -ss 00:47:42 -i input.mp4 -to 00:01:49 -c copy ./out.mp4

create thumbnail images from input video (@30fps)

View gist:2db5f739cf6f46e35103f3fdfd91d270
! pmacctd configuration
!
!
!
daemonize: true
pidfile: /var/run/pmacctd.pid
syslog: daemon
geoip_ipv4_file: /usr/local/share/GeoIP/GeoIP.dat
!
!aggregate: src_host_country, dst_host_country, flows,src_host,dst_host,src_port,dest_port,proto
@DakuTree
DakuTree / decryptchromecookies.py
Last active Oct 24, 2019
Decrypt Chrome Cookies File (Python 3) - Windows
View decryptchromecookies.py
#Based off https://gist.github.com/DakuTree/98c8362fb424351b803e & pieces of https://gist.github.com/jordan-wright/5770442
from os import getenv
from shutil import copyfile
import sqlite3
import win32crypt #https://sourceforge.net/projects/pywin32/
# Copy Cookies to current folder
copyfile(getenv("APPDATA") + "/../Local/Google/Chrome/User Data/Default/Cookies", './Cookies')
# Connect to the Database
View powershell_eventlog_parsing.ps1
#Security log
#============
####
#4624 - Logon & Logoff events successful
#4625 - Logon unsucceful
####
# Get usernames
Get-WinEvent -path .\Security.evtx | Where {$_.id -eq "4624"} | Foreach {([xml]$_.ToXml()).GetElementsByTagName("Data").ItemOf(5)}| Select -ExpandProperty "#text" -Unique
# Get domains
@Air-Craft
Air-Craft / ffmpeg_from_m3u_stream.sh
Created Dec 24, 2015
Rip m3u8 stream (series of .ts files) to video via ffmpeg #video #conversion #streaming #ripping
View ffmpeg_from_m3u_stream.sh
ffmpeg -i "https://content.jwplatform.com/manifests/Wqyolfwt.m3u8" -c copy -bsf:a aac_adtstoasc video.mp4
@learncodeacademy
learncodeacademy / README.md
Last active Jun 24, 2017
Running a High Availability Service on CoreOS using Docker, Fleet, Flannel, Etcd, Confd & Nginx
View README.md

Running a High Availability Service on CoreOS using Docker, Fleet, Flannel, Etcd, Confd & Nginx

Tools used:

  • coreos: server machine clustering via a shared cloud-config.yml
  • etcd: key value store for service registration and discovery
  • fleet: scheduling/failover of docker containers across coreos cluster
  • flannel: Gives each docker container a unique ip that allows you to access the internal port (i.e. port 80 not 32679)
  • confd: watch etcd for nodes arriving/leaving - template nginx configuration files / reload nginx on change
@yann2192
yann2192 / hardening_usbarmory.md
Last active Mar 11, 2019
Hardening USB Armory
View hardening_usbarmory.md

Hardening the USB Armory

As a good crypto nerd, I usually use an entirely encrypted linux FS: / but also /boot using grub LUKS support. It's a good setup but it's not perfect, the BIOS and the bootloader are not protected.

I recently got a USBArmory and I wanted to apply the same (or a better) setup.

I found some useful links but no clear howto. So this is my setup.

You can’t perform that action at this time.