Skip to content

Instantly share code, notes, and snippets.

unbindall
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "9" "slot9"
bind "a" "+moveleft"
bind "b" "buymenu"
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run using sudo or as the root user."
exit 1
fi
echo "EAP Controller on Raspberry Pi"
echo "=============================="
echo "Author: Arthur Gay <[email protected]>"
echo "Patch file controller.sh"
TEMP_FILE=$(mktemp)
echo<<EOF >$(TEMPFILE)
8c8
< JAVA_TOOL=${JRE_HOME}/bin/java
---
> JAVA_TOOL=java
68c68
< ${PORTT_TOOL} 127.0.0.1 8088 500
---
@GuiSevero
GuiSevero / sass-7-1-pattern.scss
Created August 16, 2019 19:55 — forked from rveitch/sass-7-1-pattern.scss
Sass 7-1 Pattern
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
@GuiSevero
GuiSevero / git_merge_repos.sh
Created July 28, 2020 12:01 — forked from lloeki/git_merge_repos.sh
Merge repos and keep whole history by creating a single multi-parent merge commit
#!/bin/bash
set -e
set -u
set -o pipefail
prefix="[email protected]:mygroup"
target="$1"
shift
import React, { useContext, useState } from 'react';
function useCounterContext() {
const [counter, setCounter] = useState(0);
return {
counter,
setCounter,
} as const;
}