Skip to content

Instantly share code, notes, and snippets.

View flashwave's full-sized avatar

flash flashwave

View GitHub Profile
@flashwave
flashwave / QOTD.php
Created September 12, 2017 23:44
Attempt at making a Quote Of The Day server in PHP during an internet outage back in 2015
<?php
/*
* TCP only PHP Quote Of The Day Server
* Fuck the spec #GoogleChrome
* My Excuse for not being productive during this internet outage ^.^
* By Flashwave <http://flash.moe>
*/
// Configuration
$conf['address'] = '0.0.0.0';
@flashwave
flashwave / satoko.php
Last active March 9, 2018 21:03
old code from long ago
<?php
/*
* Satoko Image Board Engine
* (c)Flashwave (flashii) 2014
* http://flashii.net/
*/
// Include Language and Configuration file
require('config.php');
include('lang/'.$satoko['language'].'.php');
@flashwave
flashwave / Program.cs
Last active March 9, 2018 21:04
very old version of discord nico
using Discord;
using Discord.Audio;
using Discord.Commands;
using NAudio.Wave;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Threading;
<?php
$modes = [
'swf' => 'swf/*.swf',
'catgirls' => 'catgirls/*.*',
'coffington' => 'coffington/*.*',
'flashwave' => 'flashwave/*.*',
];
$mode = (isset($_GET['mode']) && array_key_exists($_GET['mode'], $modes) ? $_GET['mode'] : array_keys($modes)[0]);
@flashwave
flashwave / NumberEncode.php
Last active March 9, 2018 21:07
an attempt at doing... something? back in 2015
<?php
/*
* Phone Numberpad Encoding
* Provided to you by Flashwave
*
* Pretty much what this does is encode (and decode) strings into other strings (wow technology)
* that consist out of 1-9, # and *.
* This is not really supposed to be anything serious, just something I'm doing out of boredom.
*
* The goal of this is to be able to encode anything and still be able to decode it properly.
@flashwave
flashwave / _settings.php
Last active March 9, 2018 21:08
This page is part in the series of: "The entirety of pre-2018 Flashii was a hackjob"
<?php
/*
* Sakura Main Index
*/
// Declare Namespace
namespace Sakura;
// Include components
require_once str_replace(basename(__DIR__), '', dirname(__FILE__)) .'_sakura/sakura.php';
@flashwave
flashwave / .htaccess
Created February 20, 2015 23:02
puush leech i mean relay
Options -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !/puush_relay\.php [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/][a-zA-Z0-9./]+)$ puush_relay.php?id=$1 [L]
@flashwave
flashwave / about
Created February 19, 2015 19:07
More quality code from a few years ago
Made this in 2013, kind of the grandfather of my current whois-php thing, some parts are kind of similar although the newer one should be more refined
@flashwave
flashwave / apitest.php
Last active November 9, 2018 13:09
http://flash.moe/apitest.php - Flashii Profile API Testing
<?php
// Check if "uid" GET request is set
if(isset($_GET['uid'])) {
// Get data from remote server and surpress errors
$apiData = @file_get_contents('http://flashii.net/u/' . $_GET['uid'] . '/api');
// If nothing was retrieved display the following error and die
if($apiData == FALSE) {
die('<h1>Failed to retrieve API data!</h1>Is Flashii.net down?');