Skip to content

Instantly share code, notes, and snippets.

@rollys
rollys / .config
Created September 28, 2022 18:55 — forked from reversebias/.config
#
# ZMK
#
#
# Basic Keyboard Setup
#
CONFIG_ZMK_KEYBOARD_NAME="anaphase"
CONFIG_USB_DEVICE_PRODUCT="anaphase"
@rollys
rollys / CDN.md
Created February 7, 2021 22:32 — forked from vinkla/CDN.md

Upload images to GitHub

  1. Create a new issue on GitHub.

  2. Drag-and-drop an image onto the comment field.

  3. Wait for the upload process to finish.

  4. Copy the URL and use it in your Markdown files on GitHub.

@rollys
rollys / rvminstaller.sh
Created February 6, 2021 16:23 — forked from newjar/rvminstaller.sh
rvm installer
#!/bin/bash
echo "RVM Installer for Arch Linux"
echo $'\n==========================='
echo "Update system"
echo $'==========================='
sudo pacman -Syu
echo $'\n==========================='
@rollys
rollys / all.txt
Created May 10, 2020 19:00 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"bracketSpacing": true,
"jsxBracketSameLine": true
}
@rollys
rollys / capture_raw_frames.c
Created August 20, 2018 22:02 — forked from maxlapshin/capture_raw_frames.c
v4l2 capture example
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* This program is provided with the V4L2 API
* see http://linuxtv.org/docs.php for more information
*/
#include <stdio.h>
@rollys
rollys / ffmpeg_opencv.py
Created August 8, 2018 23:01 — forked from eruffaldi/ffmpeg_opencv.py
Feeding Python Opencv with FFmpeg
#
# Reading video from FFMPEG using subprocess - aka when OpenCV VideoCapture fails
#
# 2017 note: I have realized that this is similar to moviepy ffmpeg reader with the difference that here we support YUV encoding
# BUT we lack: bufsize in POpen and creation flags for windows
# https://github.com/Zulko/moviepy/blob/master/moviepy/video/io/ffmpeg_reader.py
#
# Emanuele Ruffaldi 2016
import cv2
import subprocess
@rollys
rollys / simple_mjpeg_streamer_http_server
Created August 2, 2018 18:54 — forked from Asymptote/simple_mjpeg_streamer_http_server
Simple Python Motion Jpeg (mjpeg server) from webcam. Using: OpenCV,BaseHTTPServer
#!/usr/bin/python
'''
Author: Igor Maculan - [email protected]
A Simple mjpg stream http server
License: GPL v3
'''
import cv2
import Image
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
import StringIO
@rollys
rollys / simple_mjpeg_streamer_http_server
Created August 2, 2018 18:53 — forked from n3wtron/simple_mjpeg_streamer_http_server
Simple Python Motion Jpeg (mjpeg server) from webcam. Using: OpenCV,BaseHTTPServer
#!/usr/bin/python
'''
Author: Igor Maculan - [email protected]
A Simple mjpg stream http server
'''
import cv2
import Image
import threading
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
from SocketServer import ThreadingMixIn
@rollys
rollys / rails_rce.rb
Created March 14, 2018 15:03 — forked from postmodern/rails_rce.rb
Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156)
#!/usr/bin/env ruby
#
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156)
#
# ## Advisory
#
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion
#
# ## Caveats
#