Skip to content

Instantly share code, notes, and snippets.

View peon-pasado-zeitnot's full-sized avatar

Maciej Sawicki peon-pasado-zeitnot

View GitHub Profile
@peon-pasado-zeitnot
peon-pasado-zeitnot / gist:1242279
Created September 26, 2011 13:53
This D-trace script lists all run programs with their arguments - works with OSX
#!/usr/sbin/dtrace -C -s
#pragma D option quiet
proc::posix_spawn:exec-success,proc::__mac_execve:exec-success
{
this->isx64=(curproc->p_flag & P_LP64)!=0;
#define SELECT_64_86(x64, x86) (this->isx64 ? (x64) : (x86))
#define GET_POINTER(base, offset) (user_addr_t)SELECT_64_86(*(uint64_t*)((base)+sizeof(uint64_t)*(offset)), *(uint32_t*)((base)+sizeof(uint32_t)*(offset)))
void main (){
}
@peon-pasado-zeitnot
peon-pasado-zeitnot / ios_tamplate
Created March 10, 2013 16:42
Polidea ios project template
polid
@peon-pasado-zeitnot
peon-pasado-zeitnot / ios_tamplate
Created March 10, 2013 16:43
polidea project template
<?xml version="1.0" encoding="UTF-8"?>
<project>
<actions/>
<description/>
<logRotator>
<daysToKeep>90</daysToKeep>
<numToKeep>30</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
@peon-pasado-zeitnot
peon-pasado-zeitnot / ios_template
Created March 10, 2013 16:45
Polidea's iOS project template
<?xml version="1.0" encoding="UTF-8"?>
<project>
<actions/>
<description/>
<logRotator>
<daysToKeep>90</daysToKeep>
<numToKeep>30</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
for container in `docker ps -a|grep Exited| cut -f1 -d\ `; do docker rm $container; done
metrics:3.1.2.10
workflow-cps-global-lib:2.8
credentials-binding:1.12
credentials:2.1.14
variant:1.1
jclouds-jenkins:2.14
cloud-stats:0.12
durable-task:1.14
icon-shim:2.0.3
pipeline-stage-view:2.8
viroos@ubuntu-test:~/core-infra$ kubectl describe pvc mypvc
Name: mypvc
Namespace: default
StorageClass: default
Status: Pending
Volume:
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{"volume.beta.kubernetes.io/storage-provisioner":"kubernetes.io/azure-file"...
volume.beta.kubernetes.io/storage-provisioner=kubernetes.io/azure-disk
Capacity:
viroos@ubuntu-test:~/core-infra$ kubectl get sc -o yaml --export default
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{"storageclass.beta.kubernetes.io/is-default-class":"true"},"creationTimestamp":"2017-10-19T11:48:48Z","labels":{"kubernetes.io/cluster-service":"true"},"name":"default","namespace":"","resourceVersion":"220","selfLink":"/apis/storage.k8s.io/v1/storageclasses/default","uid":"7821c002-b4c3-11e7-9b54-000d3a03a7b3"},"provisioner":"kubernetes.io/azure-disk"}
storageclass.beta.kubernetes.io/is-default-class: "true"
creationTimestamp: null
labels:
viroos@ubuntu-test:~/core-infra$ kubectl get pvc mypvc -o yaml --export
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{"volume.beta.kubernetes.io/storage-provisioner":"kubernetes.io/azure-file"},"creationTimestamp":null,"name":"mypvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/mypvc"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"10Gi"}}},"status":{}}
volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/azure-disk
creationTimestamp: null
name: mypvc