Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@iamgabeortiz
iamgabeortiz / .gitignore
Last active December 21, 2018 00:18 — forked from octocat/.gitignore
Some common .gitignore configurations
.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
@iamgabeortiz
iamgabeortiz / WlanProdile.ps1
Created August 14, 2014 20:54
Removing Insecure Wireless Connections with PowerShell
#http://www.leeholmes.com/blog/2013/06/06/removing-insecure-wireless-connections-with-powershell/
function Get-WlanProfile
{
netsh wlan show all |
sls "^[\s]+Name\s+:" -Context 16 |
% {
$conn = [Ordered] @{}
$_.Line, $_.Context.PostContext[1], $_.Context.PostContext[15] | % {
$label,$value = $_ -split ‘:’
install.packages("dpylr")
install.packages("reshape2")
install.packages("ggplot2")
install.packages("shiny")
@iamgabeortiz
iamgabeortiz / my-boxstarter-script.txt
Last active August 29, 2015 14:02
My Default Development Boxstarter Script
## Boxstarter Settings
## http://bit.ly/boxstarternrurl?http://bit.ly/myboxstarterscript
## http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/iamgabeortiz/f43a071049f31542f2fb/raw/my-boxstarter-script.txt
Update-ExecutionPolicy Unrestricted
## Default Windows Settings
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-RemoteDesktop
Set-TaskbarOptions -Size Small -Lock -Dock Bottom
@iamgabeortiz
iamgabeortiz / marked-to-property.py
Last active August 29, 2015 14:01
Set a Property from a Marked Elements Underlying Column Data
## -------------------------------------------------------------------------------
## IronPython and SpotFire ##
from Spotfire.Dxp.Data import IndexSet
from Spotfire.Dxp.Data import RowSelection
from Spotfire.Dxp.Data import DataValueCursor
#Return selected value from table
def getSelection(dataTable,markingName,columnName):
values=DataValueCursoe.CreateFormatted(dataTable.Coumns[columnName])
selection=Document.Data.Markings[markingName].GetSelection(dataTable)
@iamgabeortiz
iamgabeortiz / create-mit-license-org.ps1
Last active August 29, 2015 14:01
If you need to create an MIT-License.org entry from Windows PowerShell, then here you go.
# --------------------------------------------------------------------------------
# Requires: Windows PowerShell v2.0
$url = "http://username.mit-license.org"
$string = '{"copyright": "Your Name, http://your_domain","url": `
"http://your_domain","email": "your_email","format":"html"}'
$wc = new-object System.Net.WebClient
$wc.Encoding = [System.Text.Encoding]::ASCII
$wc.UploadString($url, $string)
<#
@iamgabeortiz
iamgabeortiz / windows_server_backup_status.ps1
Last active August 29, 2015 14:01
A little PowerShell script to grab the backup status from multiple servers and outputs them to a log file.
<#
----------------------------------------------------------------------------------
Caveats
-Assumes you have Windows Server Backup Command Line components already installed
on the server you are connecting to.
#>
# Start logging
If ($Host.Name -ne "Windows PowerShell ISE Host") {
$timestamp = Get-Date -Format yyyyMMddHHmmmss
@iamgabeortiz
iamgabeortiz / external_links.js
Last active August 29, 2015 14:01
Open links external to your site in a new tab/window via jQuery.
puts 'Generating tag cloud...'
require 'rubygems'
require 'jekyll'
include Jekyll::Filters
options = Jekyll.configuration({})
site = Jekyll::Site.new(options)
site.read_posts('')