Skip to content

Instantly share code, notes, and snippets.

clearepisodes
clearepisodes
episode map01
{
name = "Simple Maps"
key = "s"
}
// maps
@thegreatestminer
thegreatestminer / GodDrinksJava.java
Last active September 16, 2019 10:11
A direct copy of the official lyrics of world.execute(me); by Mili from the CD scans.
package goddrinksjava;
/**
* The program GodDrinksJavaimplements an application that
* created an empty simulated world with no meaning or purpose.
*
* @author momocashew
*/
public class GodDrinksJava {
public static void main(String[] args) {
Thing me = new Lovable("Me", 0, true, -1, false);
@thegreatestminer
thegreatestminer / ssh
Last active February 17, 2021 14:45 — forked from yashkumaratri/Google Colab SSH
Allows you to connect to your Google Colab by using ssh and ngrok.
#@markdown <h2><- Click here to enable SSH.</h2>
#@markdown <h4>Get authtoken from <a href="https://dashboard.ngrok.com/auth">ngrok.</a></h4>
import string, time
authtoken = "CHANGE THIS" #@param {type:"string"}
sshpassword = "CHANGE THIS" #@param {type:"string"}
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
@thegreatestminer
thegreatestminer / vnc.sh
Last active August 8, 2020 16:34
vnc for colab, assumes you already tunneled SSH, because having a command run for 3 minutes is unethical
#!/bin/bash
apt update
apt install xfce4 xfce4-goodies vnc4server firefox
echo "#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
@thegreatestminer
thegreatestminer / pixiv.sh
Last active January 10, 2020 23:44
another small set up script
#!/bin/bash
wget http://yt-dl.org/downloads/latest/youtube-dl
mv youtube-dl /usr/bin/
chmod +x /usr/bin/youtube-dl
apt install python3.7
rclone copy drive:PixivUtil2-BLANK.7z ./ -P && 7z x PixivUtil2-BLANK.7z && rm PixivUtil2-BLANK.7z
@thegreatestminer
thegreatestminer / .bash_aliases
Last active November 15, 2020 22:00
google drive download bash alias, by @beliys & @vladalive | gdl <fileid> <filename>
function gdl () {
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
rm -rf /tmp/cookies.txt
}
function rcl {
rclone copy "last:Music/$1" "$1" -P
}
@thegreatestminer
thegreatestminer / encoded-20201212150102.txt
Created December 12, 2020 15:01
MobaXTerm Professional x64 License Key [READ COMMENTS]
UEsDBBQAAAAIABNQjFGCf/GfLgAAACwAAAAHAAAAUHJvLmtleTMqdncpCXQOKDAp9woMzEo1MTVOrHAzTjTLME7VNs1LK8owTjQpcU8tcuLlAgBQSwECFAAUAAAACAATUIxRgn/xny4AAAAsAAAABwAAAAAAAAAAAAAAAAAAAAAAUHJvLmtleVBLBQYAAAAAAQABADUAAABTAAAAAAA=
@thegreatestminer
thegreatestminer / getrar
Created December 13, 2020 18:09
dl rar and slap it into usrbin
#!/bin/bash
apt purge unrar
wget https://www.rarlab.com/rar/rarlinux-x64-6.0.0.tar.gz
tar xzf rarlinux-x64-6.0.0.tar.gz
cd rar
mv rar /usr/bin
mv unrar /usr/bin
cd ..
rm -rf rar
rm rarlinux-x64-6.0.0.tar.gz