Skip to content

Instantly share code, notes, and snippets.

@zukko78
zukko78 / Activate Office 2019 for macOS VoL.md
Created November 8, 2020 07:45 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@zukko78
zukko78 / sed cheatsheet
Created November 24, 2020 19:56 — forked from cvega/sed cheatsheet
sed cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@zukko78
zukko78 / billing-budgets-cloudwatch.tf
Created November 26, 2020 01:51 — forked from so0k/billing-budgets-cloudwatch.tf
Swatmobile - AWS Bootstrap gists
resource "aws_budgets_budget" "cloudwatch" {
provider = "aws.billing"
name = "budget-cloudwatch-monthly"
budget_type = "COST"
limit_amount = "1000"
limit_unit = "USD"
time_period_end = "2087-06-15_00:00"
time_period_start = "2017-07-01_00:00"
time_unit = "MONTHLY"
@zukko78
zukko78 / git-pull-all
Created February 3, 2021 02:03 — forked from grimzy/git-pull-all
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@zukko78
zukko78 / kubedf
Created April 17, 2021 21:23 — forked from redmcg/kubedf
Bash script to show k8s PVC usage
#!/usr/bin/env bash
KUBEAPI=127.0.0.1:8001/api/v1/nodes
function getNodes() {
curl -s $KUBEAPI | jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\
@zukko78
zukko78 / nginx_deployment.yaml
Created June 28, 2021 20:58 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
@zukko78
zukko78 / 00_play.yml
Created December 11, 2021 05:08 — forked from halberom/00_play.yml
ansible - convoluted json_query foo - reducing a nested dict to just bits we can use
---
- hosts: localhost
connection: local
gather_facts: False
tasks:
# - include_vars: jsonfile.json
#
# - debug:
# var: ansible_devices
#
@zukko78
zukko78 / kube-router-cfg.yaml
Created January 19, 2022 20:52 — forked from bzub/kube-router-cfg.yaml
kubeadm kube-router troubleshooting
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-router-cfg
namespace: kube-system
labels:
tier: node
k8s-app: kube-router
data:
cni-conf.json: |
global:
scrape_interval: 60s
external_labels:
monitor: 'example'
rule_files:
- /etc/prometheus/config/*.rules
scrape_configs:
@zukko78
zukko78 / ingres.yaml
Created July 4, 2022 17:00 — forked from houstondapaz/ingres.yaml
ingress nginx configuration snippet
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Server:SEU_SERVER";
more_set_headers "cache-Control: no-cache, no-store";
more_set_headers "pragma: no-cache";
if ($request_uri ~* \.(?:ico|css|js|gif|jpe?g|png|svg|woff2|woff|ttf|eo|mp3)$) {
more_set_headers "cache-control: public, must-revalidate, proxy-revalidate";
more_set_headers "pragma: public";
expires max;
}
rewrite ^/SUB_PATH(/?)(.*)$ /$2 break;