Skip to content

Instantly share code, notes, and snippets.

View kraxarn's full-sized avatar
🐦

kraxie kraxarn

🐦
View GitHub Profile
#!/bin/bash
DESKTOP_URL="https://raw.githubusercontent.com/kraxarn/spotify-qt/master/res/app/spotify-qt.desktop"
ICON_URL="https://raw.githubusercontent.com/kraxarn/spotify-qt/master/res/logo/spotify-qt.svg"
DESKTOP_PATH="$HOME/.local/share/applications/spotify-qt.desktop"
ICON_PATH="$HOME/.local/share/icons/hicolor/scalable/apps/spotify-qt.svg"
LATEST_RELEASE_URL="https://api.github.com/repos/kraxarn/spotify-qt-nightly/releases/latest"
JQ_DOWNLOAD_URL='.assets.[] | select(.name | endswith(".AppImage")) | .browser_download_url'
@kraxarn
kraxarn / index.html
Created February 17, 2024 16:38
Webcam Relay
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Webcam Relay</title>
<style>
video {
width: 100%;
height: 100%;
}
@kraxarn
kraxarn / orq_build.sh
Last active March 29, 2020 12:08
orq build script
# Build (burningdaylight/docker-mingw-qt5)
# Install go
sudo pacman -Sy
sudo pacman -S go --noconfirm
# Install all available Qt libs
sudo pacman -S mingw-w64-qt5 --needed --noconfirm
# Download and build main application
@kraxarn
kraxarn / webplayer.html
Created February 20, 2020 16:02
spotify-qt web player
<script src="https://sdk.scdn.co/spotify-player.js"></script>
<script>
window.onSpotifyWebPlaybackSDKReady = () => {
const token = location.href.substring(location.href.lastIndexOf("?token=") + 7)
const player = new Spotify.Player({
name: "spotify-qt",
getOAuthToken: cb => { cb(token) }
})
player.connect()
};
@kraxarn
kraxarn / gdocs-open.sh
Created February 1, 2020 11:38
Faster document open for Insync
#! /bin/bash
# gdocs-open, WTFPL
xdg-open `jq --raw-output '.url' $1`
@kraxarn
kraxarn / main.go
Created January 25, 2020 16:47
gpuTemp
package main
/*
* gpuTemp
* Version 1.0
* Licensed under WTFPL
*
* Pretty simple and bad way to display Nvidia GPU usage and temperature
* Only works with 2 GPUs
* Written in Go and Qt
@kraxarn
kraxarn / gendata.go
Last active December 28, 2019 13:01
Binary file to Go source file
/*
* Generate data
*
* Converts a file to a Go source file.
* Go source file gets generated as data.go with an appData constant containing the file data as base64.
*
* Licensed under WTFPL.
*/
package main
@kraxarn
kraxarn / QuickSoundToggle.java
Last active March 30, 2023 06:49
Quick Sound Toggle Source Code
package com.crow.sound_quick_toggle;
/*
Version 1.0
By kraxarn
Licensed under WTFPL
*/
import android.app.NotificationManager;
import android.content.Context;
@kraxarn
kraxarn / log.txt
Last active September 23, 2018 10:21
Neofetch log (iPhone X, 11.3.1)
/usr/bin/neofetch: line 4160: /dev/fd/62: No such file or directory
/usr/bin/neofetch: line 4160: awk: command not found
/usr/bin/neofetch: line 4160: awk: command not found
+ verbose=on
+ shift
+ [[ -n '' ]]
+ [[ on != \o\n ]]
+ get_distro
+ [[ -n '' ]]
+ case "$os" in