Home.md
... ...
@@ -18,6 +18,7 @@
18 18
9. [virtualisation](#technology_virtualisation)
19 19
20 20
## coding
21
+- [arduino](coding/arduino)
21 22
- [git](coding/git)
22 23
- [svn](coding/svn)
23 24
- [vim](coding/vim)
coding/arduino.md
... ...
@@ -0,0 +1,38 @@
1
+# arduino
2
+
3
+## ide installation
4
+```
5
+pacman -S arduino arduino-avr-core
6
+usermod -aG uucp,lock pyratebeard
7
+modprobe cdc_acm
8
+```
9
+
10
+## ide configuration
11
+### maltronics
12
+* in preferences add the following url to 'Additional Boards Manager URLs'
13
+** https://raw.githubusercontent.com/jLynx/MalDuino_Boards/master/IDE_Board_Manager/package_malduino_index.json
14
+* in tools > Board: > select Boards Manager and install
15
+** Arduino AVR Boards
16
+** Maltronics Bad Board
17
+* in tools > Manager Libraries install
18
+** Mouse by Arduino
19
+* select Maltronics Lite in boards list
20
+* use [script converter][]
21
+* for UK keyboard download zip
22
+* open lite.ono
23
+ ```
24
+ arduino lite/lite.ono
25
+ ```
26
+* select Sketch > Upload (Ctrl+U)
27
+
28
+[ducky script][]
29
+
30
+[maltronics: how to script][]
31
+
32
+[hak5 payloads][]
33
+
34
+
35
+[script converter]: https://malduino.com/converter/
36
+[ducky script]: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Duckyscript
37
+[maltronics: how to script]: https://malduino.com/wiki/doku.php?id=scripting_howto
38
+[hak5 payloads]: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Payloads
coding/git.md
... ...
@@ -15,6 +15,11 @@ force push of a previous commit
15 15
git push -f origin <commit_id>:<branch>
16 16
```
17 17
18
+delete remote branch
19
+```
20
+git push --delete origin <branch>
21
+```
22
+
18 23
reset local branch after a forced-update (above)
19 24
```
20 25
git fetch
... ...
@@ -41,6 +46,24 @@ compare diff between two commits
41 46
git diff <commit>...<commit>
42 47
```
43 48
49
+stash
50
+```
51
+git stash
52
+git stash show
53
+```
54
+
55
+unstash
56
+```
57
+git stash pop
58
+```
59
+
60
+## using `hub`
61
+### pull requests
62
+```
63
+hub pr list
64
+hub pr checkout <num>
65
+```
66
+
44 67
[making a pull request][]
45 68
46 69
[branching and rebasing][]
misc/music.md
... ...
@@ -24,3 +24,4 @@
24 24
- virgin steele "life among the ruins"
25 25
- symfonia "pilgrim road"
26 26
- jag panzer "children of the sea"
27
+- chastain "the battle of nevermore"
technology/linux/general/sed.md
... ...
@@ -9,3 +9,9 @@ add character
9 9
```
10 10
s/regex/&n/
11 11
```
12
+
13
+convert first word before equals symbol from lower to upper
14
+_this is used in config files such as ifcfg to convert all variable names_
15
+```
16
+:%s/^[[:alpha:]_]\{1,\}=/\U&/
17
+```