Skip to content

Instantly share code, notes, and snippets.

View VertigoRay's full-sized avatar
🔌
😏

Raymond Piller VertigoRay

🔌
😏
View GitHub Profile
@jgornick
jgornick / gist:208754
Created October 12, 2009 21:14
PHP: Capture phpinfo() Output
<?php
function pinfo() {
ob_start();
phpinfo();
$data = ob_get_contents();
ob_clean();
return $data;
}
@soemarko
soemarko / theme.html
Created November 26, 2011 16:18
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->
@taterbase
taterbase / system-beep.js
Created July 21, 2012 05:01
System Beep in Node.js
function alertTerminal(){
console.log("\007");
}
@samrocketman
samrocketman / sslTest.java
Created November 1, 2013 18:28
A java file which will aide in testing certificate validation of a service.
//javac 1.6.0_31
/*
Compile:
javac sslTest.java
Usage (similar to telnet):
java sslTest somehost someport
e.g.
java sslTest my.gitlabhost.com 443
@gpkvt
gpkvt / config.php
Last active September 16, 2017 03:23
SaltStack: Install phpVirtualBox
<?php
class phpVBoxConfig {
/* Username / Password for system user that runs VirtualBox */
var $username = 'vbox';
var $password = 'CHANGE_ME';
/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = 'http://localhost:18083/';
@nohwnd
nohwnd / Uninstall-Pester.ps1
Last active July 5, 2024 03:59
Remove built-in version of Pester 3 (or -All) from Windows 10 Program Files and Program Files (x86).
#Requires -RunAsAdministrator
function Uninstall-Pester ([switch]$All) {
if ([IntPtr]::Size * 8 -ne 64) { throw "Run this script from 64bit PowerShell." }
#Requires -RunAsAdministrator
$pesterPaths = foreach ($programFiles in ($env:ProgramFiles, ${env:ProgramFiles(x86)})) {
$path = "$programFiles\WindowsPowerShell\Modules\Pester"
if ($null -ne $programFiles -and (Test-Path $path)) {
if ($All) {