Skip to content

Instantly share code, notes, and snippets.

View bombsimon's full-sized avatar
🍕

Simon Sawert bombsimon

🍕
View GitHub Profile
@zhuowei
zhuowei / unpackpdx.py
Last active January 2, 2024 10:43
Unpacks a .pdx/.pdz file from the PlayDate
import sys
import os
import zlib
with open(sys.argv[1], "rb") as infile:
indata = infile.read()
magic = b"Playdate PDX\0\0\0\0"
magic_new = b"Playdate PDZ\0\0\0\0"
if not indata[0:len(magic)] in [magic, magic_new]:
version: '3.6'
services:
spanner:
image: roryq/spanner-emulator:0.8.2
healthcheck:
test: |
curl --fail http://localhost:9020/v1/projects/test-project/instances/test-instance/databases/database1
timeout: 45s
interval: 1s
retries: 10
@bombsimon
bombsimon / README.md
Last active January 31, 2023 13:52
A modern toolbox

Shell toolbox

This is a list of the tools I've been or am using in my daily work. The main idea behind this list is to acknowledge new tools which heavy improves many users existing toolbox.

I love oneliners, I love awk, grep, sed and the whole family but it just... It's a bit last century! This list might help you improve your productivity!

@fnky
fnky / ANSI.md
Last active July 24, 2024 02:06
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@CJEnright
CJEnright / gzip.go
Last active July 1, 2024 21:17
Idiomatic golang net/http gzip transparent compression, an updated version of https://gist.github.com/bryfry/09a650eb8aac0fb76c24
package main
import (
"net/http"
"compress/gzip"
"io/ioutil"
"strings"
"sync"
"io"
)
@mattias-p
mattias-p / CodeReview.md
Last active October 24, 2018 13:47
Checklist for code reviews

Code review

  • Development process: [A checklist for checklists]
  • Document status: Draft
  • Last updated: 2018-10-24

Reviewing

Reliability

@TheRadziu
TheRadziu / ultimate-vita-comparison.md
Last active April 6, 2024 13:11
Ultimate Vita Comparison (Firmwares & Rips vs Dumps)

Due to so many misinformation, false claims and confusion that goes around the web I've decided to make this quick comparison of all most known backup enabling tools, hackable vita firmwares and which one you should be using and why.
Date of last update: 13.01.2020

NoNpDRM Rips vs Dumps

NoNpDRM Rips Vitamin / MaiDumpTool Dumps
All original files untouched
Support Retail DLCs
Support Ripped (NoNpDRM) DLCs
Support Dumped (Vitamin/Mai) DLCs 1
@tdwalton
tdwalton / 1passwordpwnedcheck.sh
Last active May 26, 2024 18:25
Check 1Password passwords against havibeenpwned.com password database.
#!/bin/bash
########################################################################################
# 1passwordpwnedcheck.sh - script to check 1password entries against known compromised
# passwords from haveibeenpwned.com
#
# Requirements:
# 1password CLI tool - https://app-updates.agilebits.com/product_history/CLI
# jq json parser - https://stedolan.github.io/jq/
#
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active July 24, 2024 07:10
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@sheharyarn
sheharyarn / request.js
Last active August 24, 2023 14:55
Axios Request Wrapper for React (https://to.shyr.io/axios-requests)
/**
* Axios Request Wrapper
* ---------------------
*
* @author Sheharyar Naseer (@sheharyarn)
* @license MIT
*
*/
import axios from 'axios'