Skip to content

Instantly share code, notes, and snippets.

View Ashark's full-sized avatar

Andrew Shark Ashark

View GitHub Profile
@sokratisg
sokratisg / pdns-pipebackend.py
Created April 7, 2014 22:38
PowerDNS PipeBackend python example
#!/usr/bin/python -u
import sys, os, time
import random
class DNSLookup(object):
"""Handle PowerDNS pipe-backend domain name lookups."""
ttl = 30
@jamiekurtz
jamiekurtz / grub.cfg
Last active June 8, 2023 00:24
Grub config for creating my own bootable USB stick
# This grub.cfg file was created by Jamie Kurtz
# Detailed instructions for use will soon be found here: http://www.jamiekurtz.com
# Simplified instructions below
# Sample grub entries... https://wiki.archlinux.org/index.php/Multiboot_USB_drive
# Inspiration from here: http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/
# Simplified instructions...
# Make sure grub, grub-efi, and xorriso packages are installed and up-to-date
# In your terminal go to directory where want to create the USB image contents
# Run the following to create the necessary folder structure:
@mikoim
mikoim / README.md
Last active June 19, 2024 21:53
[Updated! Aug 14 2020] YouTube recommended encoding settings on ffmpeg (+ libx264)

Parameters

Container: MP4

Parameter YouTube recommends setting
-movflags faststart moov atom at the front of the file (Fast Start)

Video codec: H.264

@ibLeDy
ibLeDy / extramaus.c
Last active December 9, 2023 19:20 — forked from dvdantunes/extramaus.c
ExtraMaus is a tool that shows an additional mouse cursor. Useful for VLC recording. Author: Dodger Tools
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/extensions/shape.h>
// Include the mouse cursor xbm directly
#define mouse_width 12