grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit 4bb1c23e31b8ee57ca0b6a29572bf99daffdc02f
parent 5c0f99dbb0f32ab6c922e8e189211f974499652d
Author: pyratebeard <root@pyratebeard.net>
Date:   Sat,  6 Apr 2019 11:56:28 +0100

Merge remote-tracking branch 'refs/remotes/origin/master'

Diffstat:
MHome.md | 1+
Acoding/arduino.md | 38++++++++++++++++++++++++++++++++++++++
Mcoding/git.md | 23+++++++++++++++++++++++
Mmisc/music.md | 1+
Mtechnology/linux/general/sed.md | 6++++++
5 files changed, 69 insertions(+), 0 deletions(-)

diff --git a/Home.md b/Home.md @@ -18,6 +18,7 @@ 9. [virtualisation](#technology_virtualisation) ## coding +- [arduino](coding/arduino) - [git](coding/git) - [svn](coding/svn) - [vim](coding/vim) diff --git a/coding/arduino.md b/coding/arduino.md @@ -0,0 +1,38 @@ +# arduino + +## ide installation +``` +pacman -S arduino arduino-avr-core +usermod -aG uucp,lock pyratebeard +modprobe cdc_acm +``` + +## ide configuration +### maltronics +* in preferences add the following url to 'Additional Boards Manager URLs' +** https://raw.githubusercontent.com/jLynx/MalDuino_Boards/master/IDE_Board_Manager/package_malduino_index.json +* in tools > Board: > select Boards Manager and install +** Arduino AVR Boards +** Maltronics Bad Board +* in tools > Manager Libraries install +** Mouse by Arduino +* select Maltronics Lite in boards list +* use [script converter][] +* for UK keyboard download zip +* open lite.ono + ``` + arduino lite/lite.ono + ``` +* select Sketch > Upload (Ctrl+U) + +[ducky script][] + +[maltronics: how to script][] + +[hak5 payloads][] + + +[script converter]: https://malduino.com/converter/ +[ducky script]: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Duckyscript +[maltronics: how to script]: https://malduino.com/wiki/doku.php?id=scripting_howto +[hak5 payloads]: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Payloads diff --git a/coding/git.md b/coding/git.md @@ -15,6 +15,11 @@ force push of a previous commit git push -f origin <commit_id>:<branch> ``` +delete remote branch +``` +git push --delete origin <branch> +``` + reset local branch after a forced-update (above) ``` git fetch @@ -41,6 +46,24 @@ compare diff between two commits git diff <commit>...<commit> ``` +stash +``` +git stash +git stash show +``` + +unstash +``` +git stash pop +``` + +## using `hub` +### pull requests +``` +hub pr list +hub pr checkout <num> +``` + [making a pull request][] [branching and rebasing][] diff --git a/misc/music.md b/misc/music.md @@ -24,3 +24,4 @@ - virgin steele "life among the ruins" - symfonia "pilgrim road" - jag panzer "children of the sea" +- chastain "the battle of nevermore" diff --git a/technology/linux/general/sed.md b/technology/linux/general/sed.md @@ -9,3 +9,9 @@ add character ``` s/regex/&n/ ``` + +convert first word before equals symbol from lower to upper +_this is used in config files such as ifcfg to convert all variable names_ +``` +:%s/^[[:alpha:]_]\{1,\}=/\U&/ +```