Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View spotlightishere's full-sized avatar
🦊
in your computer

Spotlight spotlightishere

🦊
in your computer
View GitHub Profile
@spotlightishere
spotlightishere / docker-compose.yml
Created July 9, 2018 02:39
gitea + let's encrypt + mariadb
version: "2"
services:
server:
image: gitea/gitea:latest
environment:
- USER_UID=1000
- USER_GID=1000
- VIRTUAL_HOST=your.site
- VIRTUAL_PORT=3000
@spotlightishere
spotlightishere / convert.rb
Created July 16, 2017 20:14
Fixes the large mistake that was providers. https://rc24.xyz | https://github.com/fl0co/RC24-Bot
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 June 16, 2017 19:24
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
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
@spotlightishere
spotlightishere / fix-null.diff
Last active December 31, 2018 12:53
pilot-link patch
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,
@spotlightishere
spotlightishere / macos-patch.diff
Last active December 31, 2018 12:52
Romeo patches
--- 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 / atom_update
Last active January 19, 2023 16:37
A small command to update atom. Please comment if you see anything wrong, I am just beginning to explore bash as a control language.
#!/bin/bash
###########################
#FUNCTIONS and DEFINITIONS#
###########################
#The following function was taken from https://gist.github.com/crazy-max/5695540.
function wgetFilter() {
local flag=2 c count cr=$'\r' nl=$'\n'
while IFS='' read -d '' -rn 1 c
do