Skip to content

Instantly share code, notes, and snippets.

View evdcush's full-sized avatar
🦎
very good yes

Evan evdcush

🦎
very good yes
View GitHub Profile

https://github.com/reireias/dotseeker

grep -r -E -v -h '^\s*#' files | grep --color=none -E "^\s*alias " | sed -e 's/#.*//g' -e 's/^\s*//g' -e 's/\s*$//g' | sort | uniq -c | sort -nr
 90 alias ls='ls --color=auto'
 87 alias grep='grep --color=auto'
 59 alias fgrep='fgrep --color=auto'

59 alias egrep='egrep --color=auto'

@evdcush
evdcush / typecatcher_fix.md
Created March 6, 2024 09:13
FIX: Typecatcher Ubuntu package for installing fonts from Google fonts

Your error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/typecatcher_lib/Application.py", line 30, in on_activate
    self.window = TypeCatcherWindow.TypeCatcherWindow()
  File "/usr/lib/python3/dist-packages/typecatcher_lib/Window.py", line 47, in __new__
    builder = get_builder('TypeCatcherWindow')
  File "/usr/lib/python3/dist-packages/typecatcher_lib/helpers.py", line 44, in get_builder
    builder.add_from_file(ui_filename)
 File "/usr/lib/python3/dist-packages/typecatcher_lib/Builder.py", line 86, in add_from_file
@evdcush
evdcush / clean-url-readme-tab.github.com.tamper.js
Created March 2, 2024 00:48 — forked from vogler/clean-url-readme-tab.github.com.tamper.js
GitHub: remove `?tab=readme-ov-file` from URL
// ==UserScript==
// @name GitHub: remove `?tab=readme-ov-file` from URL
// @description GitHub: remove `?tab=readme-ov-file` from URL
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/74edff6de37c3a13eeff8c99c6bed910/raw/clean-url-readme-tab.github.com.tamper.js
// @version 0.1
// @author Ralf Vogler
// @match https://github.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
Tampermonkey:
https://github.com/orgs/community/discussions/66260
https://github.com/Gerrit0/old-github-feed
https://github.com/wangrongding/github-old-feed
Discussions:
https://github.com/orgs/community/discussions/66249
@evdcush
evdcush / pep20_by_example.py
Created May 15, 2023 07:23 — forked from evandrix/pep20_by_example.py
PEP 20 (The Zen of Python) by example
#!/usr/bin/env python
"""
=====================================
PEP 20 (The Zen of Python) by example
=====================================
Usage: %prog
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com
@evdcush
evdcush / CUDA_Compilers.md
Created April 3, 2023 03:45 — forked from ax3l/CUDA_Compilers.md
CUDA Compilers
@evdcush
evdcush / pycurses.py
Created January 22, 2023 10:37 — forked from claymcleod/pycurses.py
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()
@evdcush
evdcush / logseq_install_update.sh
Last active March 8, 2024 00:46
Handy shell script to install and update Logseq on Linux
#!/usr/bin/env bash
# This script comes from Joplin, MIT License Copyright Laurent Cozic:
# https://github.com/laurent22/joplin/blob/dev/Joplin_install_and_update.sh
# Modified here by github.com/evdcush to instead install and update Logseq.
set -e
trap 'handleError' ERR
#!/usr/bin/env bash
# This script comes from Joplin:
# https://github.com/laurent22/joplin/blob/dev/Joplin_install_and_update.sh
# minimally modified here to instead install and update Logseq.
set -e
trap 'handleError' ERR
@evdcush
evdcush / moji.md
Last active July 7, 2022 12:12
Some handy unicode stuffs for pasting into source code.

Unicode

Emoji