You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| #!/bin/bash | |
| PERMISSION="push" # Can be one of: pull, push, admin, maintain, triage | |
| ORG="orgname" | |
| TEAM_SLUG="your-team-slug" | |
| # Get names with `gh repo list orgname` | |
| REPOS=( | |
| "orgname/reponame" | |
| ) |
| #!/bin/sh | |
| # based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
| # delete all evicted pods from all namespaces | |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff state from all namespaces | |
| kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |
| func (repo *Repo) Pull() error { | |
| branch, err := repo.Branch() | |
| if err != nil { | |
| return err | |
| } | |
| // Get the name | |
| name, err := branch.Name() | |
| if err != nil { | |
| return err |
| type TestCallBack struct { | |
| } | |
| func (c *TestCallBack) Exec(o *Observable) { | |
| log.Println(o.Name) | |
| } | |
| type Callback interface { | |
| Exec(h *Observable) |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func decorator(f func(s string)) func(s string) { | |
| return func(s string) { | |
| fmt.Println("Started") |
| // | |
| // UIDeviceHardware.h | |
| // | |
| // Used to determine EXACT version of device software is running on. | |
| #import <Foundation/Foundation.h> | |
| @interface UIDeviceHardware : NSObject | |
| - (NSString *) platform; |
| $ git branch -r --merged | | |
| grep origin | | |
| grep -v '>' | | |
| grep -v master | | |
| xargs -L1 | | |
| awk '{split($0,a,"/"); print a[2]}' | | |
| xargs git push origin --delete |