Please see https://owo.codes/snippets/30.
This file contains 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 | |
########################### | |
#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 |
This file contains 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
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
This file contains 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
--- 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 |
This file contains 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
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, |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
version: "2" | |
services: | |
server: | |
image: gitea/gitea:latest | |
environment: | |
- USER_UID=1000 | |
- USER_GID=1000 | |
- VIRTUAL_HOST=your.site | |
- VIRTUAL_PORT=3000 |
This file contains 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
package main | |
import ( | |
rpc "github.com/dogboy21/go-discord-rp/connection" | |
"github.com/godbus/dbus" | |
"log" | |
"time" | |
) | |
func main() { |
This file contains 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
package main | |
import ( | |
"fmt" | |
"image" | |
"image/png" | |
"log" | |
"net/http" | |
"strconv" | |
) |
OlderNewer