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
using System; | |
public class LifeAsWeKnowIt : IDisposable | |
{ | |
void Life() | |
{ | |
bool isAlive = true; | |
do | |
{ | |
try |
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
Lets Encrypt + Nginx + aspnet core => docker | |
https://glenmccallum.com/ |
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
https://pipedream.com | |
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
docker run -e TZ=Europe/Stockholm x:x | |
Good tips: | |
https://runnable.com/blog/9-common-dockerfile-mistakes | |
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Very#Secret#Password' -p 1433:1433 -d microsoft/mssql-server-linux:latest | |
MONGO: | |
docker run -p 27017:27017 -d -v $PWD/data/bin:/data/bin mongo |
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
Expose local .net core appliation. | |
- comment out app.UseHttpsRedirection(); first | |
ssh -R 80:localhost:5000 serveo.net |
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
To control the Xiaomi S50 2nd gen vaccum cleaner from Athom Homey (or some custom API) you need the IP and the TOKEN that the mobile app uses to connect. | |
Getting the Token involves (as of 2018-12-27): | |
- Downgrade mobile app to version 5.0.19 using apkmirror.com (The newer version does not save the token in its database) | |
-- Select you normal region and normal acocunt | |
- Set phone in developer and debug mode. Connect it using USB Cable. | |
- Use ADB Backup (using the Android SDK) or the MiToolkit 1.6 to backup the Mi Home application. On a modern phone you will probably have to select a password. | |
-- If using adb directly and not MiToolkit this is the command: |
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
docker run -P -d jboss/wildfly /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0 | |
docker exec -it xxxx bash | |
/wildfly/bin/add-user | |
8080 = runtime | |
9990 = admin console |
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
Updated gitignore AFTER and need to remove files | |
git rm -r --cached . | |
git add . | |
Ta bort large file efter att den är committad: | |
git filter-branch --tree-filter 'rm -rf path/to/your/file' HEAD | |
git push |
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
FHIR Resource Editor | |
Create (or edit) FHIR resources | |
http://docs.smarthealthit.org/fred/ | |
Forge FHIR Profile Editor | |
Create Profiles etc. | |
http://fhir.furore.com/Forge | |
FHIR Repository for profiles, extensions etc. | |
https://www.simplifier.net |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |