Skip to content

Instantly share code, notes, and snippets.

View chazdky's full-sized avatar

Chaz Davis chazdky

View GitHub Profile
@christoph-frick
christoph-frick / Awesome-Fennel.md
Last active March 5, 2025 19:06
Use fennel to write the awesome-wm config

How to write an awesome-wm config with Fennel

Awesome-WM is a X11 window manager, that is configured via Lua. Fennel is a Lisp for Lua. This shows a general setup of how to write your awesome-wm config using fennel directly without the compilation step (which would also work, but is not needed).

General setup

Fetch a recent Fennel version (the

@scmx
scmx / toggle-dark-mode.md
Last active January 21, 2022 00:54
Script Toggle Dark Mode On/Off for Mac OS, Hyper term, Tmux and Vim #macos #hyper #tmux #vim #darkmode #applescript

Script to Toggle Dark Mode On/Off for Mac OS, Hyper term, Tmux and Vim

I had some fun pimping my development setup during my summer vacation 🏖 🏝 and here's what I came up with. A script toggle-dark-mode that toggles dark mode for not only Mac OS, but also Hyper, tmux and vim at once. I'm gonna be so productive now.. 😁

toggle-dark-mode

*(I've customized Hyper term to remove dead space on top for maximized windows,

@TolgaBagci
TolgaBagci / Cisco IOS Images for GNS3.md
Last active January 7, 2025 07:43
Cisco IOS Images for GNS3

Cisco IOS Images for GNS3

Working the CCNA exams with GNS3 software is a great way. But, you need Cisco IOS images for GNS3.

You can use many Cisco IOS images on GNS3, but most of them may be problematic.

I would recommend reading the related article to download Cisco IOS images running in GNS3.

Cisco IOS Images for GNS3

@Agyar
Agyar / .tmux.conf
Last active March 15, 2020 21:04
Neovim config
set-option -g allow-rename off
bind-key -n M-K new-window -c "#{pane_current_path}"
bind-key -n M-H prev
bind-key -n M-J resize-pane -Z
bind-key -n M-L next
bind-key -n M-k select-pane -U
bind-key -n M-j select-pane -D
bind-key -n M-h select-pane -L
@robwalkerco
robwalkerco / zenfolio-photo-downloader.js
Last active December 14, 2023 08:14
Zenfolio photo downloader
var paths = []
var count = 1
// Before running this script, you will need to scroll
// to the bottom of the zenfolio page to ensure all the
// images in the dom
function openAllPhotos() {
// Collect the paths for each photo
$('.pv-inner img:first-child').each((index, image) => {
paths.push(image.style.backgroundImage.split('"')[1])
" ~/.vim/ftplugin/python.vim
" syntastic (recommended settings)
let g:syntastic_python_checkers = ['pylint']
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
" let g:syntastic_python_pylint_post_args="--max-line-length=79"
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
" ~/.vim/ftplugin/tex.vim
"" vim-latex
" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep\ -nH\ $*
" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
This will be the engineering journal that i will write during my journey with Cisco Networking Academy.
1 - DONE
2 - DONE
3 - DONE
4 - DONE
5 - DONE
6 - DONE
7 - DONE
8 - DONE
@mihaiparaschiv
mihaiparaschiv / setup-tmux-example.sh
Last active March 21, 2020 01:12
Utility scripts to create a tmux session
tmux new-window -n analysis -c /d/work/example
cd /g/work/a-analytics
tmux select-window -t analysis
tmux split-window -v -p 80
tmux select-pane -t 0
tmux send-keys "cd run/analysis-local" C-m
tmux send-keys "ls -la" C-m
tmux select-pane -t 1
tmux send-keys "ls -la" C-m
tmux split-window -h
@eltonlaw
eltonlaw / bash-cheatsheet.sh
Created July 17, 2017 21:09 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04