Skip to content

Instantly share code, notes, and snippets.

View steffenmllr's full-sized avatar

Steffen Müller steffenmllr

View GitHub Profile
@dakanji
dakanji / Install_USB_Maker.sh
Last active February 24, 2025 17:21
Creates Bootable USB for Mac OS Lion to Monterey (Excluding Mavericks)
#!/usr/bin/env bash
# Install_USB_Maker.sh
# Copyright (c) 2020 - 2025 Dayo Akanji
# - [email protected]
# Portions Copyright (c) Jeff Geerling
# - https://github.com/geerlingguy/macos-virtualbox-vm/blob/master/LICENSE
#
# MIT License
@kevinkub
kevinkub / incidence.js
Last active December 4, 2024 22:48
COVID-19 Inzidenz-Widget für iOS innerhalb Deutschlands 🇩🇪
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
class IncidenceWidget {
constructor() {
this.previousDaysToShow = 31;
this.apiUrlDistricts = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=RS,GEN,cases7_bl_per_100k,cases7_per_100k,BL&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json`
this.apiUrlDistrictsHistory = (districtId) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/ArcGIS/rest/services/Covid19_hubv/FeatureServer/0/query?where=IdLandkreis%20%3D%20%27${districtId}%27%20AND%20Meldedatum%20%3E%3D%20TIMESTAMP%20%27${this.getDateString(-this.previousDaysToShow)}%2000%3A00%3A00%27%20AND%20Meldedatum%20%3C%3D%20TIMESTAMP%20%27${this.getDateString(1)}%2000%3A00%3A00%27&outFields=Landkreis,Meldedatum,AnzahlFall&outSR=4326&f=json`
this.stateToAbbr = {
@br3ndonland
br3ndonland / github-actions-notes.md
Last active May 31, 2025 11:18
Getting the Gist of GitHub Actions
@MastaAaron
MastaAaron / category-schema.js
Last active May 20, 2023 09:50
Sanity CMS: Infinitely-nestable Categories
export default {
name: `category`,
title: `Category`,
type: `document`,
fields: [
{
name: `name`,
title: `Category Name`,
type: `string`,
validation: Rule => Rule.required()
@TheHemantKaushik
TheHemantKaushik / flutter_tab_navigator.dart
Last active November 15, 2022 17:03
This Flutter app example show how to use bottom navigation bar with tabs inner navigation. Also, how to handle Android's back button to pop inner screens of tab and double tap bottom navigation item to pop all inner screens of a tab.
///
/// Example GIF image:
/// https://ibb.co/mbqF72Q
///
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
@cablespaghetti
cablespaghetti / ecr-cred-updater.sh
Last active May 24, 2024 06:14
Automatic Updating Amazon ECR Credentials in Kubernetes
#!/bin/bash
# Get directory of script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ $# -ne 1 ]]
then
echo "ERROR: This script expects the namespace name to be given as an argument"
echo "e.g. ./ecr-cred-updater.sh my-namespace"
exit 1
@bnjm
bnjm / Furniture3dModel.js
Created February 13, 2018 14:35
Loading a 3d model in React Native Arkit
// @flow
import { ARKit } from 'react-native-arkit'
import { Text, View } from 'react-native'
import { compose, lifecycle, onlyUpdateForKeys } from 'recompose'
import { unzip } from 'react-native-zip-archive'
import RNFetchBlob from 'react-native-fetch-blob'
import React from 'react'
import type { Point3D } from '../../../types'
@thetechnick
thetechnick / ignition.json
Last active June 22, 2023 17:46
Hetzner Cloud terraform coreos install
{
"ignition": {
"version": "2.0.0",
"config": {}
},
"storage": {
},
"systemd": {},
"networkd": {},
"passwd": {
@moppymopperson
moppymopperson / BasicSettings.md
Last active September 16, 2017 21:10
RaspberryPi Helpful Software Installations

Upgrading to the latest OS

  1. sudo apt-get update
  2. sudo apt-get full-upgrade

Setting host name on local network

  1. sudo raspi-config
  2. Choose 2. Hostname and enter new hostname
  3. sudo reboot

Setting up SSH

@brennanMKE
brennanMKE / EventEmitter.swift
Last active March 19, 2025 05:42
React Native Event Emitter for RCTEventEmitter in Objective-C and Swift
class EventEmitter
/// Shared Instance.
public static var sharedInstance = EventEmitter()
// ReactNativeEventEmitter is instantiated by React Native with the bridge.
private static var eventEmitter: ReactNativeEventEmitter!
private init() {}