Skip to content

Instantly share code, notes, and snippets.

View christoph-jerolimov's full-sized avatar

Christoph Jerolimov christoph-jerolimov

View GitHub Profile
@christoph-jerolimov
christoph-jerolimov / ContentWidth.java
Created November 25, 2013 00:51
PdfBox code... Dump before i realized that this is "just another apache project" i wouldn't use.
import java.io.IOException;
public interface ContentWidth {
public float getContentWidth(String text) throws IOException;
}
# Add npm-shrinkwrap.json to get a working react-native version (0.22)
rm -rf node_modules
npm install
# Optional: Remove it again to install your other dependencies
rm npm-shrinkwrap.json
npm install
npm start -- --reset-cache
@christoph-jerolimov
christoph-jerolimov / serverless-cli.yaml
Last active November 6, 2023 10:56
Draft of Quick starts that explains Knative functions CLI and IDE (will be continued by the Serverless team somewhere else...)
apiVersion: console.openshift.io/v1
kind: ConsoleQuickStart
metadata:
name: serverless-cli
spec:
displayName: Serverless CLI
description: todo
durationMinutes: 10
tags:
- knative
@christoph-jerolimov
christoph-jerolimov / delete-github-notifications.sh
Created November 5, 2025 12:40
Delete some spam GitHub notifications
#!/bin/bash
set -e
for i in {1..22}; do
echo $i
gh api "notifications?all=true&page=$i" | jq -r '.[] | select(.repository.full_name == "gitcoinco-n/gitcoin")'
gh api "notifications?all=true&page=$i" | jq -r '.[] | select(.repository.full_name == "gitcoinco-n/gitcoin") | .id' | \
xargs -I {} gh api -X DELETE 'notifications/threads/{}'
done