Skip to content

Instantly share code, notes, and snippets.

View fabiant7t's full-sized avatar

Fabian Topfstedt fabiant7t

View GitHub Profile
Note: The boostcript ARCH must be the same that your server architecture
$scw images --no-trunc -a -f type=bootscript
REPOSITORY TAG IMAGE ID CREATED REGION ARCH
x86_64_4_5_7_debug_3 <bootscript> 716da634-b7c3-45c8-9fd2-87ade5eeabe6 n/a fr-1 [x86_64]
x86_64_4_5_7_docker_4 <bootscript> aa9f03c9-5d0e-42bb-82b1-0a73e29501a0 n/a fr-1 [x86_64]
armv7l_4_5_7_apparmor_4 <bootscript> 5365dab9-2dbd-483c-8c59-a8f96fa68f06 n/a fr-1 [arm]
armv7l_4_5_7_docker_4 <bootscript> 6a2585eb-7273-472a-b277-5898bab8ad33 n/a fr-1 [arm]
armv7l_4_4_21_std_1 <bootscript> 5361da3d-43ea-466e-9e56-fc105db3ac9f n/a fr-1 [arm]
armv7l_Rescue <bootscript> a5485
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active July 30, 2025 02:08
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@olih
olih / jq-cheetsheet.md
Last active August 7, 2025 21:16
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@rosswd
rosswd / laptops.md
Last active June 22, 2024 23:10
Linux Laptops
@organisciak
organisciak / hterm_solarized.js
Last active July 14, 2019 09:23 — forked from russelldavies/hterm_solarized.js
Solarized for Mosh Chrome
// Solarized for Mosh Chrome
// Mosh does not seem to save profiles, so this sets the default 'mosh' profile.
// To reset, evaluate term_.prefs_.resetAll()
// Run in the JavaScript console of mosh_browser.html, which can be opened
// as explained here:
// https://github.com/rpwoodbu/mosh-chrome/wiki/FAQ#how-can-i-change-the-way-the-terminal-looks-font-color-etc
var htermProfiles = {
// Solarized Dark
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@sinkers
sinkers / freewheelvmap.py
Last active April 2, 2019 17:26
Generating a Freewheel VMAP 1.0 Ad Tag
import requests
import random
import xml.dom.minidom
'''
Simple script to simulate what needs to go in a Freewheel ad request
This example is for VMAP but what needs to be requested is similar on other response types e.g. FW Smart XML
To use Smart XML response just change the resp parameter to "xml"
'''
@damondouglas
damondouglas / Angular-Dart-Check-Lists.md
Last active April 27, 2017 06:45
Angular Dart Check Lists

Angular Dart Check List

The following shows what to watch out for when making Angular Dart applications. For more information about Angular Dart, see angulardart.org.

Table Of Contents

@kotnik
kotnik / small-dns-server.py
Created June 6, 2013 14:51
Example of how to create a DNS server in Python, based on Twisted libraries.
from collections import Mapping
from twisted.names import dns, server, client, cache
from twisted.application import service, internet
class MapResolver(client.Resolver):
def __init__(self, mapping, servers):
client.Resolver.__init__(self, servers=servers)

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: