Skip to content

Instantly share code, notes, and snippets.

🦊

Spotlight spotlightishere

🦊
View GitHub Profile
View main.go
package main
import (
"fmt"
"image"
"image/png"
"log"
"net/http"
"strconv"
)
View gnome-music-rpc.go
package main
import (
rpc "github.com/dogboy21/go-discord-rp/connection"
"github.com/godbus/dbus"
"log"
"time"
)
func main() {
@spotlightishere
spotlightishere / docker-compose.yml
Created Jul 9, 2018
gitea + let's encrypt + mariadb
View docker-compose.yml
version: "2"
services:
server:
image: gitea/gitea:latest
environment:
- USER_UID=1000
- USER_GID=1000
- VIRTUAL_HOST=your.site
- VIRTUAL_PORT=3000
View convert.rb
require 'mysql2'
require 'json'
require 'yaml'
# Please edit with your config.rb's provider_options.
data = {host: 'localhost', database: 'SpotBot', username: 'spotbot', password: 'password'}
client = Mysql2::Client.new(host: data[:host], username: data[:username], password: data[:password], database: data[:database])
codes = {}
client.query('SELECT * from codes').each do |stored_data|
id = 0
@spotlightishere
spotlightishere / something-useful.rb
Created Jun 16, 2017
This script went through an ics and converted it (by finding Discord users) and adding their IDs to yml. This will probably only be useful once lol
View something-useful.rb
require_relative 'modules/settings.rb'
module SerieBot
require 'discordrb'
require 'yaml'
require 'fileutils'
require 'icalendar'
# Load helper as it is needed first.
helper_path = 'modules/helper.rb'
require_relative helper_path
View fix-null.diff
diff -Naur pilot-link.orig/src/pilot-read-notepad.c pilot-link-0.12.5/src/pilot-read-notepad.c
--- pilot-link.orig/src/pilot-read-notepad.c 2009-06-04 08:26:19.000000000 -0500
+++ pilot-link-0.12.5/src/pilot-read-notepad.c 2017-05-07 15:12:02.000000000 -0500
@@ -166,8 +166,8 @@
width = n->body.width + 8;
png_ptr = png_create_write_struct
- ( PNG_LIBPNG_VER_STRING, png_voidp_NULL,
- png_error_ptr_NULL, png_error_ptr_NULL);
+ ( PNG_LIBPNG_VER_STRING, NULL,
View macos-patch.diff
--- romeo-orig/types.h 2001-03-16 19:28:08.000000000 -0600
+++ romeo-0.5.0/types.h 2017-05-07 14:33:18.000000000 -0500
@@ -4,7 +4,7 @@
/********************************************************************
* Elementary data types
********************************************************************/
-#include <endian.h>
+#include <machine/endian.h>
#define CPU_ENDIAN_LITTLE __LITTLE_ENDIAN
@spotlightishere
spotlightishere / ipsw.decrypt.md
Created Jun 23, 2016 — forked from tzmartin/ipsw.decrypt.md
Decrypting ipsw firmware files
View ipsw.decrypt.md
View keybase.md

Keybase proof

I hereby claim:

  • I am awesomebing1 on github.
  • I am awesomebing1 (https://keybase.io/awesomebing1) on keybase.
  • I have a public key whose fingerprint is A1C7 3154 9463 236D 88A1 7111 CC3F 4E00 80AC 47A3

To claim this, I am signing this object:

You can’t perform that action at this time.