Skip to content

Instantly share code, notes, and snippets.

View alexs77's full-sized avatar

Alexander alexs77

View GitHub Profile
@alexs77
alexs77 / passwd
Created February 7, 2022 12:24
/etc/passwd of SailfishOS
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
@alexs77
alexs77 / json-test.json
Last active January 23, 2022 11:40
Test JSON
{ "encrypted": false, "folders": [ { "id": "XXXXXXX", "name": "XXXXXXX" }, { "id": "XXXXXXX", "name": "XXXXXXX" }, { "id": "XXXXXXX", "name": "XXXXXXX" }, { "id": "XXXXXXX", "name": "XXXXXXX" }, { "id": "XXXXXXX", "name": "XXXXXXX" } ], "items": [ { "id": "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX", "organizationId": null, "folderId": null, "type": 1, "name": "XXXXXXX", "notes": null, "favorite": false, "login": { "uris": [ { "match": null, "uri": "XXXXXXX" } ], "username": "XXX@XXXX.XXX", "password": "XXXXXXX", "totp": null }, "collectionIds": null }, { "id": "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX", "organizationId": null, "folderId": null, "type": 1, "name": "XXXXXXX", "notes": null, "favorite": false, "login": { "uris": [ { "match": null, "uri": "XXXXXXX" } ], "username": "XXX@XXXX.XXX", "password": "XXXXXXX", "totp": null }, "collectionIds": null } ] }
@alexs77
alexs77 / _gnome-shell_extension.yml
Created December 8, 2021 09:28
Add entry to Gnome dconf array, eg. for enabling or disabling a gnome shell extension
# Usage:
# ansible.builtin.include_tasks: _gnome-shell_extension.yml
# loop:
# - { name: "Display Name",
# flag: flag_from_host_var_file,
# src: source url to download from,
# uuid: uuid to enable or disable,
# state: "present" to enable, "absent" to disable }
- name: "gnome | extension | {{ item.name }} | Enabling | create extension directory"
@alexs77
alexs77 / diff -u "example test with http.json" "example test without http.json".patch
Created December 1, 2021 13:03
Azure Standard Web Tests - with and without http status code check
--- "/tmp/example test with http.json" 2021-12-01 13:58:15.174891220 +0100
+++ "/tmp/example test without http.json" 2021-12-01 14:01:31.609020588 +0100
@@ -4,4 +4,4 @@
"parameters": {
- "webtests_example_1337_test_with_http_adv_example_alert_name": {
- "defaultValue": "example 1337 test with http-adv-example-alert",
+ "webtests_example_1338_test_without_http_adv_example_alert_name": {
+ "defaultValue": "example 1338 test without http-adv-example-alert",
"type": "String"
@@ -14,3 +14,3 @@
@alexs77
alexs77 / standard-webtest.tf
Created November 22, 2021 09:23
Creating a "Standard (preview) test" in Terraform using azurerm_resource_group_template_deployment
data "azurerm_resource_group" "this" {
name = "Your Resource Group"
}
data "azurerm_application_insights" "this" {
name = "Application Insights Name"
resource_group_name = data.azurerm_resource_group.this.resource_group_name
}
resource "azurerm_resource_group_template_deployment" "tls_cert_ttl_webtest_yellow" {
@alexs77
alexs77 / 1-Info.txt
Created October 7, 2021 05:23
Ich bin kein Antivaxxer, ich habe alle Impfstoffe genommen, die ich je nach meinem Arzt sollte, aber ich fühle mich bei Covid-Impfstoffen seltsam. Ich habe das Gefühl, dass sie nicht genug getestet wurden (dauert bei anderen Impfstoffen Jahre). Können Sie meine Sorgen über die langfristigen Auswirkungen entlarven?
deepl.com Übersetzung von https://covid19.quora.com/I-am-not-an-antivaxxer-I-took-all-vacines-I-ever-should-according-to-my-doctor-but-I-feel-strange-about-covid-vacines
@alexs77
alexs77 / My Dashboard (4).json
Last active January 9, 2023 23:49
Azure Dashboard Template File "database.tpl"
{
"properties": {
"lenses": {
"0": {
"order": 0,
"parts": {}
}
},
"metadata": {
"model": {}
@alexs77
alexs77 / Generate-Random-Numbers.sh
Last active June 18, 2021 10:11
testing temperatur
#!/bin/bash
count="$1"
min="$2"
max="$3"
echo "$count"
for ((i=1; i<=count; i++)); do
printf "%s " "$(($RANDOM%($max-$min+1)+$min))"
done
@alexs77
alexs77 / README.md
Created June 17, 2021 13:39
Simple Bicep file creating a Virtual Machine, including Virtual Network and NIC

Bicep 💪

Simple Bicep file, which creates a Virtual Machine (Ubuntu 18.04) on Azure.

Invocation

resource_group_name="something"
az deployment group create -c --mode Complete -g "$resource_group_name" --template-file vm.bicep --parameters params.json

Keybase proof

I hereby claim:

  • I am alexs77 on github.
  • I am alexs77 (https://keybase.io/alexs77) on keybase.
  • I have a public key ASB_BsrKOACldGrR1trtt784X2sRoP4XndonT67S1FUThQo

To claim this, I am signing this object: