View config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* (Optional) Define RGB settings in your config.h */ | |
#ifdef RGBLIGHT_ENABLE | |
# define RGBLIGHT_ANIMATIONS | |
# define RGBLIGHT_HUE_STEP 8 | |
# define RGBLIGHT_SAT_STEP 8 | |
# define RGBLIGHT_VAL_STEP 8 | |
# define RGBLIGHT_LIMIT_VAL 150 | |
# define RGBLIGHT_SLEEP | |
// # define RGBLIGHT_LAYERS // We do NOT need the layers! | |
#endif |
View changeRemoteUrl.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
directoryContainingAllRepos="" # directory containing all git repo's | |
oldGitRemoteServer="" # current remote server url for example gitlab.com | |
newGitRemoteServer="" # new remote server url for example git.example.com | |
cd $directoryContainingAllRepos | |
find * -maxdepth 0 -type d \( ! -name . \) -print | while read dir | |
do | |
cd $dir | |
if [ -d ".git" ] | |
then | |
remoteUrl1="$(git config --get remote.origin.url)" |
View attach_elastigroup_to_eks.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Spotinst Elastigroup for Amazon EKS' | |
Parameters: | |
AccessToken: | |
Type: String | |
Description: Provide Spotinst API Token |
View OpenWithSublimeText3.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
View check_csr.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# define the shared secret we will accept to authenticate identity | |
SHARED_SECRET="your the best" | |
# capture the certname (hostname) used for the request | |
CERT_NAME=$1 | |
# feed STDIN (file descriptor 0) to the openssl command and pipe | |
# the output to grep to get the sharedSecret supplied by the agent | |
# capturing the value in a variable called AGENT_SECRET |
View gist:1f1a139ea1b2e55b834761cf987fb80a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create the KV config: | |
docker run traefik \ | |
storeconfig \ | |
--consul \ | |
--consul.prefix="traefik" \ | |
--consul.watch \ | |
--consul.endpoint="CONSUL_IP:8500" \ | |
--consulcatalog=true \ | |
--consulcatalog.endpoint="CONSUL_IP:8500" \ |
View traefik.pp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installs and configures the Traefik.io reverse proxy, for TLS-offloading and | |
# automatic Let's Encrypt SSL management. | |
# | |
# Requirements: | |
# - Module https://forge.puppet.com/praekeltfoundation/traefik and dependencies | |
# - gem 'toml-rb' installed on Puppet Master | |
class profiles::traefik { | |
file { '/var/lib/traefik/': | |
ensure => 'directory', | |
owner => 'root', |
View coreos-efs-cloud-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
write-files: | |
- path: /etc/conf.d/nfs | |
permissions: '0644' | |
content: | | |
OPTS_RPC_MOUNTD="" | |
users: | |
- name: XYZ | |
groups: |
View gist:522aed9ddfaaff46b261712f1f9651f6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################ | |
# Speedup DPKG and don't use cache for packages | |
############################################################ | |
# Taken from here: https://gist.github.com/kwk/55bb5b6a4b7457bef38d | |
# | |
# this forces dpkg not to call sync() after package extraction and speeds up | |
# install | |
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup | |
# | |
# we don't need and apt cache in a container |
View perf.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var perfBar = function(budget) { | |
window.onload = function() { | |
window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; | |
var timing = window.performance.timing, | |
now = new Date().getTime(), | |
output, loadTime; |
NewerOlder