Skip to content

Instantly share code, notes, and snippets.

🐺
Accidentally got fur'd, try again later.

Spotlight spotlightishere

🐺
Accidentally got fur'd, try again later.
Block or report user

Report or block spotlightishere

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 sample$config@json.json
{
"isThisFilenameStupid": true,
"memeURL": "https://twitter.com/MarioMasta64/status/952972007997616128"
}
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 / something.md
Created Aug 13, 2016
Compiling on 64 bit iOS devices
View something.md

Are you an iOS jailbreaker, and trying to compile your favorite Linux utility? Are you annoyed by the code signing issues, and the fact arm64-darwin isn't a valid machine? Well, I have the command for you!

./configure --build=aarch64 CFLAGS="-arch arm64 --sysroot=/var/root/iPhoneOS.sdk" CC=clang

where /var/root/iPhoneOS.sdk is the iOS 9.3 SDK.

@spotlightishere
spotlightishere / ipsw.decrypt.md
Created Jun 23, 2016 — forked from tzmartin/ipsw.decrypt.md
Decrypting ipsw firmware files
View ipsw.decrypt.md
You can’t perform that action at this time.