Skip to content

Instantly share code, notes, and snippets.

View FollowMeDown's full-sized avatar
🎯
Focusing

Deface FollowMeDown

🎯
Focusing
View GitHub Profile
@FollowMeDown
FollowMeDown / debian-jessie-kubernetes-1.3-manual-install-guide.md
Created July 12, 2018 14:57 — forked from apokalyptik/debian-jessie-kubernetes-1.3-manual-install-guide.md
Set up Kubernetes on 3 Debian Jessie virtual machines -- No magic

The Goal

Set up Kubernetes on 3 Debian Jessie virtual machines: One master. Two nodes. Additionally do this without any "magic" so that what is required to be running to make everything work is plain and obvious.

We will be using flannel for the inter-machine networking layer. Mainly because it is useful and it seems to be pretty popular.

The Setup

@FollowMeDown
FollowMeDown / gist:b48b60cdfe078cae9a8f6d589ca795b2
Created July 3, 2018 14:59 — forked from jorritfolmer/gist:e4bfb69b6d609542730b
.spec file to build Russell Stuart's pam-python on RHEL

pam_python.so on RHEL systems

pam_python.so is not readily available on RHEL systems. Here's how to create an RPM from Russell's tar.gz:

  1. download pam-python.1.0.4.tar.gz to ~/rpmbuild/SOURCES
  2. copy/paste pam-python.spec from below in ~/rpmbuild/SPECS/
  3. copy/paste pam-python-1.0.4-fix-compile-rhel.patch from below in ~/rpmbuild/SOURCES
  4. rpmbuild -bb ~/rpmbuild/SPECS/pam-python.spec

pam-python.spec

@FollowMeDown
FollowMeDown / capture_image.py
Created June 5, 2018 12:57 — forked from sharana04/capture_image.py
python script to automatically capture images from front and back camera.
import uiautomator,os,sys,datetime,time
from uiautomator import Device
print 'Getting Device Info'
os.system('adb devices > deviceinfo')
devinf = open('deviceinfo','rb')
devlines = devinf.readlines()
devinf.close()
for i in range(len(devlines)):
if 'device' not in devlines[i]:continue
@FollowMeDown
FollowMeDown / vmm_howto.md
Created December 23, 2017 20:26 — forked from tvlooy/vmm_howto.md
OpenBSD VMM howto

OpenBSD VMM howto

Setup

/etc/rc.conf.local

apmd_flags="-A"
dhcpd_flags=vether0
vmd_flags=
ntpd_flags="-s"