Skip to content

Instantly share code, notes, and snippets.

View jkehelwala's full-sized avatar

Janani Kehelwala jkehelwala

View GitHub Profile
@jkehelwala
jkehelwala / clearspace
Created August 30, 2021 16:55
Clean space in Ubuntu
#!/bin/bash
## References: https://itsfoss.com/free-up-space-ubuntu-linux/
function remove_snap_revs() {
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done
@jkehelwala
jkehelwala / JsonCycle.pyw
Last active August 30, 2021 15:42
Quickly Minify and Beautify JSON Content
#!/usr/bin/python
import sys
import json
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import QSize, QPoint, Qt
from PyQt5.QtWidgets import QMainWindow, QLabel, QWidget, QDesktopWidget, QHBoxLayout, QVBoxLayout, qApp, \
QPlainTextEdit, QPushButton
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.