Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
cd /home/deluge/files | |
rm -rf /var/www/default/d/* | |
exec 3>/var/www/default/d/index.not_my_actual_secret | |
echo "<!DOCTYPE html>" >&3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Block domains from duckduckgo | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description A userscript to remove search results from specific domains | |
// @author Remi Rampin <remirampin@gmail.com> | |
// @match https://duckduckgo.com/* | |
// ==/UserScript== | |
// https://gist.github.com/remram44/407be77a5649e2c816064a7ac0132ac0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# From http://hewo.xedoloh.com/2015/04/base-256/ | |
# Usage: | |
# name256 | |
# Generate a random base256 word | |
# Example: | |
# $ name256 | |
# vic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$(id -u)" != 0 ]; then echo "This script needs to run as root so that it can execute MySQL" >&2; exit 1; fi | |
# Start MySQL (in the background) | |
runuser -u mysql -- /usr/sbin/mysqld --pid-file=/run/mysqld/mysqld.pid & | |
sleep 5 | |
# Need to set this to avoid apachectl talking to systemd | |
export APACHE_STARTED_BY_SYSTEMD=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google Slides embedder | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Shows an iframe in Google Slides presentation to fake embedding | |
// @author Remi Rampin | |
// @match https://docs.google.com/presentation/d/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define STRINGIFY(x) #x | |
#define TOSTRING(x) STRINGIFY(x) | |
int main(void) | |
{ | |
puts("ex" TOSTRING(__LINE__)); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from HTMLParser import HTMLParser | |
import urllib2 | |
import os | |
import re | |
re_url = re.compile(r'^(([a-zA-Z_-]+)://([^/]+))(/.*)?$') | |
def resolve_link(link, url): | |
m = re_url.match(link) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Source of MySQL Raytracer -- https://www.pouet.net/prod.php?which=83222 | |
* Pasted here for convenience, see original for copyright information */ | |
/* MySQL raytracing engine by Nick (holtsetio@gmail.com) */ | |
Select if(repeat(char( | |
/* Parameters */ | |
@w := 100, /* width of the output in pixels */ | |
@h := 100, /* height of the output in pixels */ | |
@cam.x := 0.0, /* x-position of the camera */ | |
@cam.y := 0.0, /* y-position of the camera */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
td, th { | |
border: 1px solid black; | |
white-space: nowrap; | |
} | |
table { | |
border-collapse: collapse; |
NewerOlder