Skip to content

Instantly share code, notes, and snippets.

View 7rebux's full-sized avatar
🏠
Working from home

Nils Osswald 7rebux

🏠
Working from home
View GitHub Profile
@7rebux
7rebux / uplay.js
Created October 10, 2023 21:17
Ubisoft Playtime Calculator
import fs from 'fs';
const content = fs.readFileSync("./uplay_traffic_data.csv").toString();
const lines = content.split("\n").slice(1);
const playTimes = {}
for (const line of lines) {
const [
_accountId,
@7rebux
7rebux / twitter.js
Last active August 16, 2023 17:21
Unlike a specific amount of tweets in a specific timespan
// Example:
// await magic("2021-01-01T00:00:00.000Z", "2022-12-29T00:00:00.000Z", 100);
function nextTweet(current) {
return current.parentElement.parentElement.parentElement.nextElementSibling?.querySelector('[data-testid="tweet"]');
}
function getUnlikeButton(tweetElement) {
return tweetElement.querySelector('[data-testid="unlike"]');
}
@7rebux
7rebux / settings.json
Last active August 12, 2022 17:44
MonkeyType settings JSON
{
"theme":"chaos_theory",
"themeLight":"serika",
"themeDark":"serika_dark",
"autoSwitchTheme":false,
"customTheme":false,
"customThemeColors":[
"#323437",
"#e2b714",
"#e2b714",
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@7rebux
7rebux / settings.json
Last active January 26, 2022 17:21
My Windows Terminal settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
},
@7rebux
7rebux / oh-my-posh.json
Created November 28, 2021 21:04
My oh-my-posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",