Skip to content

Instantly share code, notes, and snippets.

View fishi0x01's full-sized avatar
💾
0x01

Karl Fischer fishi0x01

💾
0x01
View GitHub Profile
@fishi0x01
fishi0x01 / homebrew.md
Last active February 21, 2023 10:32
bump vsh version
  1. Install brew locally.
  2. Make sure this repo exists: $(brew --repository homebrew/core)
  3. Make sure the fork exists in $(brew --repository homebrew/core)
cd $(brew --repository homebrew/core)
brew bump-formula-pr --sha256 713d8f8901c7fc3b2c9c620ce928fa17e3b5a5f949d0dd37ad5ad48ae46dab4b --url https://github.com/fishi0x01/vsh/archive/refs/tags/v0.12.2.tar.gz vsh

You need a github API token -> the tool will generate a link to create one.

https://github.com/fishi0x01/k8s-manifests 98606b177fdbe4305035abd3d38dcf844d8cca0e
@fishi0x01
fishi0x01 / dashboard.tf
Created April 22, 2021 14:11
Terraform Datadog Debug
This file has been truncated, but you can view the full file.
terraform {
required_providers {
datadog = {
source = "DataDog/datadog"
version = "2.25.0"
}
}
}
resource "datadog_dashboard" "dashboard" {
@fishi0x01
fishi0x01 / luks-encryption.md
Last active January 5, 2022 18:28
Creating an encrypted drive with cryptsetup

Ensure to select the proper drive

fdisk -l
lsblk

Setup encryption

Assuming sdX is the device to encrypt

@fishi0x01
fishi0x01 / setup_rpi_openocd.md
Created February 13, 2021 09:36 — forked from tstellanova/setup_rpi_openocd.md
Setup rpi0 with openocd for flashing nrf52

Instructions for setting up a Raspberry Pi Zero for running OpenOCD specifically for the purpose of disabling Access Port Protection on nrf52 boards.

Build OpenOCD with CMSIS-DAP and GPIO support

The below script builds natively on the RPi0, and will take a very long time.

sudo apt install wget git autoconf libtool make pkg-config libusb-1.0-0 libusb-1.0-0-dev libhidapi-dev libftdi-dev libhidapi-dev telnet
git clone https://github.com/ntfreak/openocd
cd openocd
./bootstrap
#! /bin/bash
usage() {
echo "measureTraffic.sh <targetIP>"
}
if [ -z "$1" ]; then
usage
exit 1
fi
---
jenkins:
systemMessage: "Powered automagically by Groovy and Configuration-as-Code Plugin\n\n"
numExecutors: 5
crumbIssuer:
standard:
excludeClientIPFromCrumb: false
remotingSecurity:
projects = [
[name: "serviceA", cron: "@daily"],
[name: "serviceB", cron: "@hourly"],
[name: "serviceC", cron: "@daily"],
]
for(project in projects) {
folder("${project.name}")
node('master') {
stage('Checkout') {
// Clean workspace and checkout shared library repository on the jenkins master
cleanWs()
checkout scm
}
stage('Configuration') {
// set CasC config in master
sh('cp /var/jenkins_home/workspace/Admin/Configure/resources/config/configuration-as-code-plugin/jenkins.yaml /var/jenkins_home/jenkins.yaml')
@fishi0x01
fishi0x01 / keybase.md
Last active March 9, 2020 21:01
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: