Skip to content

Instantly share code, notes, and snippets.

View Cyclenerd's full-sized avatar
:shipit:

Nils Cyclenerd

:shipit:
View GitHub Profile
@Cyclenerd
Cyclenerd / github-markdown.md
Created January 4, 2025 20:59
GitHub Markdown

:octocat: GitHub Markdown

Note

Highlights information that users should take into account, even when skimming.

Tip

Optional information to help a user be more successful.

Important

Crucial information necessary for users to succeed.

@Cyclenerd
Cyclenerd / cpuinfo
Created November 1, 2024 10:03
Google Axion
processor : 0
BogoMIPS : 2000.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd4f
CPU revision : 1
@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 March 25, 2025 15:36
Bagdes

Badge: Google Cloud Badge: Firebase Badge: AWS Badge: Hetzer

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();