Skip to content

Instantly share code, notes, and snippets.

View vongrippen's full-sized avatar

Mike Cochran vongrippen

  • Telarray
  • Memphis, TN
View GitHub Profile
vagrant : INFO global: Vagrant version: 2.1.5
At line:1 char:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.1.5:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
$destinationDir = "C:\Users\$env:Username\eBooks\"
$URI = "https://blogs.msdn.microsoft.com/mssmallbiz/2017/07/11/largest-free-microsoft-ebook-giveaway-im-giving-away-millions-of-free-microsoft-ebooks-again-including-windows-10-office-365-office-2016-power-bi-azure-windows-8-1-office-2013-sharepo/"
$HTML = Invoke-WebRequest -Uri $URI
$Elements = $HTML.AllElements
$Parsed = $HTML.ParsedHtml
$table = $Parsed.getElementsByTagName("tbody")[0]
$tr = $table.getElementsByTagName("tr")
@vongrippen
vongrippen / memtech.website.md
Created April 6, 2017 16:28
memtech.website software
  • vi
  • vim
  • ee
  • emacs
  • nano
  • git
@vongrippen
vongrippen / A collection of PS file functions
Created May 12, 2016 15:30 — forked from talatham/A collection of PS file functions
A collection of Powershell file functions
Including:
* Deleting files and folders (incl criteria based - if older than xx days)
* Open and save file dialogs
* Hard disk usage reports

Keybase proof

I hereby claim:

  • I am vongrippen on github.
  • I am vongrippen (https://keybase.io/vongrippen) on keybase.
  • I have a public key ASAAyLY1DZsQ0kGPT7lMtJVS79xKCKkQr4XEFIgSF4UJvAo

To claim this, I am signing this object:

$(document).ready(function () {
var ticks = [
<% current_account.projects.each do |project| %>
'<%= project.tracker_project %>',
<% end %>
];
var data = [
<% new_exceptions, repeat_exceptions = [], [] %>
<%
current_account.projects.each do |project|
@vongrippen
vongrippen / smtp-proxy.py
Created October 9, 2012 14:44
Slow SMTP Proxy
from datetime import datetime
import asyncore
from smtpd import SMTPServer
import time
class EmlServer(SMTPServer):
def process_message(self, peer, mailfrom, rcpttos, data):
time.sleep(6)
pass
@vongrippen
vongrippen / init-setup.sh
Created October 11, 2011 18:57
My FreeBSD 9 Initial Setup
#!/usr/bin/env bash
portsnap fetch extract
cd /usr/ports/ports-mgmt/portmaster
make install clean
PORTMASTER="/usr/local/bin/portmaster --no-confirm --update-if-newer"
$PORTMASTER shells/bash shells/bash-completion shells/zsh editors/nano editors/vim lang/ruby19 ftp/curl misc/mc security/sudo sysutils/byobu devel/git devel/subversion textproc/libxml2 textproc/libxslt
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
@vongrippen
vongrippen / putty-kde.sh
Created June 16, 2011 20:48
PuTTY SSH Handler for KDE 4
#!/bin/sh
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# /usr/bin/putty.rb
# /usr/share/kde4/services/ssh.protocol
@vongrippen
vongrippen / rubygems.sh
Created March 15, 2011 20:04
RubyGems Ubuntu Install
#!/bin/bash
sudo apt-get install ruby-full
wget http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz -O /tmp/gems
tar -xzvf /tmp/gems -C /tmp
cd /tmp/rubygems-1.6.2
sudo ruby ./setup.rb
sudo dpkg-divert --rename --add /usr/bin/gem
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
sudo gem update --system