This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g create-react-kotlin-app | |
create-react-kotlin-app organiser | |
cd organiser | |
git init | |
#setup repository on github | |
# - https://github.com/new | |
# - name it organiser | |
# - copy the url - something like - [email protected]:paven/organiser.git - use below | |
git remote add github [email protected]:paven/organiser.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
oldStash=b hash stash@{0} | |
git stash save --include-untracked | |
stash=b hash stash@{0} | |
mvn install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#$1 regexp | |
#$2 replacment | |
found=false; | |
#/bin/bash | |
##replace and write | |
while IFS='' read -r LINE || [ -n "$LINE" ]; do | |
if echo $LINE | grep -q "$1"; then | |
echo $LINE | sed "s/$1/$2/g"; | |
found=true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Dataset toDataset() { | |
Dataset dataset = new Dataset(); | |
for (Method method : Dataset.class.getMethods()) { | |
if (method.getName().startsWith("set")) { | |
Object value; | |
try { | |
String getName = setNameToGetName(method.getName()); | |
value = this.getClass().getMethod(getName).invoke(this, null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -emf | grep netbeans | grep java | grep -v "grep" | awk '{ print $2 }' | xargs kill -9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am paven on github. | |
* I am pvn (https://keybase.io/pvn) on keybase. | |
* I have a public key whose fingerprint is D7DB 40A3 CA7B E6B7 2C63 B490 3BD3 8E81 B4B5 D11A | |
To claim this, I am signing this object: |