This file contains hidden or 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
""" | |
HE-2-4 Copyright (C) 2014 Liam Stanley | |
License: Eiffel Forum License, version 2 | |
- https://links.ml/FFa1 | |
Website: https://liamstanley.io | |
NOTE: THIS IS FOR KVM BASED SERVERS ONLY. | |
I'M NOT ADDING CUSTOM CHECKS TO SEE IF | |
YOU'RE USING KVM. | |
""" |
This file contains hidden or 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
import weechat as w | |
import re, urllib, urllib2, json | |
weechat = w | |
SCRIPT_NAME = "shorten" | |
SCRIPT_AUTHOR = "Liam Stanley <[email protected]>" | |
SCRIPT_VERSION = "0.2" | |
SCRIPT_LICENSE = "GPL3" | |
SCRIPT_DESC = "Convert/Shorten all links to http://links.ml/ links" |
This file contains hidden or 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/python | |
import json | |
from hashlib import sha256 | |
from urllib2 import urlopen | |
from urllib import quote | |
# https://github.com/alecgorge/jsonapi/wiki/Analyzing-the-jsonapi-request-and-response-format | |
# http://alecgorge.github.io/jsonapi/ | |
# NEW API USAGE: http://mcjsonapi.com/apidocs/ |
This file contains hidden or 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 | |
# First, install supervisor. Don't install through your package manager because those packages are unupdated! | |
sudo apt-get install python-setuptools python-pip curl | |
easy_install supervisor | |
# Use pip too | |
pip install supervisor |
This file contains hidden or 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 | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Supervisord initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
This file contains hidden or 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> | |
<title>File index</title> | |
<meta name="viewport" content="width=device-width"> | |
<!--<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">--> | |
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootswatch/3.0.2/cosmo/bootstrap.min.css"> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> | |
</head> |
This file contains hidden or 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
a { | |
color: #0088FF; | |
} | |
a:link { | |
color: #0088FF; | |
} | |
a:visited { | |
color: #0088FF; | |
} | |
a:hover { |
This file contains hidden or 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
on 1:TEXT:*http*//*:#:{ | |
var %url = $wildtok($1-, http://*, 1, 32) | |
if (%url == $NULL) { return } | |
if ($read(banurls.txt,wn,* $+ %url $+ *) != $NULL) { return } | |
if ($read(urls.txt,wn,* $+ %url $+ *) == $NULL) { | |
write urls.txt - $fulldate - $chan ( $+ $nick $+ ): $1- | |
} | |
} | |
alias urlrec { | |
if ($dialog(UR.Main)) dialog -v UR.Main |
NewerOlder