Skip to content

Instantly share code, notes, and snippets.

View Cyclenerd's full-sized avatar

Nils Cyclenerd

View GitHub Profile
@Cyclenerd
Cyclenerd / config.yaml
Last active April 16, 2024 08:52
AWS IoT Greengrass
---
system:
certificateFilePath: "/greengrass/v2/greengrass-nils_certificate.pem"
privateKeyPath: "/greengrass/v2/greengrass-nils_private.key"
rootCaPath: "/greengrass/v2/AmazonRootCA1.pem"
rootpath: "/greengrass/v2"
thingName: "greengrass-nils"
services:
aws.greengrass.Nucleus:
componentType: "NUCLEUS"
@Cyclenerd
Cyclenerd / ami.tf
Last active February 28, 2024 10:35
Amazon Machine Images (AMI) Snippets
provider "aws" {
region = "eu-central-1"
default_tags {
tags = {
terraform = "true"
}
}
}
# https://registry.terraform.io/providers/-/aws/latest/docs/data-sources/ami
@Cyclenerd
Cyclenerd / random_files.sh
Created April 11, 2023 12:33
Create random files
#!/usr/bin/env bash
for MY_COUNT in {0..1000}
do
MY_RANDOM=$((10 + RANDOM % 150))
MY_UUID=$(uuidgen)
echo "$MY_COUNT $MY_UUID $MY_RANDOM"
dd if="/dev/random" of="test/$MY_UUID" bs=1M count="$MY_RANDOM"
done
@Cyclenerd
Cyclenerd / main.py
Created November 8, 2022 20:23
Google Cloud Function for publish message to NTFY topic
# Copyright 2022 Nils Knieling
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@Cyclenerd
Cyclenerd / badges.md
Last active December 28, 2023 10:48
Bagdes

Badge: Google Cloud Badge: AWS

Badge: Terraform Badge: Packer Badge: Vault

Badge: Ansible

@Cyclenerd
Cyclenerd / Win_Contrast.txt
Created September 18, 2022 16:01
Bad USD: High Contrast
DELAY 300
ALT-SHIFT PRINTSCREEN
DELAY 300
ENTER
@Cyclenerd
Cyclenerd / Plz_lock_your_PC.txt
Created September 18, 2022 15:38
Bad USD: Please lock your PC
DELAY 2000
GUI r
DELAY 500
STRING notepad
DELAY 250
ENTER
DELAY 500
GUI UPARROW
DELAY 250
ENTER
@Cyclenerd
Cyclenerd / GoogeSheetsAutomation.js
Created April 15, 2022 19:26
Google Clout - Workspace - Assisting Spreadsheet Automation
function update_table() {
const sourceSheetName = "Source";
const destinationSheetName = "Destination";
const ss = SpreadsheetApp.getActiveSpreadsheet();
const [src, dst] = [sourceSheetName, destinationSheetName].map(s => ss.getSheetByName(s));
// update the status column in the source table with the word ???
const setStatus = ['D2','D3','D6'];
src.getRangeList(setStatus).setValue("???"); // TODO: Add status word here
// add the current date to the Date column in the destination table
const date = new Date();
@Cyclenerd
Cyclenerd / install-openvscode-server.sh
Created April 1, 2022 15:33
Install Open Visual Studio Code (VSCode) Server / Gitpod
#!/bin/sh
MY_LAST_VERSION_URL="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/gitpod-io/openvscode-server/releases/latest)"
echo $MY_LAST_VERSION_URL
MY_LAST_VERSION="${MY_LAST_VERSION_URL#https://github.com/gitpod-io/openvscode-server/releases/tag/openvscode-server-v}"
echo $MY_LAST_VERSION
MY_DOWNLOAD_URL="https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v${MY_LAST_VERSION}/openvscode-server-v${MY_LAST_VERSION}-linux-x64.tar.gz"
echo $MY_DOWNLOAD_URL
@Cyclenerd
Cyclenerd / hana-iaas-aws-azure-gcp.csv
Created January 26, 2022 18:53
Certified and Supported SAP HANA Hardware​ IaaS Platforms (Amazon Web Services, Microsoft Azure, Google Cloud Platform)
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2. in line 1.
Solution ;Vendor;CPU Architecture ;Memory;Size;TiB;IaaS Application Type ;Sockets ;vCPUs
S896OM;Microsoft Azure;Intel Cascade Lake SP;24.00;TiB;24,00;OLAP;16;896
S896OM;Microsoft Azure;Intel Cascade Lake SP;24.00;TiB;24,00;OLTP Scale-Out;16;896
o2-ultramem-896-metal;Google Cloud Platform;Intel Cascade Lake SP;24.00;TiB;24,00;OLTP;16;896
S896M;Microsoft Azure;Intel Cascade Lake SP;24.00;TiB;24,00;OLAP;16;896
S896M;Microsoft Azure;Intel Cascade Lake SP;24.00;TiB;24,00;OLTP Scale-Out;16;896
u-24tb1.metal;Amazon Web Services;Intel Cascade Lake SP;24.00;TiB;24,00;OLTP;8;448
S960m;Microsoft Azure;Intel Broadwell EX E7;20.00;TiB;20,00;OLTP;20;960
S672OM;Microsoft Azure;Intel Cascade Lake SP;18.00;TiB;18,00;OLAP;12;672
S672OM;Microsoft Azure;Intel Cascade Lake SP;18.00;TiB;18,00;OLTP Scale-Out;12;672