Skip to content

Instantly share code, notes, and snippets.

@GABeech
GABeech / filter.php
Created January 19, 2020 04:45
Don't Redirect aws health checks
function filterHealthChecks($redirect_url, $request_url) {
$localIp = getHostByName(getHostName());
error_log($redirect_url);
error_log($request_url);
if(preg_match("http[s]?://{$localIp}/")) {
error_log("Matched");
return false;
}
return true;
}
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
GABeech / userchrome.css
Created January 3, 2019 01:28
Show Controls No Tabs
/* 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
GABeech / PsProfile.ps1
Created June 22, 2018 19:10
My Powershell Profile
function Clear-DeletedBranches
{
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
param(
[Parameter(Mandatory = $false)]
[string]
$GitDir = $PWD
)
$before = git branch -a
@GABeech
GABeech / ipxe3.txt
Created January 29, 2016 16:01
iPXE Script #3
#!ipxe
dhcp
echo IP Address: ${net0/ip}
@GABeech
GABeech / ipxe2.txt
Created January 29, 2016 16:00
iPXE Script #2
#!ipxe
dhcp
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
GABeech / ipxe1.txt
Created January 29, 2016 16:00
iPXE Script #1
#!ipxe
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
GABeech / DellDrac.cs
Created January 8, 2016 16:36
Query Dell Drac c#
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
GABeech / haproxy.cfg
Created August 21, 2014 18:35
Stack Exchange HAProxy
# 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