I hereby claim:
- I am nucknorris on github.
- I am snuck (https://keybase.io/snuck) on keybase.
- I have a public key whose fingerprint is 623E A5D3 1F42 9819 6C40 D0CF 39F6 944D 42DE CE01
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"CONFIG": "BIBRM_CONFIG", | |
"START": { | |
"type": "LIST_ALL", | |
"linkTo": "Vertragsbasisdaten" | |
}, | |
"SUBJECTS": [ | |
{ | |
"uri": "bibrm:BasicContractData", | |
"pos": { |
{ | |
"CONFIG": "BIBRM_CONFIG", | |
"START": { | |
"type": "LIST_ALL", | |
"linkTo": "Vertragsbasisdaten" | |
}, | |
"SUBJECTS": [ | |
{ | |
"uri": "bibrm:BasicContractData", | |
"pos": { |
{ | |
"CONFIG": "BIBRM_CONFIG", | |
"START": { | |
"type": "LIST_ALL", | |
"linkTo": "Vertragsjahresdaten" | |
}, | |
"SUBJECTS": [ | |
{ | |
"uri": "bibrm:AnnualContractData", | |
"pos": { |
{ | |
"CONFIG": "BIBRM_CONFIG", | |
"START": { | |
"type": "LIST_ALL", | |
"linkTo": "Vertragsposition" | |
}, | |
"SUBJECTS": [ | |
{ | |
"uri": "bibrm:AnnualContractData", | |
"pos": { |
# Go into the project root | |
cd ~/my-project | |
# Create a branch which only contains commits for the children of 'foo' | |
git subtree split --prefix=foo --branch=foo-only | |
# Remove 'foo' from the project | |
git rm -rf ./foo | |
# Create a git repo for 'foo' (assuming we already created it on github) |
{ | |
"bold_folder_labels": true, | |
"caret_style": "smooth", | |
"color_scheme": "Packages/User/base16-eighties.dark (SL).tmTheme", | |
"font_face": "Source Code Pro", | |
"font_size": 12, | |
"ignored_packages": | |
[ | |
"CodeFormatter", | |
"Vintage" |
//equivalent of "select count (distinct fieldName) from someTable" | |
db.someCollection.aggregate([{ $group: { _id: "$fieldName"} },{ $group: { _id: 1, count: { $sum: 1 } } } ]) |
#!/bin/bash | |
FILES=/mnt/dumps/queue/* | |
for f in $FILES | |
do | |
echo "Processing $f file..." | |
java -jar LogReader tmr $f localhost | |
done |
final BasicDBObject query = new BasicDBObject(); | |
List<BasicDBObject> obj = new ArrayList<BasicDBObject>(); | |
obj.add(new BasicDBObject("name", person.getName())); | |
obj.add(new BasicDBObject("age", person.getAge())); | |
query.put("$and", obj); | |
BasicDBObject increment = new BasicDBObject(); | |
increment.put("$inc", new BasicDBObject().append("quantity", 1)); | |
increment.put("$set", new BasicDBObject("person", person)); |