Skip to content

Instantly share code, notes, and snippets.

View theoparis's full-sized avatar

Theo Paris theoparis

View GitHub Profile
@theoparis
theoparis / README.md
Last active February 27, 2021 00:31
nhentai jsk discord bot

NHentai JSK discord.py

cuz why not!

Installing dependencies

-jsk sh pip install hentai

Running

-jsk repeat 5 jsk py
@theoparis
theoparis / rollup.config.js
Created March 1, 2021 04:22
rollup preact + typescript
import typescript from "@rollup/plugin-typescript";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import html from "@rollup/plugin-html";
import serve from "rollup-plugin-serve";
import replace from "@rollup/plugin-replace";
import jsx from "acorn-jsx";
import alias from "@rollup/plugin-alias";
export default {
setInterval(function() {
Array.prototype.slice.call(
document.querySelectorAll(
'div,p,span,img,a,body')).map(function(tag){
tag.style['transform'] = 'rotate(' + (
Math.floor(Math.random() * 300) - 1) + 'deg)';
tag.style['transform'] = 'skew(' + (
Math.floor(Math.random() * 400) - 1) + 'deg)';
tag.style['transform'] = 'scale(' + (
Math.floor(Math.random() * 50) - 1) + 'deg)';
@theoparis
theoparis / test.go
Created March 26, 2021 01:48
govald example
package main
import (
"fmt"
"github.com/mitchellh/mapstructure"
gv "govald/govald"
)
type User struct {
Username string
@theoparis
theoparis / style.css
Last active April 20, 2021 20:28
Dark mode for stylus
/* ==UserStyle==
@name Global Dark Mode
@namespace github.com/suterma/globaldarkmode
@homepageURL https://github.com/suterma/globaldarkmode
@version 1.0.7
@updateURL https://github.com/suterma/globaldarkmode/raw/master/global-dark-mode.chrome.user.css
@description A global dark mode, with a soft touch, to be easy on the eyes. (Uses specific structure for Google Chrome)
@author [email protected]
@license GNU-V3.0
==/UserStyle== */
@theoparis
theoparis / fish_shell_local_install.sh
Last active April 29, 2021 16:21 — forked from masih/fish_shell_local_install.sh
Installs Fish Shell without root access
#!/bin/bash
# Script for installing Fish Shell on systems without root access.
# Fish Shell will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
FISH_SHELL_VERSION=3.2.2
@theoparis
theoparis / config.py
Created June 5, 2021 23:23
Qute browser config
config.bind("M", "hint links spawn mpv {hint-url}")
# Download a youtube video
config.bind("Z", "hint links spawn wezterm start -- youtube-dl {hint-url}")
config.set("colors.webpage.darkmode.enabled", True)
# Load config
config.load_autoconfig()
@theoparis
theoparis / .zshrc
Created August 1, 2021 18:00
Bash shell function for lm_sensors to grep a sensor by name
sensor() {
sensors | grep $1 | cut -f2- -d: | tr -d ' \t'
}
@theoparis
theoparis / build-grub-osx.sh
Last active November 30, 2021 22:12 — forked from emkay/build-grub-osx.sh
Build Grub on OSX
#!/bin/sh
set -e
# First we are going to make sure that you understand this is sort of experimental and we will be compiling stuff.
# by default CONTINUE will be false
CONTINUE=false
echo ""
echo "You are about to download, compile, and install stuff on your computer."
@theoparis
theoparis / .config
Created January 24, 2022 03:05
timos buildroot config
#
# Automatically generated file; DO NOT EDIT.
# Buildroot -g2c7ad667 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_9=y
BR2_HOST_GCC_AT_LEAST_5=y
BR2_HOST_GCC_AT_LEAST_6=y
BR2_HOST_GCC_AT_LEAST_7=y
BR2_HOST_GCC_AT_LEAST_8=y