Skip to content

Instantly share code, notes, and snippets.

View LevitatingBusinessMan's full-sized avatar
🕴️
Ricing my polybar...

Rein Fernhout LevitatingBusinessMan

🕴️
Ricing my polybar...
View GitHub Profile
#!/usr/bin/node
const program = require("commander");
const net = require("net");
let host;
program
.usage("[options] <host>")
.arguments("<host>")
.option("-p, --port <port>", "specify port")
@LevitatingBusinessMan
LevitatingBusinessMan / alphabet.json
Last active January 1, 2022 13:43
Eren - phonetic alphabet typer
{
"A": "Alpha",
"B": "Bravo",
"C": "Charlie",
"D": "Delta",
"E": "Echo",
"F": "Foxtrot",
"G": "Golf",
"H": "Hotel",
"I": "India",
@LevitatingBusinessMan
LevitatingBusinessMan / start.sh
Last active January 22, 2019 00:47
Minecraft server startup script
#!/bin/bash
#Has to be run from within server files
#(because of how the server itself works)
if pgrep -x "world_backup.sh" > /dev/null
then
echo "Backup script already running"
else
echo "Starting backup script"
@LevitatingBusinessMan
LevitatingBusinessMan / index.html
Last active November 14, 2019 23:08
Pornhub Logo Creator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pornhub Logo Creator</title>
</head>
<body>
<div id="logo-container">
<div contenteditable="true" id="porn" class="logo">Type</div>
<div contenteditable="true" id="hub" class="logo">Here</div>
<!DOCTYPE HTML>
<html>
<head>
<title>PONG!!!</title>
<link rel="icon" href=favicon.ico type=image/x-icon>
<link href=style.css rel=stylesheet type=text/css>
<link href="https://fonts.googleapis.com/css?family=Montserrat|Roboto|Anton|Roboto+Mono" rel="stylesheet">
</head>
<body>
@LevitatingBusinessMan
LevitatingBusinessMan / index.html
Last active February 18, 2019 15:11
3 Word Password Generator
<!DOCTYPE html>
<html>
<head>
<title>3 Word Password</title>
<link rel="icon" href="lock-black.png" type="image/x-icon"/>
<link rel="stylesheet" href="/style.css">
</head>
<body>
<!-- Lock icon by Those Icons https://www.flaticon.com/authors/those-icons-->
<img id="lock" src="lock.png"/>
@LevitatingBusinessMan
LevitatingBusinessMan / dotfiles_cp
Last active January 14, 2020 19:56
Easily copy a list of dotfiles to a directory
echo "moved to https://github.com/LevitatingBusinessMan/Dot_Files/blob/master/dfcp"
def pigLatin(input = "Pig Latin")
input = input.downcase
result = []
for word in input.split(" ") do
#First character is a vowel
if ["a", "e", "i", "o", "u"].include?(word[0])
result.push word + "ay"
@LevitatingBusinessMan
LevitatingBusinessMan / solver.js
Last active September 9, 2019 09:57
Math class was boring so I spend my time making this instead
if (process.argv.length < 3)
return console.log("No equation defined")
const equation = process.argv[2]
if (!equation.includes("=") || !equation.includes("x"))
return console.log("Not a valid equation")
const firstHalf = equation.split("=")[0]
const secondHalf = equation.split("=")[1]
@LevitatingBusinessMan
LevitatingBusinessMan / bruteforce.js
Created September 9, 2019 10:26
Did a programming battle against a friend who could design this program the quickest
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
const maxLength = 10;
const indeces = [0];
while (indeces.length < maxLength) {
let string = ""
for (let i = 0; i < indeces.length; i++) {
string += chars[indeces[i]]