Skip to content

Instantly share code, notes, and snippets.

View rverrips's full-sized avatar

Roy Verrips rverrips

View GitHub Profile
@rverrips
rverrips / tracert-to-csv.cmd
Last active August 29, 2015 14:01
Echo Traceroute to CSV using SQLite3
@echo off
Rem Set Environment and cleanup
c:
cd\tracert
del trace.txt
del trace.sql
del trace.out
Rem Generate the Tracefile
tracert -d 65.221.28.106 > trace.txt
$newpath="C:\new\place\for\Hyper-V"
get-vm | % { move-vmstorage $_ -DestinationStoragepath $($newpath+"\"+$_.VMName)}
@rverrips
rverrips / check_wsus.cmd
Created April 29, 2014 12:03
Reset WSUS Auth Key on PC's that were mirrorred without running SYSPREP
@echo off
:: check_wsus.cmd
::
:: Logon script that checks if workstation token exists in wsus-check$
:: If it exists, simply exit, but if not, clears WINDOWSUPDATE registry keys.
::
:: Last updated by Roy Verrips (roy@verrips.org) on 30th January 2014
::
@rverrips
rverrips / gist:7412492
Created November 11, 2013 12:29
HP Script to enable ssh and disable telnet
### put the switch ip address in lines 3 and 17 ###
### put the username in to lines 4 and 18 and the password into lines 5 and 19 ###
telnet 10.1.0.11
admin
### put your password here ###
configure terminal
crypto key generate ssh rsa
ip ssh
ip ssh filetransfer
aaa authentication ssh login local none
/** In Microsoft SQL with unixtime ... do **/
Select DATEADD(second, @Unixtime-Variable, {d '1970-01-01'})
@rverrips
rverrips / gist:5992217
Last active December 19, 2015 17:38
Google Static Image Syntax
http://maps.googleapis.com/maps/api/staticmap?zoom=16&size=600x300&sensor=true&markers=25.279139,51.551230
@rverrips
rverrips / gist:5992215
Last active December 19, 2015 17:38
Google Maps Link Syntax
maps.google.com/maps?q=25.279139,51.551230
@rverrips
rverrips / index.php
Created April 5, 2013 05:34 — forked from AleksJev/index.php
Guessing Game
<? session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Adapt</title>
<style type="text/css">
.num{
font-size: 244px;
height: 270px;
@rverrips
rverrips / connie.txt
Created April 3, 2013 17:20 — forked from joejag/connie.txt
Connie Talk on Talking
Not "Have to present" -> "Get to present"
No reporting, no informating
resonating influencing
"How do people respond to your presentations?" (walk out, ask too many follow up questions, what actions do they take)
"there is nothing normal about presenting"
Prioritize the content
Judge the audience by: "where do they spend their time, energy and money"
When mixed audience: