Some Icons used for testing
- Get the release from Kubernetes
$ kubectl get secret sh.helm.release.v1.<release>.v<version> -o yaml > release.yaml
- Open the
release.yaml
file in an editor and copydata.release
value (or use Bash skills) - Extract the release payload
$ echo <release value> | base64 -D | base64 -D | gunzip > release
- Open release file and change status from pending-rollback to deployed
This file contains hidden or 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/sh | |
subnets="10.1/16" | |
rules="/tmp/nat.rules" | |
echo "Clearing nat table..." | |
sudo pfctl -a com.apple/tun -F nat | |
echo "Generaring nat rules..." | |
echo > $rules |
This file contains hidden or 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 | |
# | |
# PostgreSQL Backup Script Ver 1.0 | |
# http://autopgsqlbackup.frozenpc.net | |
# Copyright (c) 2005 Aaron Axelsen <[email protected]> | |
# | |
# This script is based of the AutoMySQLBackup Script Ver 2.2 | |
# It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
# | |
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
I hereby claim:
- I am siavashs on github.
- I am siavashs (https://keybase.io/siavashs) on keybase.
- I have a public key whose fingerprint is 99B3 7FBE 5F9C B371 31A8 EFE0 1946 A9F5 C369 18B2
To claim this, I am signing this object:
This file contains hidden or 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 | |
# Author: Siavash Safi <[email protected]> | |
# Nexus artifact deployment script | |
# Original solution from https://support.sonatype.com/hc/en-us/articles/213465818-How-can-I-programatically-upload-an-artifact-into-Nexus- | |
groupId=`xmlstarlet sel -t -v '//_:project/_:groupId' pom.xml` | |
artifactId=`xmlstarlet sel -t -v '//_:project/_:artifactId' pom.xml` | |
version=`xmlstarlet sel -t -v '//_:project/_:version' pom.xml` | |
packaging=`xmlstarlet sel -t -v '//_:project/_:packaging' pom.xml` |
This file contains hidden or 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
# HELP http_request_duration_microseconds The HTTP request latencies in microseconds. | |
# TYPE http_request_duration_microseconds summary | |
http_request_duration_microseconds{handler="prometheus",quantile="0.5"} 9206.461 | |
http_request_duration_microseconds{handler="prometheus",quantile="0.9"} 11817.503 | |
http_request_duration_microseconds{handler="prometheus",quantile="0.99"} 12880.886 | |
http_request_duration_microseconds_sum{handler="prometheus"} 6.201126414000001e+06 | |
http_request_duration_microseconds_count{handler="prometheus"} 653 | |
# HELP http_request_size_bytes The HTTP request sizes in bytes. | |
# TYPE http_request_size_bytes summary | |
http_request_size_bytes{handler="prometheus",quantile="0.5"} 299 |
This file contains hidden or 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
Name: ip2location-c | |
Version: 7.0.0 | |
Release: 1%{?dist} | |
Summary: IP2Location C Library | |
Group: Development/Libraries | |
License: GPLv3+ | |
URL: http://www.ip2location.com/c.aspx | |
Source0: http://www.ip2location.com/downloads/%{name}-%{version}.tar.gz | |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
This file contains hidden or 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/sh | |
# | |
# PROVIDE: remote_syslog | |
# | |
. /etc/rc.subr | |
name="remote_syslog" | |
rcvar="${name}_enable" |
NewerOlder