Skip to content

Instantly share code, notes, and snippets.

@SoulVoidNova
SoulVoidNova / aw-category-export.json
Created February 26, 2025 07:47
This JSON file is used to categorize activities in ActivityWatch based on application usage, websites, and software tools. It helps in tracking time spent on work, media consumption, communication, and more. ### Features: - 🔍 Regex-based rules for automatic classification - 🎨 Custom colors for category visualization - 🏆 Scoring system for produc…
{
"categories": [
{
"data": {
"color": "#0F0",
"score": 10
},
"id": 0,
"name": [
"Work"
@SoulVoidNova
SoulVoidNova / WebGL-WebGPU-frameworks-libraries.md
Created August 1, 2024 08:00 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt install openjdk-8-jdk-headless

Android SDK

@SoulVoidNova
SoulVoidNova / one-click-install-oh_my_zsh-powerlevel10k-ubuntu.sh
Created December 6, 2023 07:47 — forked from AmreeshTyagi/one-click-install-oh_my_zsh-powerlevel10k-ubuntu.sh
one click installation script for oh-my-zsh and powerlevel10k with autocomplete and highlighter plugin on ubuntu 20.04
#!/bin/bash
# Install zsh
sudo apt install zsh -y
# Show version
zsh --version
# Set zsh as default shell
chsh -s /usr/bin/zsh
@SoulVoidNova
SoulVoidNova / solar.js
Created November 28, 2023 17:25 — forked from danopia/solar.js
JavaScript file to calculate the sun's position for given Earth coordinates + Date object
/* solar.js -- Solar position ported source
This file was a part of Redshift.
Redshift is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Redshift is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@SoulVoidNova
SoulVoidNova / clean.sh
Created September 21, 2023 17:12 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@SoulVoidNova
SoulVoidNova / mysql-docker.sh
Created May 6, 2022 11:31 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@SoulVoidNova
SoulVoidNova / media-query.css
Created July 31, 2019 11:32 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@SoulVoidNova
SoulVoidNova / responsive-font.css
Last active December 11, 2018 09:43 — forked from sarvar/responsive-font.css
Responsive font size
@function get-vw($target)
$vw-context: (1200 * 0.01) * 1px
@return ($target / $vw-context) * 1vw
body
font-size: get-vw($default-font-size)
h1
font-size: get-vw($h1-font-size)
h2
font-size: get-vw($h2-font-size)
h3