This is a custom script for updating my install of gogs
This script is not officially endorsed by anyone
Use this script at our own risk, etc, etc
My install may differ significantly from your own, so here are some points of note:
function uniqid(prefix) { | |
prefix = typeof(prefix) === "undefined" ? "r4nd0m" : prefix.toString(); | |
function q() { | |
return parseInt(Math.pow(2,32) * Math.random(),10).toString(16); | |
} | |
return prefix + q() + q() + q() + q(); | |
} |
// var originalImage = document.querySelector('img');// ... | |
var canvas = document.createElement('canvas'), | |
context, dataURI; | |
canvas.width = originalImage.width; | |
canvas.height = originalImage.height; | |
context = canvas.getContext('2d'); | |
context.drawImage(originalImage, 0, 0); | |
dataURI = canvas.toDataURL('image/png'); |
<style> | |
.hamburger { | |
box-sizing: border-box; | |
width: 25px; | |
height: 20px; | |
border-top: 2px solid; | |
border-bottom: 2px solid; | |
position: relative; | |
} | |
.hamburger::before{ |
4444444444444444444444444444444444444444444 | |
4444444444444444444444444444444444444444444 | |
;44444444444444444444444444444444444444444 | |
;44444444444444444444444444444444444444444 | |
4444444:::::44444444444444444:::::4444444 | |
4444444; 4444444444444444; ;4444444 | |
4444444; :444444444444444; ;4444444 | |
;444444; '444444444444444: ;444444 | |
;444444; 444444444444444 4444444 | |
4444444 444444444444444 4444444 |
#!/bin/sh | |
echo -ne " \033[47m\033[1;34m4444444444444444444444444444444444444444444\033[0m \n" | |
echo -ne " \033[47m\033[1;34m4444444444444444444444444444444444444444444\033[0m \n" | |
echo -ne " \033[1;34m;\033[47m44444444444444444444444444444444444444444\033[0m \n" | |
echo -ne " \033[1;34m;\033[47m444444\033[0m\033[47m\033[34m4444444\033[1;34m444444444444444\033[0m\033[47m\033[34m4444444\033[1;34m444444\033[0m \n" | |
echo -ne " \033[47m\033[1;34m444444\033[0m\033[47m\033[34m4:\033[1;34m::::\033[0m\033[47m\033[34m4\033[1;34m444444444444444\033[0m\033[47m\033[34m4\033[1;34m:::::\033[0m\033[47m\033[34m4\033[1;34m444444\033[0m \n" | |
echo -ne " \033[47m\033[1;34m444444\033[0m\033[47m\033[34m4; \033[0m\033[47m\033[34m4\033[1;34m44444444444444\033[0m\033[47m\033[34m4\033[1;34m; ;\033[0m\033[47m\033[34m4\033[1;34m444444\033[0m \n" | |
echo -ne " |
#!/bin/sh | |
echo -ne " \033[44m\033[34m4444444444444444444444444444444444444444444\033[0m \n" | |
echo -ne " \033[44m\033[34m4444444444444444444444444444444444444444444\033[0m \n" | |
echo -ne " \033[34m;\033[44m444444444444444444444\033[47m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\033[44m44\033[0m \n" | |
echo -ne " \033[34m;\033[44m444444444444444444444\033[47m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\033[44m44\033[0m \n" | |
echo -ne " \033[44m\033[34m444444\033[34m4\033[0m\033[47m\033[34m \033[0m\033[44m\033[34m444444444\033[47m▒▒▒▒▒▒▒ \033[47m\033[34m▒▒▒▒▒\033[44m44\033[0m \n" | |
echo -ne " \033[44m\033[34m444444\033[34m4\033[0m\033[47m; \033[0m\033[44m\033[34m444444444\033[47m▒▒▒▒▒▒▒\033[47m\033[34m \033[47m\033[34m▒▒▒▒▒\033[44m44\033[0m \n" | |
echo -ne " \033[44m\033[34m444444\033[34m4\033[0m\033[47m; \033[0m\033[47m:\033[0m\033[44m\033[34m44444444\033[ |
# In order to have your log messages which you wrote to syslog | |
# e.g. with go's log/syslog package: | |
# | |
# import ( | |
# "log" | |
# "log/syslog" | |
# ) | |
# //... | |
# if syslogw, err := syslog.New(syslog.LOG_NOTICE, "myprog"); err == nil { | |
# log.SetOutput(syslogw) |
nick = "tso|bot" | |
chan = "#test" | |
introduced = false | |
irc = connect("localhost",6667) | |
#irc = connect(6667) | |
function sendmsg(msg) | |
write(irc,string(msg,"\n")) | |
println(msg) |
This is a custom script for updating my install of gogs
This script is not officially endorsed by anyone
Use this script at our own risk, etc, etc
My install may differ significantly from your own, so here are some points of note:
#!/bin/bash | |
# | |
# Simple DynDNS Update for afraid.org | |
# Updated Wed Oct 8 08:00:35 2014 | |
# Updated Tue 21 Jul 2015 06:15:31 AM EDT | |
# - Uses Bash now! | |
CURRENT_IP=$(dig +short myip.opendns.com @resolver1.opendns.com) | |
LAST_IP=$(cat /var/spool/cron/current_ip) |