Skip to content

Instantly share code, notes, and snippets.

View Man-Jain's full-sized avatar
🏖️
Working from home

Manank Patni Man-Jain

🏖️
Working from home
View GitHub Profile
Ursula - nucypher ursula run --dev --federated-only
Alice - nucypher alice run --dev --federated-only --teacher 127.0.0.1:10151
Bob - nucypher bob run --dev --federated-only --teacher 127.0.0.1:10151 --controller-port 4000
Enrico - nucypher enrico run --policy-encrypting-key <Key from Policy Creation> --http-port 5000
Create Policy -
POST
localhost:8151/derive_policy_encrypting_key/<Label>
@so0k
so0k / kubectl.md
Last active February 4, 2025 17:16
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@pulse-
pulse- / gist:8655893
Created January 27, 2014 19:44
Django migrate sqlite3 db to postgres - The easy way.
I had this really small problem today. I wanted to migrate one of my small django apps to use postgres, just to make everything easy to manage. Sqlite3 is perfectly fine for the amount of load, however I am really much faster at administering postgres than I am on sqlite3. So I decided to migrate the stuff over.
I tried a few approaches, but what ultimately worked the best and the fastest fo rmy particular problem was to do the following.
Use original SQLITE3 connection in settings.py
1. python manage.py dumpdata > dump.json
(I read some things here about some options you can pass, at the end what just worked was the following)
2. Change DB connection string in settings.py to POSTGRES