Skip to content

Instantly share code, notes, and snippets.

@haad
haad / php-fpm.conf
Created November 13, 2019 15:28 — forked from sotarok/php-fpm.conf
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/home/sotarok/.phpenv/versions/5.4.0s). This prefix can be dynamicaly changed by using the
; '-p' argument from the command line.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
@haad
haad / cmd
Created November 15, 2017 15:26 — forked from eldondev/cmd
Because everyone needs a good preseed
wget -nc http://ftp.debian.org/debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux
wget -nc http://ftp.debian.org/debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
cp -nv ~/.ssh/id_rsa.pub .
qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display none
@haad
haad / kube.yaml
Created October 26, 2017 09:30 — forked from kamilhristov/kube.yaml
Example kops manifest
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
name: kube.kamilhristov.com
spec:
cloudProvider: aws
etcdClusters:
- etcdMembers:
- instanceGroup: master-1
name: master-1
# Add the each distro/profile pair only if the distro doesn't already exist
- name: check distro exists in cobbler
with_items: distros
command: cobbler distro report --name={{ item.name }}
register: distro_result
ignore_errors: true
changed_when: False
when: distros is defined
- debug: var=distro_result
#!/usr/bin/python
try:
import boto.ec2
except ImportError:
print "failed=True msg='boto required for this module'"
sys.exit(1)
def main():
argument_spec = ec2_argument_spec()
@haad
haad / gist:831c9e0ddb4615fd69dd
Last active August 29, 2015 14:14 — forked from hiroyuki-sato/gist:4564166
OpenAM ssoadm configuration

ssoadm Batch Example

Command

# ${SSOADM} do-batch -u amadmin -f ${PWDFILE}  -Z ${BATCH_FILE} --batchstatus ${BATCH_OUTPUT_FILE} 

Realm was created.