Skip to content

Instantly share code, notes, and snippets.

View thizmo's full-sized avatar
💭
Exploring

thizmo

💭
Exploring
View GitHub Profile
@thizmo
thizmo / parse-error-when-using-httpie-and-jq-in-cron-entry.md
Last active December 6, 2023 15:24
parse error when using httpie and jq in cron entry

Intro

The following content is part of Bings Copilot and me. We had a long chat (for testing purposes) and this is the solution. Also a part of jq syntax was optimized (shortend, more specific) with the help of Copilot. Especially the last part with the select was a good example of how an AI can make things "elegant".

The starting point.

I wanted to have a solution to send me one value from a remote system to a Teams Channel aka webhook. Using just httpie and jq with cron

@thizmo
thizmo / readme.md
Created February 4, 2022 18:12 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

# This will be an update.
## How do your format the Gist
Well i will try out the new gist
Let us see what happens
# Format
## Two formats
@thizmo
thizmo / show_bash_hist_wo_linenumbers.txt
Last active October 28, 2018 16:19
Show bash history without line numbers
The command
```bash
history
```
will show the entries of last used commands.
With
```bash
history |cut -c 8-
```
@thizmo
thizmo / openmediavault-samba-prevent-smbv1
Last active October 24, 2018 07:50
Openmediavault with Samba 3.6.6 an Windows 10 SMBv1
Problem:
Windows 10 with Update 1809 will not mount an SMBv1 Share any more.
Solution for OMV with Samba 3.6.6:
Put these two lines into the "Extra options" on the Webinterface:
min protocol = SMB2
max protocol = SMB2
Restart samba.
@thizmo
thizmo / Anything on snap
Created September 7, 2018 08:00
Anything on snap
sudo snap find --section
No section specified. Available sections:
* developers
* featured
* finance
* games
* graphics
* music
* productivity
* server
@thizmo
thizmo / create-and-mount-sdcard-image.sh
Created September 7, 2018 07:58
How to create and mount an SD-Card image with dd
#!/bin/bash
# 07.09.2018
# Can be used a script or just as cli-oneliner
# First declare some variables
SDCARD=/path/to/sd-card
#[Example: SDCARD=/dev/mmcblk0]
IMG=/path/to/your/image
#[Example: IMG=/home/user1/my-sdcard.img]