Skip to content

Instantly share code, notes, and snippets.

@kiwirm
kiwirm / .skhdrc
Last active May 2, 2024 14:16 — forked from pkazmier/.skhdrc
# Updated from https://gist.github.com/pkazmier to support yabai
#
# The following configuration heavily leverages modal keymaps to minimize the
# pollution of global keybindings. In addition, the modal keymaps facilitate
# the consistent use of the same keybindings across different modes. For
# example, this configuration uses 'h', 'l', 'j', and 'k' to represent west,
# east, south, and north when: changing focus, warping windows, resizing
# windows, swapping windows, and moving floating windows. Those four keys are
# mapped differently depending on the current mode to provide a consistent user
# experience.
@cloudnull
cloudnull / solus-oh-my-zsh-theme.png
Last active October 23, 2025 16:19
Solus zsh theme for oh-my-zsh
solus-oh-my-zsh-theme.png
@DeanDavis
DeanDavis / glowclock.ino
Last active November 28, 2024 14:43 — forked from goebish/glowclock.ino
//#define CALIBRATE
//#define GRID // After Calibration this mode should plot a pretty good dot grid on the screen
// See additional calibration comments in the code down by the "#ifdef CALIBRATE"
// Adjust these values for servo arms in position for state 1 _|
const double SERVO_LEFT_ZERO = 1600;
const double SERVO_RIGHT_SCALE = 690; // + makes rotate further left
// Adjust these values for servo arms in position for state 2 |_
const double SERVO_RIGHT_ZERO = 650;
; acceleration_enabled = {acceleration_enabled}
; acceleration_infill = {acceleration_infill}
; acceleration_ironing = {acceleration_ironing}
; acceleration_layer_0 = {acceleration_layer_0}
; acceleration_prime_tower = {acceleration_prime_tower}
; acceleration_print = {acceleration_print}
; acceleration_print_layer_0 = {acceleration_print_layer_0}
; acceleration_roofing = {acceleration_roofing}
; acceleration_skirt_brim = {acceleration_skirt_brim}
; acceleration_support = {acceleration_support}
@pjosalgado
pjosalgado / check_docker_container.sh
Last active May 25, 2023 17:33 — forked from ekristen/check_docker_container.sh
Bash Script to Check the Status of a Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Edited by: Paulo José de Oliveira Salgado
# Email: paulo@technosoftware.com.br
@CelliesProjects
CelliesProjects / MilliSecondClock.ino
Last active November 19, 2021 07:25
Millisecond clock take2 with fps counter for ESP32 with 64x128 SSD1306 OLED display.
/***********************************************
* Millisecond clock by Cellie
* needs a 128x64 SSD1306 OLED on pins 19 and 23
**********************************************/
#include "WiFi.h"
#include "SSD1306.h" //https://github.com/squix78/esp8266-oled-ssd1306
// i2c pin definitions for oled
#define I2C_SCL_PIN 19
#define I2C_SDA_PIN 23
@palopezv
palopezv / dwm_config_pulseaudio.h
Last active October 22, 2025 03:00 — forked from neuro-sys/dwmconfig.h
dwm volume control with hardware multimedia keys (pipewire, pulseaudio, amixer and light as an extra)
/**
* dwmconfig.h
* Hardware multimedia keys
*/
/* Somewhere at the beginning of config.h include: */
/*
You obviously need the X11 development packages installed, X11proto in particular, but
here is the location of the keysyms header upstream copy if you can't bother
using the contents of your own hard drive. ;-P
#######################################################
#### NOW AT A GITHUB REPO ####
#### https://github.com/tusing/unicorn_phat ####
#######################################################
#!/usr/bin/env python
# Display a list of user-defined color bars;
# fill the remaining area with sparkles.
# Designed for the Unicorn pHAT.
@tsrivishnu
tsrivishnu / gitignore_already_tracked_file.md
Last active July 17, 2025 10:52
Git: Ignore already checked in file

Git: How can I ignore a file that is already committed to the repo?

You have a repo and quite some developers have cloned the repo and working on it. Now you want to add a file to gitignore which is already checked-in or tracked by Git.(The file is already commited into the repo)

Below are the steps on how to ignore this file (lets say the filename is config.py):

  • Add it to .gitignore:

$ echo "config.py" >> .gitignore

@bbengfort
bbengfort / venv_cheat_sheet.md
Created August 20, 2014 14:16
My virtualenv and virtualenv wrapper cheat sheet. I alias the commands of virtualenv and virtualenv wrapper for my own development environment.

Ben's VirtualEnv Cheatsheet

This cheat sheet describes my usage/implementation of virtualenv with virtualenv wrapper and the bash foo that I added with the help of many blogs to make it all tick together in fun land.

Quick Reference

$ echo $WORKON_HOME
/Users/benjamin/.virtualenvs

$ echo $PROJECT_HOME