Skip to content

Instantly share code, notes, and snippets.

View Vresod's full-sized avatar
💭
this

Vresod Vresod

💭
this
View GitHub Profile
@Vresod
Vresod / solana_modified.theme.css
Last active February 20, 2023 16:58
Modified maenDisease/Solana
/**
* @name Solana
* @version 1.0.11
* @author Disease#3749
* @authorId 678469587444170762
* @description macOS with barely any customization.
* @source https://github.com/maenDisease/BetterDiscordStuff/tree/main/Themes/Solana
* @invite BShu37e4jg
* @website https://maendisease.github.io/
*/
@Vresod
Vresod / New-Shortcut.ps1
Created November 13, 2021 03:41
Automatically add MultiMC instances to the Windows start menu
param (
[string]$SourceExe,
[string]$DestinationPath,
[bool]$Save = $true
)
$Path = "$(Resolve-Path $DestinationPath.SubString(0, $DestinationPath.LastIndexOf('\')))\$($DestinationPath.Split('\')[-1])"
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut($Path)
$Shortcut.TargetPath = $SourceExe
#!/bin/sh
updatesonglist() {
IFS="
"
songlist=""
for i in $(mpc listall|sed "s/ /@/g"); do songlist="$(echo "$i"|awk -F '....$' '{print $1}')\n$songlist"; done
IFS=""
songlist=$(echo $songlist|sed "s/@/ /g"|sort)
}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..445bfae
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+dwm
diff --git a/config.def.h b/config.def.h
index 1c0b587..8cd3204 100644
--- a/config.def.h
@Vresod
Vresod / scrot.sh
Last active October 3, 2020 04:38
#!/bin/sh
# Requirements:
# Rofi/dmenu
# Zenity (for file saving dialog)
# Scrot/maim
[ -x /usr/bin/rofi ] && selector="rofi -dmenu" || selector="dmenu"
[ -x /usr/bin/maim ] && scrot="maim -lc 0.5,0.2,0.7,0.3" || scrot="scrot"
@Vresod
Vresod / add.py
Created December 19, 2019 01:02
Bad Math in python.
from time import sleep, time
def add(n1, n2):
start = time()
sleep(n1)
sleep(n2)
return int(time() - start)
@Vresod
Vresod / embed.js
Created October 31, 2019 15:07
Youtube to Embed (bookmark)
javascript: window.location.href = "https://youtube.com/embed/" + window.location.href.match(/(?<=\d\/|\.be\/|v[=\/])([\w\-]{11,})|^([\w\-]{11})$/gm)[0]
@Vresod
Vresod / bookmark.js
Created September 27, 2019 17:37
go from youtube -> youtube tv with one click
javascript: window.location.href = "https://youtube.com/tv#/watch/video/control?v=" + window.location.href.match(/(?<=\d\/|\.be\/|v[=\/])([\w\-]{11,})|^([\w\-]{11})$/gm)[0]
[
"youtube.com",
"vresod.tk",
"duckduckgo.com",
"github.com"
]
// ==UserScript==
// @name Tab Titles
// @namespace https://vresod.github.io
// @version 1.0
// @description Tab Titles is the not so perfect solution to giving custom title to tabs!
// @author Vresod
// @include *
// @grant none
// ==/UserScript==