Skip to content

Instantly share code, notes, and snippets.

View Issen007's full-sized avatar

Christian Petersson Issen007

View GitHub Profile
@Issen007
Issen007 / package_updates_check.py
Last active December 3, 2019 07:19 — forked from yumminhuang/package_updates_check.py
Python script to check apt-get updates
#!/usr/bin/env python
#coding=utf-8
import apt
import apt_pkg
from time import strftime
import os
import subprocess
import sys
@Issen007
Issen007 / git-clearHistory
Created November 3, 2017 09:09 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git