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
package main | |
import ( | |
"errors" | |
"strings" | |
"github.com/aws/aws-lambda-go/events" | |
"github.com/aws/aws-lambda-go/lambda" | |
jwt "github.com/dgrijalva/jwt-go" | |
"os" |
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
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Collections.Generic; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Table; | |
namespace azure.storage.crud.operations | |
{ |
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 | |
docker rm -vf $(docker ps -a -q) | |
docker rmi -f $(docker images -a -q) |
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
package cmd | |
import ( | |
"fmt" | |
"github.com/spf13/cobra" | |
) | |
func MakeInfo() *cobra.Command { |
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
# kubectl get secret,sa,role,rolebinding,services,deployments --namespace=kube-system | grep dashboard | |
kubectl delete deployment kubernetes-dashboard --namespace=kube-system | |
kubectl delete service kubernetes-dashboard --namespace=kube-system | |
kubectl delete role kubernetes-dashboard-minimal --namespace=kube-system | |
kubectl delete rolebinding kubernetes-dashboard-minimal --namespace=kube-system | |
kubectl delete sa kubernetes-dashboard --namespace=kube-system | |
kubectl delete secret kubernetes-dashboard-certs --namespace=kube-system | |
kubectl delete secret kubernetes-dashboard-key-holder --namespace=kube-system |
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
set markup csv on | |
set feedback off | |
set termout off | |
spool 'EXPORTED_RESULT.csv'; | |
SELECT * FROM FOO_TABLE; | |
spool off; |
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
exports.handler = async (event, context) => { | |
const readFileAsync = util.promisify(readFile); | |
const result = await readFileAsync('foo.json') | |
return result; | |
}; |
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
{ | |
"Version":"2012-10-17", | |
"Statement":[ | |
{ | |
"Effect":"Allow", | |
"Action":[ | |
"s3:ListBucket" | |
], | |
"Resource":"arn:aws:s3:::awsexamplebucket" | |
}, |
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
git remote add -f foo https://github.com/wingkwong/foo.git | |
git remote add -f bar https://github.com/wingkwong/bar.git | |
git remote add -f baz https://github.com/wingkwong/baz.git | |
git merge foo/master --allow-unrelated-histories | |
git merge bar/master --allow-unrelated-histories | |
git merge baz/master --allow-unrelated-histories |