Runnable version in bl.ocks.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi | |
REM bcdedit /deletevalue {bootmgr} path \EFI\ubuntu\grubx64.efi | |
REM bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrollbar, scrollbar *, scrollcorner { | |
-moz-appearance: none !important; | |
--scrollbar-width: 10px; | |
--scrollbar-height: var(--scrollbar-width); | |
} | |
scrollbar, scrollcorner { | |
background: #282828 !important; | |
} | |
scrollbar[orient="vertical"] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AppXPackage -Name Microsoft.Windows.Cortana | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 | |
# | |
# USAGE: | |
# Back up your tmux old config, run the script and redirect stdout to your conf | |
# file. Example: | |
# | |
# $ cp ~/.tmux.conf ~/.tmux.conf.orig | |
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while getopts ":o:" opt; do | |
case ${opt} in | |
o) output=$OPTARG ;; | |
esac | |
done | |
if [ -z "$output" ]; then | |
echo "Usage: $0 -o output_file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://serverfault.com/questions/659955/allowing-ssh-on-a-server-with-an-active-openvpn-client | |
# https://serverfault.com/a/660106 | |
ip rule add from x.x.x.x table 128 | |
ip route add table 128 to y.y.y.y/y dev ethX | |
ip route add table 128 default via z.z.z.z | |
# Where x.x.x.x is your public IP, y.y.y.y/y should be the subnet | |
# of your public IP address, ethX should be your public Ethernet | |
# interface, and z.z.z.z should be the default gateway. | |
# Note that this hasn't worked for me (using Debian and PrivateInternetAccess) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
menupopup { | |
--panel-background: var(--arrowpanel-background) !important; | |
--panel-color: var(--arrowpanel-color) !important; | |
--panel-border-color: var(--arrowpanel-border-color) !important; | |
--panel-border-radius: var(--arrowpanel-border-radius) !important; | |
--panel-padding: var(--arrowpanel-padding) !important; | |
} | |
menuseparator { | |
appearance: inherit !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import time | |
import random | |
import string | |
import requests as req | |
salt = "6cqshh5dhw73bzxn20oexa9k516chk7s" # borrowed from https://github.com/thesadru/genshinstats | |
uid = 12345678 # int | |
ltoken = "verylargestringtokenxxxxxxxxxxxxxxxxxxx" # str | |
ltuid = "87654321" # str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import sys | |
from PySide6.QtCore import QUrl, QObject, Property, Signal, Slot | |
from PySide6.QtWidgets import QApplication | |
from PySide6.QtQml import QmlElement, QQmlApplicationEngine | |
from PySide6.QtCharts import QAbstractSeries | |
QML_IMPORT_NAME = "name.kyzivat.piechart_example" | |
QML_IMPORT_MAJOR_VERSION = 1 |