Skip to content

Instantly share code, notes, and snippets.

View ComradeCat24's full-sized avatar

Sym ComradeCat24

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 June 22, 2024 04:08
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 August 30, 2022 22:32
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 June 21, 2024 19:13
Git Commit message Emoji
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 21, 2024 01:45
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname