Skip to content

Instantly share code, notes, and snippets.

View LovingMelody's full-sized avatar
🍵
Drinking Tea

Melody LovingMelody

🍵
Drinking Tea
View GitHub Profile
@LovingMelody
LovingMelody / Nix-diff
Last active April 26, 2023 19:40
Build Fail: QT Base 5.15.8
This file has been truncated, but you can view the full file.
- /nix/store/2mglmhmcxrpm5s6wm8pci9g4ph2fi9fc-qtbase-5.15.8.drv:{out}
+ /nix/store/5im1f14vkljlpnbi56j0f1p60kds0lr3-qtbase-5.15.9.drv:{out}
• The builders do not match
- /nix/store/4dhvq4lziiksvxfdhgmb97k6brxdwh84-bash-5.2-p15/bin/bash
+ /nix/store/rnkas52f8868g1hjdlldbvh6snm3pglv-bash-5.2-p15/bin/bash
• The set of input derivation names do not match:
- libinput-1.22.1
- libxml2-2.10.3
- python3-3.10.10
- qtbase-6c09620
{pkgs, stylix, ... }:
let
catppuccin-wallpapers = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "wallpapers";
rev = "c0d3c1e0c41b28e49ac9dd25bfc49026edf58568";
sha256 = "fZDsmJ+xFjOJDoI+bPki9W7PEI5lT5aGoCYtkatcZ8A=";
};
catppuccin-base16 = pkgs.fetchFromGitHub {
@LovingMelody
LovingMelody / KitsuEnhanced.js
Last active November 8, 2022 04:23
Tampermonkey script to hide anime finished watching
// ==UserScript==
// @name KitsuEnhanced
// @namespace https://gist.github.com/Fuzen-py/d8cf94c3f37dcb569ac0810d1b44ff4e
// @version 0.1
// @description Hide's Anime you completed watching
// @author Fuzen-py
// @match https://kitsu.io/anime?*
// @grant none
// ==/UserScript==
@LovingMelody
LovingMelody / Steam.strace
Created December 20, 2019 07:35
Steam fails to launch, nixos
execve("/run/current-system/sw/bin/steam", ["steam"], 0x7ffde09cf7e0 /* 77 vars */) = 0
brk(NULL) = 0x1795000
access("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/xhpwab5kavygbr1fswawmdyqvmn3wa4i-glibc-2.27/lib/tls/haswell/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/xhpwab5kavygbr1fswawmdyqvmn3wa4i-glibc-2.27/lib/tls/haswell/x86_64", 0x7ffd41df5ff0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/xhpwab5kavygbr1fswawmdyqvmn3wa4i-glibc-2.27/lib/tls/haswell/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/xhpwab5kavygbr1fswawmdyqvmn3wa4i-glibc-2.27/lib/tls/haswell", 0x7ffd41df5ff0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/xhpwab5kavygbr1fswawmdyqvmn3wa4i-glibc-2.27/lib/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/xhpwab5kavygbr1fsw
@LovingMelody
LovingMelody / theme.py
Created July 5, 2019 03:19
iTerm2 script to sync iTerm2 theme with macOS
#!/usr/bin/env python3.7
import asyncio
import iterm2
async def main(connection):
async with iterm2.VariableMonitor(connection, iterm2.VariableScopes.APP, "effectiveTheme", None) as mon:
while True:
# Block until theme changes
theme = await mon.async_get()
@LovingMelody
LovingMelody / main.py
Last active June 1, 2019 23:15
Basic twitter scraper for media (Just images)
#!/usr/bin/env python3
import json
import random
import sys
from time import sleep
import requests
from bs4 import BeautifulSoup
MIN_SLEEP=0
@LovingMelody
LovingMelody / README.md
Last active July 20, 2017 12:37
Basic bash configuration tutorial. (no real explination)

Bash Tab Completion

By default on OSX bash is missing a lot of the tab compltion.

NOTICE: run bash first before following this guide, not all shells are POSIX compatible.

Checking for brew

First of you need to have brew installed run this command in terminal

command -v brew >/dev/null 2>&1 && echo "Brew is installed." || { echo >&2 "Brew is not installed."; }
@LovingMelody
LovingMelody / getram.sh
Created June 2, 2017 06:57
Creates a swapfile of 4gb of ram
#!/usr/bin/env bash
####################################
# This script is really just a joke#
# please just upgrade your hardware#
# -Fuzen-py #
####################################
mkdir -p /getram
NUM = 0
while [-f "/getram/ram-{$NUM}" ]:
do

Keybase proof

I hereby claim:

  • I am fuzen-py on github.
  • I am fuzen (https://keybase.io/fuzen) on keybase.
  • I have a public key ASCcj-0Rx7PCS9DpyhjT3AB8VHumbItCfno7c_NSVlfaZAo

To claim this, I am signing this object:

@LovingMelody
LovingMelody / main.py
Last active September 18, 2017 19:12
wynaut
#!/usr/bin/python3
import\
sys
import\
os
import\
time
import\
math
import\