Skip to content

Instantly share code, notes, and snippets.

View noirscape's full-sized avatar
🎸
I think I can I think I can I think I can I think I can I think I can

noirscape noirscape

🎸
I think I can I think I can I think I can I think I can I think I can
View GitHub Profile
@noirscape
noirscape / terraria.pol
Last active February 27, 2016 16:26
Terraria - PlayOnLinux
#!/bin/bash
# Date : 2015-11-04
# Last revision : 2015-11-04
# Wine version used : 1.7.47
# Distribution used to test : LUbuntu 15.04
# Author : Ev1l0rd
# Issues : Multiplayer currently broken
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
@noirscape
noirscape / i3-gaps-tumblr
Last active August 13, 2016 14:34 — forked from tjb0607/i3-gaps-tumblr
i3-gaps theme for tumblr - Modified for easier usage
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>{title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="stylesheet" type="text/css" href="http://static.tumblr.com/bwey4ra/4Hynod13t/i3-numix-tumblr.css">
<meta name="viewport" content="width=600px"/>
<!-- Meta editable variables -->
<meta name="text:Lunix username" content="untitled"/>
@noirscape
noirscape / restructure.sh
Last active September 3, 2016 17:44
Restructure a httrack website
#!/bin/bash
# Restructurer for httrack mirror.
# Also works on wget mirrors that you want to be organized.
read -rp "Enter path to current mirror: " existingmirror
read -rp "Enter path to output directory: " outdir
read -rp 'Add any flags you want to the mirror (usually you will want one of the -N flags). By default, the mirror will add the "--disable-security-limits" and "-A1000000000000" flags to speed up the download, so you cant enter those (script will fail if you do!): ' flags
cd $existingmirror
# If index.html does not exist, then we generate one using tree
if [[ -f index.html ]]; then

A simple IRC log script

Just wget the file below, set the variables nick,channel and server and run it (config doesn't need to be changed). Output is send to stdout. You probably want to send it to a file. To do so, I recommend one of these structures:

If you don't want to see the output in a terminal:

irclogscript.sh >> logs.txt

If you do want to see the output in a terminal:

@noirscape
noirscape / app.js
Last active November 9, 2017 16:24
const Discord = require("discord.js");
const client = new Discord.Client();
const config = require("./config.json");
client.on("ready", () => {
console.log("Now Playing Setter is on duty! The Now Playing Status that is set is: " + config.NowPlayingStatus);
client.user.setGame(config.NowPlayingStatus)
});
client.login(config.token);
@noirscape
noirscape / bot.py
Last active December 30, 2017 22:48
A minimalist discord bot framework
import yaml
from discord.ext import commands
'''A simple bot framework.
Simply configure the options in config.yaml and start the bot with `python3 main.py`
Make sure to run requirements.txt first!
The bot does -not- have any commands by default. You will either need to add them manually or use the included cog loader.
Licensed under the WTFPL (although credit is preferred if you use this as a base)'''
config = yaml.safe_load(open('config.yaml'))
# Discriminator getter
# Gets a list of all discriminators that are the same as yours.
# Change to one of these to reroll your discriminator.
# NOTICE: NO WARRANTY, I AM NOT RESPONSIBLE FOR TRIGGER HAPPY STAFF BANNING YOU.
# SCRIPT IS GIVEN WITHOUT ANY SUPPORT.
#
# Use it on a regular bot. It _technically_ also works on a selfbot, but Selfbots are against the TOS.
import discord
from discord.ext import commands

Keybase proof

I hereby claim:

  • I am noirscape on github.
  • I am ev1l0rd (https://keybase.io/ev1l0rd) on keybase.
  • I have a public key whose fingerprint is C2C5 3C94 97E4 58DE 6240 839C 59BC A589 B35B 0E59

To claim this, I am signing this object:

@noirscape
noirscape / boot_cfw_win32.bat
Created September 23, 2018 21:22
SwitchGuide scripts
@echo off
echo Booting Hekate with HBL...
echo ------------------------------
bin\TegraRcmSmash_Win32.exe bin\payload.bin
echo ------------------------------
timeout 5
@noirscape
noirscape / twitter-auto-orig.user.js
Last active December 26, 2018 02:04
Userscript for automatically going to orig
// ==UserScript==
// @name Twitter auto :orig URL
// @version 1
// @include https://pbs.twimg.com/media/*
// @grant none
// ==/UserScript==
if (!window.location.href.endsWith(":orig")) {
var pathname = window.location.pathname // Used later on, so setting it here
if (pathname.includes(":")) { // checking pathname -> https://