Skip to content

Instantly share code, notes, and snippets.

View palopezv's full-sized avatar

Pedro A. López-Valencia palopezv

  • 2561 meters closer to the stars.
View GitHub Profile
@ruario
ruario / README.md
Last active March 7, 2017 05:32
Extracts an Opera Debian package and installs it into /usr/local. An uninstall script is also created and installed as well. Upgrades work if you used this script to install a previous version. Completely unofficial and unsupported by Opera Software.

Disclaimer: I wrote this script for my own personal usage. It is not officially supported by Opera Software.

Whilst Opera currently only provide .deb packages, it is possible to install Opera on different distros. This install script automates the process.

If you don't already have the script, fetch it like so:

git clone https://gist.github.com/ace4fb780216aa28d922.git

To install the latest stable release, issue:

@ruario
ruario / create-ffmpeg-opera.sh
Last active April 28, 2017 19:51
Creates an installable package containing H.264 and MP3 support libraries for Opera on Linux
#!/bin/sh
#
# Creates an installable package containing H.264 and MP3 support
# libraries for Opera on Linux
#
# Note: You will need a suitable development environment to run this
# script successfully. Make sure the following is installed before
# proceeding:
#
# * autoconf
@jacobian
jacobian / unicorn-socketserver.py
Created October 7, 2009 13:45
A simple preforking echo server using SocketServer.
"""
Simple forking echo server built with Python's SocketServer library. A more
Pythonic version of http://gist.github.com/203520, which itself was inspired
by http://tomayko.com/writings/unicorn-is-unix.
"""
import os
import SocketServer
class EchoHandler(SocketServer.StreamRequestHandler):
@richardszalay
richardszalay / Win10-16257-Console-Colors.reg
Created August 3, 2017 04:43
Applies the default console colors added in Windows 10 16256 (https://blogs.msdn.microsoft.com/commandline/2017/08/02/updating-the-windows-console-colors/) to older versions of Windows
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:000c0c0c
"ColorTable01"=dword:00da3700
"ColorTable02"=dword:000ea113
"ColorTable03"=dword:00dd963a
"ColorTable04"=dword:001f0fc5
"ColorTable05"=dword:00981788
"ColorTable06"=dword:00009cc1
@im-strongthany-zz
im-strongthany-zz / PB_NoCookies.json
Created July 27, 2018 15:22
A JSON pulled from my privacy badger install. It has over 3000 domains, most of which are set to not allow 3rd party cookes.
{"action_map":{"webpoolblu1a09.infra.lync.com":{"userAction":"user_cookieblock","dnt":false,"heuristicAction":"allow","nextUpdateTime":1516745842772},"noobslab.disqus.com":{"userAction":"","dnt":false,"heuristicAction":"allow","nextUpdateTime":1516070903466},"maxcdn.bootstrapcdn.com":{"userAction":"user_cookieblock","dnt":false,"heuristicAction":"","nextUpdateTime":1516698222876},"fonts.googleapis.com":{"userAction":"user_block","dnt":false,"heuristicAction":"","nextUpdateTime":0},"apis.google.com":{"userAction":"","dnt":false,"heuristicAction":"cookieblock","nextUpdateTime":1516942295587},"google.com":{"userAction":"","dnt":false,"heuristicAction":"block","nextUpdateTime":1492973782210},"fonts.gstatic.com":{"userAction":"user_block","dnt":false,"heuristicAction":"","nextUpdateTime":0},"feedburner.google.com":{"userAction":"","dnt":false,"heuristicAction":"cookieblock","nextUpdateTime":1492922808535},"disqus.com":{"userAction":"","dnt":false,"heuristicAction":"cookieblock","nextUpdateTime":1516080092307},"www
@thenewbie
thenewbie / echo-server.php
Created November 21, 2009 10:58
PHP is UNIX - Simple preforking echo server in PHP
<?
/*
PHP is UNIX - Simple preforking echo server in PHP
**************************************************
The code here is related to:
http://tomayko.com/writings/unicorn-is-unix
http://jacobian.org/writing/python-is-unix/
http://plasmasturm.org/log/547/ - perl is unix
@wdormann
wdormann / enable_bottom-up_ASLR.reg
Created November 16, 2017 17:52
Enable both Mandatory ASLR *and* Bottom-up ASLR system-wide
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel]
"MitigationOptions"=hex:00,01,01,00,00,00,00,00,00,00,00,00,00,00,00,00
@jacobian
jacobian / unicorn.py
Created October 6, 2009 22:39
Simple preforking echo server in Python.
"""
Simple preforking echo server in Python.
Python port of http://tomayko.com/writings/unicorn-is-unix.
"""
import os
import sys
import socket
@bagder
bagder / trrprefs.md
Last active December 27, 2022 05:17
This once held TRR prefs. Now it has moved.

NOTE

This content has moved.

Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!

@johnchristopher
johnchristopher / extract-audio-from-video.sh
Last active January 17, 2023 04:15
FFmpeg subtitles commands
ffmpeg -i input.mp4 \
-map 0:1 \
-c:a copy \
-y output.m4a