Skip to content

Instantly share code, notes, and snippets.

View cconard96's full-sized avatar

Curtis Conard cconard96

  • CJ Development Studios
  • Pennsylvania, United States
  • 10:44 (UTC -05:00)
  • X @cconard96
View GitHub Profile
@cconard96
cconard96 / gitaliases.gitconfig
Created November 30, 2021 01:31
My Git Aliases
# Redate - Change commit date for the last commit to now
alias.redate commit --amend --reset-author --no-edit
# Last - Show details of last commit
alias.last log -n 1
# Current-Branch - Show the current branch namme
alias.current-branch rev-parse --abbrev-ref HEAD
@cconard96
cconard96 / hook.php
Created August 13, 2020 23:03
Remove default GLPI dashboard links (Revert to < 9.5 links) and add a new entry for the dashboards.
<?php
function plugin_menu94_install()
{
return true;
}
function plugin_menu94_uninstall()
{
return true;
// ==UserScript==
// @name Youtube Still Watching
// @namespace https:github.com/cconard96
// @version 1.0.0
// @description Yes I'm still watching/listening. Updates the last activity variable to the current timestamp every 5 seconds to prevent those "Still watching?" popups that YouTube shows while watching some types of videos (music mainly).
// @author Curtis Conard
// @match *://www.youtube.com/*
// @grant none
// ==/UserScript==
@cconard96
cconard96 / remove-cloud-init
Created November 10, 2019 23:34
Remove Ubuntu Cloud-Init
echo 'datasource_list: [ None ]' | sudo -s tee /etc/cloud/cloud.cfg.d/90_dpkg.cfg
sudo apt purge cloud-init
sudo rm -rf /etc/cloud/
sudo rm -rf /var/lib/cloud/
sudo reboot -h now