Skip to content

Instantly share code, notes, and snippets.

View Inkimar's full-sized avatar

Ing Erl Inkimar

  • Stockholm
  • 05:10 (UTC -12:00)
View GitHub Profile
@Inkimar
Inkimar / gist:ba4c45a6e922010f8f16f8ad0be90512
Created April 5, 2024 14:12
tillgång till följande via wikipediabiblioteket
om du har ..
@Inkimar
Inkimar / gist:640e40182551a58bd61c2de0dbf1a942
Created March 29, 2024 13:04
2024, Spelschema Allsvenskan
Hammarby matcherna
@Inkimar
Inkimar / gist:b7f7a0753397ca9a98875e42849b004c
Created February 24, 2024 18:36
Windows, powershell, PS, find port 8080 and kill it (netstat, taskkill,PID)
FIND IT:
PS C:\Windows\System32\WindowsPowerShell\v1.0> netstat -aon | findstr 8080
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 15552
TCP 127.0.0.1:8080 127.0.0.1:50164 TIME_WAIT 0
KILL IT:
PS C:\Windows\System32\WindowsPowerShell\v1.0> taskkill /PID 15552 /F
@Inkimar
Inkimar / gist:1629ba0434a3665c96c382c56352da4c
Last active February 10, 2024 23:06
raspberry pi 5, Home Assistant , docker-compose
Running on Debian 12 (bookworm)
Questions asked:
if you check out this gist, there you can see me docker-compose.yml ( https://gist.github.com/Inkimar/1629ba0434a3665c96c382c56352da4c?permalink_comment_id=4888824#gistcomment-4888824) - Here you can see that my 'homeassistant' depend_on my 'zigbee2mqtt' and that 'zigbee2mqtt' depends_on my 'mosquitto' - I think this is an ok setting. That my next step is to configure the MQTT to Mosquitto, not sure if I do this in my home-assistant dashboard or do this from the config-file/s .
https://www.youtube.com/watch?v=I3T--IezqqI
@Inkimar
Inkimar / gist:2981f376033b1de26c4fa733b05b3f12
Created February 8, 2024 18:05
automation guy , iceman
Automation Guy:
https://www.homeautomationguy.io/blog/docker-tips/configuring-the-mosquitto-mqtt-docker-container-for-use-with-home-assistant
@Inkimar
Inkimar / wildfly8.1- standalone
Last active December 20, 2023 09:28
jboss-cli setting a datasource
Testing with 5.1.38 ( mysql-connector-java-5.1.38-bin.jar 5.1.38 )
~log in to admin~
$./bin/jboss-cli.sh --connect
~before you start, take a snapshot of the configuration :~
~snapshot is saved in -> /wildfly/standalone/configuration/standalone_xml_history/snapshot~
[domain@localhost:9999 /] :take-snapshot()
@Inkimar
Inkimar / gist:4b73c49361e781f2e4743107948e898c
Created October 6, 2023 13:21
chatgpt 3.5 and a 4 days trip to Seoul
The Question is
I'm planning a 4-day trip to Seoul. Can you suggest an itinerary that doesn't involve popular tourist attractions?
ChatGPT
@Inkimar
Inkimar / plants.txt
Created September 24, 2023 13:55
plants
plants
@Inkimar
Inkimar / gist:c68f2e62fd20b288f473950573857fd4
Last active June 8, 2023 10:43
bash script, HTTP-STATUS is 200 or NOT
a bash-script for checking if a website is up (HTTP STATUS == 200) , if not, then send an email.
- token is needed for gmail,
- - see here (1) https://support.google.com/mail/answer/185833?hl=en or (2) https://web.archive.org/web/20230521225549/https://support.google.com/mail/answer/185833?hl=en (that is internet-archive is (1) is not available)
1. a bash-script ends with 'sh' -> ```bash-script-name.sh```
2. you need to make the script executable by running `chmod +x bash-script-name.sh`
date = 2023-06-08