Skip to content

Instantly share code, notes, and snippets.

GABeech / filter.php
Created Jan 19, 2020
Don't Redirect aws health checks
View filter.php
function filterHealthChecks($redirect_url, $request_url) {
$localIp = getHostByName(getHostName());
if(preg_match("http[s]?://{$localIp}/")) {
return false;
return true;
View gist:14c6ebacff2282cf7e6713e7ce90d37b
Ymj Ifwp Kfhynts rfij ny |f~ ytt jfx~ yt lzjxx ymj pj~3 ^tz xmtzqis,y mf{j jshtiji ymj xufhjx3 Ymfy rfpjx ny tg{ntzx |mfy ymj tkkxjy nx3 N j}ujhy rtwj kwtr ymj Ifwp Kfhynts3
)tkkxjy B :
ktwjfhm-)qnsj ns ljy2htsyjsy 3axhwnuyjw2tzy3y}y.
)sj|Qnsj B ''
ktwjfhm-)hmfw ns )qnsj3ytHmfwFwwf~-..
)hts{jwyji B `g~yjb`hmfwb)hmfw
GABeech / userchrome.css
Created Jan 3, 2019
Show Controls No Tabs
View userchrome.css
/* hides the native tabs */
.tabbrowser-tab {
visibility: collapse;
.tabs-newtab-button {
visibility: collapse;
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
GABeech / PsProfile.ps1
Created Jun 22, 2018
My Powershell Profile
View PsProfile.ps1
function Clear-DeletedBranches
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
[Parameter(Mandatory = $false)]
$GitDir = $PWD
$before = git branch -a
GABeech / ipxe3.txt
Created Jan 29, 2016
iPXE Script #3
View ipxe3.txt
echo IP Address: ${net0/ip}
GABeech / ipxe2.txt
Created Jan 29, 2016
iPXE Script #2
View ipxe2.txt
menu SRE iPXE boot Menu
item --gap Choices:
item local Boot From Local Hard Drive
item wds Windows Deployment Services
item c7 Centos 7
item c6 Centos 6 (Depricated)
item dd Dell Diagnostics CD
GABeech / ipxe1.txt
Created Jan 29, 2016
iPXE Script #1
View ipxe1.txt
menu SRE iPXE boot Menu
item --gap -- --------------- Local Hard Drive -----------------
item --key l Local Boot From Local Hard Drive
item --gap -- --------------- Installers -----------------------
item --key w Windows Deployment Services
item --key c Centos 7
item --key s Centos 6 (Depricated)
item --gap -- --------------- Diagnostics ----------------------
GABeech / DellDrac.cs
Created Jan 8, 2016
Query Dell Drac c#
View DellDrac.cs
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Runtime.InteropServices;
using System.Text;
GABeech / haproxy.cfg
Created Aug 21, 2014
Stack Exchange HAProxy
View haproxy.cfg
# This is an example of the Stack Exchange Tier 1 HAProxy config
# The only things that have been changed from what we are running are:
# 1. User names have been removed
# 2. All Passwords have been remove
# 3. IPs have been changed to use the example/documentation ranges
# 4. Rate limit numbers have been changed to randome numbers, don't read into them
userlist stats-auth
group admin users $admin_user
user $admin_user insecure-password $some_password