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 () { | |
const second = 1000, | |
minute = second * 60, | |
hour = minute * 60, | |
day = hour * 24; | |
//I'm adding this section so I don't have to keep updating this pen every year :-) | |
//remove this if you don't need it | |
let today = new Date(), | |
dd = String(today.getDate()).padStart(2, "0"), |
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
* { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
html, | |
body { | |
height: 100%; | |
margin: 0; |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
labels: | |
k8s-app: metrics-server | |
name: metrics-server | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole |
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
library: | |
- title: The Alchemist | |
author: Paulo Coelho | |
year: 1988 | |
- title: Moby Dick | |
author: Herman Melville | |
year: 1851 | |
- title: Pride and Prejudice | |
author: Jane Austen | |
year: 1813 |
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
-----BEGIN OPENSSH PRIVATE KEY----- | |
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn | |
NhAAAAAwEAAQAAAYEAiQ5x1EZ/E6zuHkjbG/9qYJ0cP2juCjCD1dU3Bt4xh8RBUMqwUlxt | |
Nh8yO2lUCyfC2GKpS0vtUeoHT3oT6zo7KwzlXXmXLRA4F8uZiigWDsF2dpvfN+iG+jBD10 | |
63QQUMUjlNRHx/44quc9KEkh1WQoVRCmbRobLOFc6vTfwlqIC5rklSQOUl6tjnyGMJg8oE | |
8cogCNTKzeTM+5NzpeCNG0iakpQv+lh4MsoEpBZ7C7vRwfXYP6OyleB6LEilTOoWLdWHzm | |
anGTyhBrAReu8GN7sAtj3INj2izl0yVnFLosxOBCR8ufs+M71rYhzLm+gtAw/+eEiTDHcH | |
qNcEEQo1L+ZQhvkNATYuv+7Ru7mHdrn9Mk4h844gqgYP9IjNHPWEnCV3fk5SvSUGDR3E0i | |
fvDhMGgixUskOGWEThU/yR22fnVwR67L2SWLvbeUZJ6B82Ph5m07YUKipJ4GE3WKVsbQkw | |
dONYR5aIHfTTvBbT1OKgp8ixSRSKw+oCAiULozRpAAAFoOKUNVzilDVcAAAAB3NzaC1yc2 |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC5t3fpFO6Hyjm0vv9WxuW7DH/v+ed0mOTlZbVLF9IAp/bqdnNT/fKlpWzm+Rj++u4o+P+OXsoZ+55QR4CWodVFGLQLI85UaHmCDusqUOQmWCaCayYkJeMCs/jz30NiE1TMyUIS7BqkFc8GZRb6AtJfMiADQ9QDQb/EEH4So/Y57kmatkz/Xy+UP/Zhc8AeIFHSH6jyqWGXhKmAbtssGWEO+MdlYIX+5Sm02HMWZ4/bJGxZvZ/m5KjtWL0IzoIUfwy4m7pKIIax84T1589VC/ygoR38U7P5pb7+WQqztKKCMEq5iKWMwC1jpGrOp47xO8qw8yn0SUtUdUWCfM0NDEjANqWuPbjb0ev9x23iMjNCyg3jcG1GerGBvVE2L6/u0zv5Hg9gg6RIEdlIXVU63JcgdAxpFcyVSe2vuOpgQQa2RHpNRl84RV1FA6OMPPMFQbE24TKIb+9w9NLSj/5gX56K3Gkjv763Gg+b3P228lKBeKlgED+vQM/iN0fQ1yfWnfU= medival@DreamWyse.local |
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 | |
sudo apt-get -y update | |
sudo apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 |
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 | |
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl | |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - | |
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | |
sudo apt-get update && sudo apt-get install terraform -y | |
terraform -install-autocomplete |
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
http { | |
server { | |
listen 8080; | |
server_name localhost; | |
charset UTF-8; | |
# Avoid CORS and reverse proxy settings | |
# [1] xhr request: http://localhost:8080/api/xxx/yyy/zzz | |
# [2] /api/xxx/yyy/zzz | |
# [3] http://your-dev-server.example.com/api/xxx/yyy/zzz |
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 | |
OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}') | |
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g') | |
LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)" | |
METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)" | |
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL) | |
YELLOW="\033[1;33m" | |
RED="\033[0;31m" | |
ENDCOLOR="\033[0m" |
NewerOlder