View amigo-invisible.sh
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/bash | |
# | |
# amigo-invisible.sh | |
# | |
# Este script gestionará un archivo amigos.csv con siguiente el formato: | |
# nombre,email | |
# | |
# Limitaciones: | |
# - El .csv no puede contener líneas en blanco | |
# - El sorteo puede ser lento/ineficiente con listas de amigos MUY largas |
View openvpn-useradd-bulk.sh
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/bash | |
# Fast way for adding lots of users to an openvpn-install setup | |
# See the main openvpn-install project here: https://github.com/Nyr/openvpn-install | |
# openvpn-useradd-bulk is NOT supported or maintained and could become obsolete or broken in the future | |
# Created to satisfy the requirements here: https://github.com/Nyr/openvpn-install/issues/435 | |
if readlink /proc/$$/exe | grep -qs "dash"; then | |
echo "This script needs to be run with bash, not sh" | |
exit 1 |
View upload.php
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
<?php | |
// Very simple file upload script | |
// ---------------------------------------------- | |
// I'm a shitty coder, so this is a shitty script | |
///////////////////////////////////////////////////////////// | |
// Fill these three variables | |
$allowedip = '1.2.3.4'; // IP address allowed to upload | |
$serveurl = 'https://uploads.example.com/'; | |
$uploaddir = '/srv/uploads.example.com/htdocs/'; |
View surge.conf
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
# My custom Surge.app configuration | |
# Proxy (most) traffic via Shadowsocks | |
[General] | |
loglevel = notify | |
bypass-system = true | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
dns-server = 208.67.222.222, 208.67.220.220 |
View openvpn-install-pam.sh
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/bash | |
# | |
# QUICK AN DIRTY FORK FOR PAM AUTHENTICATION. | |
# UNMANTAINED, PLEASE USE INSTEAD: https://github.com/Nyr/openvpn-install | |
# | |
# OpenVPN road warrior installer for Debian, Ubuntu and CentOS | |
# This script will work on Debian, Ubuntu, CentOS and probably other distros | |
# of the same families, although no support is offered for them. It isn't | |
# bulletproof but it will probably work if you simply want to setup a VPN on |
View google_es.xml
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
<!-- | |
Instala el motor desde aquí: | |
http://cl.ly/code/213M0s2f0R0L/google_es.html | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>Google España</ShortName> | |
<Description>Buscar usando Google</Description> |
View toalla.sh
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/bash | |
# Toalla para Textual.app | |
# Instalación: | |
# Necesario para obtener shuf: brew install coreutils | |
# Copiar este script a: ~/Library/Application Scripts/com.codeux.irc.textual5 | |
# Y hacer chmod +x sobre el script. | |
# Uso: /toalla <nick> |
View .tmfix.sh
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/bash | |
# .tmfix.sh - workaround for Time Machine skipping automated backups | |
# | |
# Put this script in: ~/.tmfix.sh | |
# Fill this with your Time Machine dir: | |
TMDRIVE="/Volumes/Time Machine/" | |
# And add something like this to your crontab: | |
# * * * * * /Users/Nyr/.tmfix.sh > /dev/null 2>&1 |
View imgur-gif-to-gifv.user.js
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 imgur GIF to GIFV | |
// @description Turn imgur GIF links into GIFV. | |
// @exclude *imgur.com* | |
// @version 1.2.1 | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function () { |
View imgur-direct-images.user.js
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 imgur direct images | |
// @description Redirect to the raw images skipping the crappy HTML pages. | |
// @include /^https?:\/\/imgur\.com\/[A-Za-z0-9]+$/ | |
// @exclude *imgur.com/vidgif | |
// @exclude *imgur.com/jobs | |
// @exclude *imgur.com/about | |
// @exclude *imgur.com/apps | |
// @exclude *imgur.com/tos | |
// @exclude *imgur.com/privacy |
NewerOlder