Skip to content

Instantly share code, notes, and snippets.

View quantumchuckles's full-sized avatar

Sym quantumchuckles

View GitHub Profile
@avilum
avilum / Running netron on colab and open IFrame
Created May 11, 2023 14:46
Visualizing model inside google Colab.
import IPython
import threading
import time
import os
def display_netron(path):
os.system(f'netron {path}')
thread = threading.Thread(target=display_netron, args=(output_path,))
thread.start()
export const interceptor = (store) => {
axios.interceptors.response.use(response => {
console.log(`request to ${response.config.url} OK with ${response.status}`)
return Promise.resolve(response)
}, (error) => {
console.log(`request to ${error.response.config.url} failed with ${error.response.status}`)
if (error.response.status == 401) {
const failedRequestConfig = error.config
@notuxic
notuxic / pointer_region.sh
Last active June 20, 2022 17:23
[bspwm] split-preselection using mouse
#!/bin/sh
## This script allows to preselect the next window split
## direction for bspwm with the mouse.
##
## Usage Example (add to .sxhkdrc):
## super + ctrl + {_,shift + } button3
## bspc node {,$(xdotool getmouselocation | cut -d ':' -f 5)} -p $(~/.config/bspwm/pointer_region.sh {active,all})
##
## Author: notuxic
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@heroheman
heroheman / ranger-cheatsheet.md
Last active November 26, 2025 16:03
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@learner-long-life
learner-long-life / Rinkeby.md
Last active October 11, 2025 14:27
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@parmentf
parmentf / GitCommitEmoji.md
Last active December 3, 2025 06:56
Git Commit message Emoji
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 8, 2025 03:35
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname