Skip to content

Instantly share code, notes, and snippets.

View furqanbaqai's full-sized avatar
🎯
Focusing

Muhammad Furqan furqanbaqai

🎯
Focusing
View GitHub Profile
@furqanbaqai
furqanbaqai / stomp_example.py
Created January 9, 2018 18:35 — forked from tdpreece/stomp_example.py
stomp.py example
# Python 2.7.6
# stomp.py v4.1.5 (https://pypi.python.org/pypi/stomp.py)
import time
import stomp
class MyListener(stomp.ConnectionListener):
def on_message(self, headers, message):
print('MyListener:\nreceived a message "{}"\n'.format(message))
@furqanbaqai
furqanbaqai / .bashrc
Created August 4, 2019 18:17 — forked from pythoninthegrass/.bash_aliases
WSL Ubuntu .bashrc
# SOURCES:
# http://unix.stackexchange.com/a/122188
# https://natelandau.com/my-mac-osx-bash_profile
# https://jonsuh.com/blog/bash-command-line-shortcuts
# https://news.ycombinator.com/item?id=8159771
# .bashrc: https://gist.github.com/evdokimovm/67e4fcd938af98528aa108574626e522
bash -c zsh
# Verify that shell is interactive
@furqanbaqai
furqanbaqai / clean.md
Created June 12, 2020 06:03 — forked from Kevinrob/clean.md
Clean up microk8s registry
registry=localhost:32000
repositories=$(curl ${registry}/v2/_catalog)
for repo in $(echo "${repositories}" | jq -r '.repositories[]'); do
  echo $repo
  tags=$(curl -sSL "http://${registry}/v2/${repo}/tags/list" | jq -r '.tags[]')
  for tag in $tags; do
    echo $tag
    curl -v -sSL -X DELETE "http://${registry}/v2/${repo}/manifests/$(
 curl -sSL -I \