Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
##
## Session globals
##
# unset DISPLAY
export XDG_CURRENT_DESKTOP=gamescope # necessary for ryujinx to render properly
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
@fishman
fishman / ansible-role-test.sh
Created July 14, 2018 13:49 — forked from nickjj/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Taken from this gist by Jeff Geerling on May 10th 2018:
# https://gist.github.com/geerlingguy/73ef1e5ee45d8694570f334be385e181
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "ubuntu1804")
# - playbook: a playbook in the tests directory (default = "test.yml")
@fishman
fishman / ansible-role-test.sh
Created July 14, 2018 13:47 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)

something

This file has been truncated, but you can view the full file.
# tracer: nop
#
# entries-in-buffer/entries-written: 176240/504939540 #P:4
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
@fishman
fishman / rc.lua
Last active August 29, 2015 14:11
--[[
awesome.lua - main config of my window manager
awesome v3.5.4 (Brown Paper Bag)
os: archlinux x86_64
cpu: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
grapic: Intel Graphics 4400
screen: 1920 x 1080
--]]
-- {{{ Awesome Library
# ~/.tmux.conf
# Informations {{{
# File : ~/.tmux.conf
# Purpose: Setup file for the terminal multiplexer called "tmux"
# Author : Reza Jelveh
# Set the command for new windows to "zsh"
set -g default-command zsh
-- libquvi-scripts
local Vidwoot = {}
function ident(qargs)
return {
can_parse_url = Vidwoot.can_parse_url(qargs),
domains = table.concat({'embed.vidwoot.com'}, ',')
}
end
-- libquvi-scripts
local Mp4upload = {}
function ident(qargs)
return {
can_parse_url = Mp4upload.can_parse_url(qargs),
domains = table.concat({'mp4upload.com'}, ',')
}
end
#!/usr/bin/env ruby
require "net/http"
# regexp = /(^$)|(^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$)/ix
# regexp = /(https?:\/\/embed.vidwootcom([-\w\.]+)+(:\d+)?(\/([\w\/_\.]*(\?\S+)?)?)?)/
regexp = /"(https?:\/\/[^"]*(?:vidwoot|mp4upload|vidbull|yourupload).*?)"/
if ARGV[0]
uri = URI(ARGV[0])