Skip to content

Instantly share code, notes, and snippets.

View adamxp12's full-sized avatar

Adam Blunt adamxp12

View GitHub Profile
{
"trainServices":
[
{
"previousCallingPoints": null,
"subsequentCallingPoints":
[
{
"callingPoint":
[
@adamxp12
adamxp12 / windows-hyperv.json
Created September 27, 2018 13:33
Hyper-V dashboard for grafana
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
:root {
--ytd-masthead-height: 45px !important;
--ytd-margin-6x: 12px !important;
--ytd-watch-flexy-max-player-width: 100% ;
}
ytd-browse[guide-persistent-and-visible] ytd-two-column-browse-results-renderer.ytd-browse {
width: calc(100% - 30px) !important;
max-width: none !important
@adamxp12
adamxp12 / youtubelesswhitespace.css
Created March 30, 2018 10:32
YouTube Polymer less whitespace. Stylish
ytd-browse[persistent-guide] ytd-two-column-browse-results-renderer.ytd-browse {
width: calc(100% - 35px);
}
ytd-app {
--app-drawer-width: 230px;
}
#sections.ytd-guide-renderer > .ytd-guide-renderer:first-child {
padding: inherit;
This config creates a simple SSID with WPA2 encryption and is tested on a Cisco 1231 and 1131
This config will work on dual radio unit's like the 1142 but will need an extra section for int dot111 and the dot111 must have same subinterfaces
dot11 vlan-name voip vlan 16
dot11 ssid Amazing VOIP
vlan 16
authentication open
authentication key-management wpa
@adamxp12
adamxp12 / SEPxxxxxxxxxxxx.cnf.xml
Last active August 10, 2022 16:37
Cisco 79x1/7970 config file example
<device>
<deviceProtocol>SIP</deviceProtocol>
<sshUserId>cisco</sshUserId>
<sshPassword>cisco</sshPassword>
<ipAddressMode>0</ipAddressMode>
<devicePool>
<dateTimeSetting>
<dateTemplate>D/M/Ya</dateTemplate>
<timeZone>GMT Standard/Daylight Time</timeZone>
Copy-Item -Path "\\arnoldv2\iso\Windows disks\en_windows_10_enterprise_x64_dvd_6851151.iso" -Destination c:\en_windows_10_enterprise_x64_dvd_6851151.iso;
This powershell command is used to copy from a server in this case arnoldv2 to the local C: drive on a Hyper-V core
run this on the Hyper-V server using powershell
You might argue saying that you should just use the UNC path directly in Hyper-V manager but even after following every blog post on google I couldnt get it past the "Permision to open attachment" error and this method results in a faster install time as its not streaming ISO over network
@adamxp12
adamxp12 / changejdk.sh
Created October 5, 2016 20:35
Change mac JDK for terminal
export JAVA_HOME=`/usr/libexec/java_home -v '1.7*'`

Keybase proof

I hereby claim:

  • I am adamxp12 on github.
  • I am admblnt (https://keybase.io/admblnt) on keybase.
  • I have a public key whose fingerprint is 804A FAF3 A38E EB39 C35E 7ED1 5E3B 8445 672A C197

To claim this, I am signing this object:

@adamxp12
adamxp12 / .htaccess
Created March 1, 2016 19:12
Force SSL through htaccess when behind a proxy like varnish
# Force SSL when infront of a proxy like nginx or varnish
# Easier to do it in apache than at the proxy side as varnish is a pain 100% of the time to configure
# and no point configuring it in nginx as thats only the SSL terminator, at least in my setup
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://adamxp12.com/$1 [R,L]