Skip to content

Instantly share code, notes, and snippets.

View kav2k's full-sized avatar

Alexander Kashev kav2k

View GitHub Profile
@meganukebmp
meganukebmp / mshot.sh
Last active April 30, 2019 06:42
A simple maim wrapper with xclip. Used with xfce4 keybinds.
#!/bin/bash
screenshot () {
# o - no openGL 3.0 (legacy mode)
# u - hide cursor
# b - border thickness (negative for inset)
# c - border color (RGBA)
# n - decoration level (window borders)
maim \
-n 0\
@ryaninvents
ryaninvents / unsubmodule.md
Created May 5, 2016 13:25
Convert git submodule to regular directory

From Stack Overflow.

# Fetch the submodule commits into the main repository
git remote add submodule_origin git://url/to/submodule/origin
git fetch submodule_origin

# Start a fake merge (won't change any files, won't commit anything)
git merge -s ours --no-commit submodule_origin/master
@Threeethan
Threeethan / gist:7938597
Created December 13, 2013 01:29
Simple BlinkyTape sketch for slowly moving red-green-white lights - nice for Christmas trees! Upload using Arduino.
// This is the example sketch that gets loaded on every BlinkyTape during production!
#include <FastSPI_LED2.h>
#include <Animation.h>
#define LED_COUNT 60
struct CRGB leds[LED_COUNT];
#ifdef REVB // RevB boards have a slightly different pinout.