Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Petersson Issen007

View GitHub Profile
@Issen007
Issen007 / package_updates_check.py
Last active Dec 3, 2019 — forked from yumminhuang/package_updates_check.py
Python script to check apt-get updates
View package_updates_check.py
#!/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 Nov 3, 2017 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
-- 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
You can’t perform that action at this time.