Skip to content

Instantly share code, notes, and snippets.

Matt Slay mattslay

Block or report user

Report or block mattslay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mweisel
mweisel / Get-DiskFree.ps1
Last active May 21, 2020
PowerShell advanced function (script cmdlet) to query, retrieve, and display local drive/disk information. (https://binarynature.blogspot.com/2010/04/powershell-version-of-df-command.html)
View Get-DiskFree.ps1
function Get-DiskFree
{
[CmdletBinding()]
param
(
[Parameter(Position=0,
ValueFromPipeline=$true,
ValueFromPipelineByPropertyName=$true)]
[Alias('hostname')]
[Alias('cn')]
@shamp00
shamp00 / BootCampControlPanel.cmd
Created Oct 9, 2012
Access the BootCamp ControlPanel from Windows 8. Run as Administrator.
View BootCampControlPanel.cmd
@echo off
runas /trustlevel:0x20000 "C:\Windows\System32\AppleControlPanel"
if %ERRORLEVEL% neq 0 goto error
goto OK
:ERROR
echo.
echo Are you sure you are running from a shortcut as Administrator?
pause
View capybara.md

Capybara

save_and_open_page

Matchers

have_button(locator)
@jamiepenney
jamiepenney / bootstrap.rb
Created Feb 14, 2012
Form builder for Twitter Bootstrap v2 form elements
View bootstrap.rb
# This file goes in config/initializers
require 'bootstrap_form_builder'
# Make this the default Form Builder. You can delete this if you don't want form_for to use
# the bootstrap form builder by default
ActionView::Base.default_form_builder = BootstrapFormBuilder::FormBuilder
# Add in our FormHelper methods, so you can use bootstrap_form_for.
ActionView::Base.send :include, BootstrapFormBuilder::FormHelper
You can’t perform that action at this time.