Skip to content

Instantly share code, notes, and snippets.

View fliedonion's full-sized avatar

Takahiro KITAHARA fliedonion

View GitHub Profile
@fliedonion
fliedonion / Git cleanup repository
Created June 5, 2024 16:07 — forked from boywijnmaalen/Git cleanup repository
Deletes all dangling commits, objects and blobs
# empty the stash
$ git stash clear
# objects can also be reached through the reflog.
# while branches record the history of some project, reflogs record the history of these branches.
# if you amend, reset etc. commits are removed from the branch history
# but git keeps them around in case you realize that you made a mistake.
# reflogs are a convenient way to find out what destructive (and other) operations were performed
# on a branch (or HEAD), making it easier to undo a destructive operation.
@fliedonion
fliedonion / test-pxssh.py
Last active November 14, 2020 17:26 — forked from jquast/test-pxssh.py
Fork for Update source for python3 and my pxssh testing.
##!/usr/bin/env python3
import os
import sys
from pexpect.pxssh import pxssh as PXSSH
import getpass
class Debug_PXSSH(PXSSH):
def sendline(self, input='') -> int: