One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/bin/bash | |
###################################################################### | |
#This is an example of using getopts in Bash. It also contains some | |
#other bits of code I find useful. | |
#Author: Linerd | |
#Website: http://tuxtweaks.com/ | |
#Copyright 2014 | |
#License: Creative Commons Attribution-ShareAlike 4.0 | |
#http://creativecommons.org/licenses/by-sa/4.0/legalcode |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
#It's not directly mentioned in the documentation on how to do this, so here you go. This command will tunnel everything including DNS: | |
sshuttle --dns -vr [email protected] 0/0 --ssh-cmd 'ssh -i /your/key/path.pem' |
#!/bin/bash | |
# Shell Script to Update AWS EC2 Security Groups | |
# Note that existing IP rules will be deleted | |
# CONFIG - Only edit the below lines to setup the script | |
# =============================== | |
# AWS Profile Name | |
profile="name1" |
Spent quite long time to try to figure out how to setup this Linux + Window Jenkins env. | |
My user case is, I only want to maintain Linux Jenkins setup, namely Linux on both Jenkins slaves and master. | |
The current setup is mixed Linux and Windows Jenkins slaves. | |
On the windows slave, we run a very simple powershell which does two things: psexec to another Windows target to run a bat and get the logs back | |
So my idea is to move this powershell to Linux slave to run. since powershell is supporting Linux (https://github.com/PowerShell/PowerShell) | |
But then I realize psexec is still needed on Windows then powershell is not the bottleneck for the change I want to do. | |
psexec is the key, which enable remote run bat on the Windows target from a Windows. | |
So we need to find a tool which allow us to run remote bat from a Linux. As if it is a powershell (as-is no need change) or re-write | |
into a shell script (just call the new tool , plus fetch log) |
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"golang.org/x/oauth2" | |
"golang.org/x/oauth2/google" |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
namespace: argocd | |
name: argocd-ingress | |
annotations: | |
kubernetes.io/ingress.class: alb | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80,"HTTPS": 443}]' | |
alb.ingress.kubernetes.io/certificate-arn: {{ your-acm-arn }} |
package main | |
import ( | |
"context" | |
"encoding/base64" | |
"flag" | |
"fmt" | |
"log" | |
container "google.golang.org/api/container/v1beta1" |