# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
[global]
workgroup = io-labs.de
log file = /var/log/samba/log.%m
max log size = 1000
This file contains hidden or 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/bash | |
| # truenas-ACME-desec-authenticator | |
| # Send POST request to e.g. https://auth.acme-dns.io/register to get your own credentials | |
| # see https://github.com/joohoi/acme-dns for more details. You can run your own acmedns server. | |
| ACMEDNS_API="https://auth.acme-dns.io" | |
| ACMEDNS_USERNAME="XXXX" | |
| ACMEDNS_PASSWORD="XXXX" | |
| ACMEDNS_SUBDOMAIN="XXXX" |
This file contains hidden or 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
| /** | |
| * Inspired by https://github.com/Azure-Samples/azure-cosmos-cassandra-java-retry-sample-v4/blob/master/java-examples/src/test/java/com/microsoft/azure/cosmos/cassandra/CosmosRetryPolicy.java | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) Jan Schmidle. All rights reserved. | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | |
| * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the | |
| * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to |
This file contains hidden or 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
| git config --global alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all" |
This file contains hidden or 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
| // store in controllers/test.js | |
| "use strict"; | |
| module.exports.test = function createToken(req, res, next) { | |
| res.end("OK"); | |
| }; | |
I hereby claim:
- I am bitcloud on github.
- I am bitcloud (https://keybase.io/bitcloud) on keybase.
- I have a public key whose fingerprint is B12B CAAB C57B 8307 516D 4F70 3C52 ACA8 D4F7 8E65
To claim this, I am signing this object:
This file contains hidden or 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/bash | |
| PROCOWNER=admin | |
| for PID in $(ps waux | grep afpd | grep -v $PROCOWNER | awk '{print $1}') | |
| do | |
| echo "==> checking pid $PID"; | |
| lsof -i | grep afp | grep -v $PROCOWNER | awk '{print $2}' | grep $PID > /dev/null | |
| if [ $? -ne 0 ]; | |
| then |
This file contains hidden or 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
| -- Code to connect to or update an arduino over wifi with an esp8266 (nodemcu lua firmware) | |
| -- Send a single 'B' char to switch the connection to update mode | |
| -- echo -n 'B' | nc 192.168.178.57 8080 ; avrdude -v -p atmega328p -c arduino -P net:192.168.178.57:8080 -D -U flash:w:code.hex:i | |
| -- there are more instructions to come, but thats it for now | |
| -- because there is no way of reaching the esp repl with this code running, there is an override. | |
| -- currently it delays the startup for 2 secs. In that timeframe you should pull the overridepin to GND to stop booting into redirect mode | |
| -- just using one gpio for triggering reset on the arduino and overriding the boot sequence into redirect mode of the esp |
NewerOlder