Skip to content

Instantly share code, notes, and snippets.

View hansdg1's full-sized avatar

Hans Guthrie hansdg1

View GitHub Profile
@ivy
ivy / chasepdf2csv
Last active March 22, 2024 20:47
Convert Chase credit card statements from PDF to CSV. Useful for importing old transactions into QuickBooks Online/Self-Employed.
#!/usr/bin/env ruby
# chasepdf2csv -- Convert Chase credit card statements from PDF to CSV. Written
# to easily import older statements into QuickBooks Online/Self-Employed. Chase
# unfortunately only offers statements up to 6 months in the past, making it a
# huge chore to synchronize past transactions.
#
# How to Use
# ----------
# This script requires Ruby >2.0.0 and pdftotext. Copy this script somewhere and
# make it executable. Run it like any other command.
@JustinGrote
JustinGrote / Commvault.ps1
Last active March 11, 2024 21:24
Commvault REST API Commands I will make into a Module Someday
<#
Quickstart
------------------
Get-Help Connect-CVServer -detailed
Get-Help Invoke-CVCommand -detailed
Connect-CVServer mycommvaultserver -force -verbose
Invoke-CVCommand 'Client'
Invoke-CVCommand 'Client/136'
#>
@marcolussetti
marcolussetti / wikimedia-equivalent-domains-lastpass.txt
Created February 26, 2017 22:44
Wikimedia Equivalent Domains for LastPass
wikipedia.org,wiktionary.org,wikibooks.org,wikinews.org,wikiquote.org,wikisource.org,wikiversity.org,wikivoyage.org,wikimedia.org,mediawiki.org,wikidata.org
@boneskull
boneskull / deluged.service
Created January 16, 2017 15:56
deluged systemd service
[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target [email protected]
[Service]
User=boneskull
Group=dialout
Type=simple
ExecStart=/usr/bin/deluged -d -l /var/log/deluge/daemon.log -L info
TimeoutStopSec=300
@vMarkusK
vMarkusK / Konfig-ESXi.psm1
Created December 22, 2016 22:27
Sets the Basic settings for a new ESXi
function Konfig-ESXi {
<#
.NOTES
===========================================================================
Created by: Markus Kraus
Twitter: @VMarkus_K
Private Blog: mycloudrevolution.com
===========================================================================
Changelog:
2016.12 ver 1.0 Base Release
@dcnl1980
dcnl1980 / zabbix-server.sh
Created November 28, 2016 21:57
Zabbix Server Installation
#!/bin/sh
apt update && apt install wget htop curl nano ssh -y
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb && apt-get update
export DEBIAN_FRONTEND=noninteractive
apt install zabbix-server-mysql zabbix-frontend-php -y
@ferdhie
ferdhie / setup_ffmpeg.sh
Created October 27, 2016 08:00
Setup FFMPEG on Ubuntu
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev libtool libvorbis-dev pkg-config texinfo zlib1g-dev cmake mercurial nasm
mkdir ~/ffmpeg_sources
#yasm
cd ~/ffmpeg_sources
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar xzvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
make
@JustinGrote
JustinGrote / Get-VMGuestDiskUsage.ps1
Created August 10, 2016 02:30
Get VMware Guest Disk Utilization Report of Virtual Machines
#requires -version 3.0
#requires -pssnapin vmware.vimautomation.core
#Uncomment this on first run for initial connection. Unnecessary for re-runs
#connect-viserver d1vm-vc01,d2vm-vc01,d1vm-vcvdi01,d2vm-vcvdi01 -credential (get-credential)
$noDiskInfoVMs = @()
$vm = get-vm
$vm |
where guestid -notmatch 'windows7_64Guest' |
@Kovrinic
Kovrinic / addic7ed_srts.py
Created June 23, 2016 06:18
Clean addic7ed info from srt files
#!/usr/bin/env python
# Still writing this, but wanted to share progress before creating a repo for this project
import os
import re
import traceback
path = "Person of Interest - 05x13 - Return 0.LOL.English.C.orig.Addic7ed.com.srt"
####################################################################################################

System

uname -a     # Display Linux System Information
uname -r     # Display kernel release information
uptime       # Show how long the system has been running + load
hostname     # Show system host name
hostname -i  # Display the IP address of the host
last reboot  # Show system reboot history
date # Show the current date and time