Skip to content

Instantly share code, notes, and snippets.

View elmer's full-sized avatar
:octocat:
exploring

Elmer Rivera elmer

:octocat:
exploring
View GitHub Profile

Keybase proof

I hereby claim:

  • I am elmer on github.
  • I am ubuntunero (https://keybase.io/ubuntunero) on keybase.
  • I have a public key ASDRRi0Jaxl-hnf6syfvopAv3zCcaUeyGbQQAqVNnwPA2Qo

To claim this, I am signing this object:

@elmer
elmer / cassandra.service
Created February 6, 2018 18:43 — forked from tobert/cassandra.service
A systemd unit for Cassandra
[Unit]
Description=Cassandra
After=network.target
[Service]
Type=forking
PIDFile=/var/lib/cassandra/cassandra.pid
User=cassandra
Group=cassandra
ExecStart=/usr/bin/cassandra -p /var/lib/cassandra/cassandra.pid
@elmer
elmer / pldt-home-fibr-an5506-04-fa-rp2616-advanced-settings.md
Created February 6, 2018 16:42 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

By default the PLDT HOME FIBR AN5506-04-FA RP2616 comes only with limited settings.

Hidden from the web interface are the rest of the router's capabilities and advanced settings.

We just need to enter the right url for the settings you're looking for.

We need to be logged in before we can do anything else, use your defined password if you already set the admin password.

# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.
#!/bin/bash
release=$( lsb_release -c | awk '{ print $2 }' )
curl -s -o /tmp/pp.deb http://apt.puppetlabs.com/puppetlabs-release-$release.deb && sudo dpkg -i /tmp/pp.deb
curl -s -o - http://apt.puppetlabs.com/pubkey.gpg | sudo apt-key add -
sudo apt-get clean && sudo apt-get update && sudo apt-get -y install puppet=3.8.2-1puppetlabs1
# Add fixture lib dirs to LOAD_PATH. Work-around for PUP-3336
#
if Puppet.version < "4.0.0"
Dir["#{fixture_path}/modules/*/lib"].entries.each do |lib_dir|
$LOAD_PATH << lib_dir
end
end
in puppet.conf add (not needed in recent puppet versions, 3.5+ or something):
cadir = $ssldir/ca { mode = 775 }
cacert = $cadir/ca_crt.pem { mode = 664 }
csrdir = $cadir/requests { mode = 775 }
signeddir = $cadir/signed { mode = 775 }
in apache site add (change /etc/puppet/ssl to your ssldir path):
@elmer
elmer / keybase.md
Created October 16, 2014 01:55
keybase.md

Keybase proof

I hereby claim:

  • I am elmer on github.
  • I am ubuntunero (https://keybase.io/ubuntunero) on keybase.
  • I have a public key whose fingerprint is BEF8 6563 FB45 4734 1CA0 B377 678D 7C2D 26E5 8931

To claim this, I am signing this object:

@elmer
elmer / morphlabs-key
Created May 6, 2014 02:55
morphlabs-key
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAv+ngbP8Kqk5WO4ucf5GXEy0fwUPtCua7jGO+bme/pdRnXSuwc2kV0pxQj0fhdEsTfIkMXgajgB7TV92/77v4Iktf+MHyLY1r81LhJiE//jXqZ6dopHz4WIJ17CCN4Ep5PeZkfK55hMw/g8VtYZvej2Rt/TrSqgKJiYdbRdPGueW/zh0bp5KPnAoPg/IQxoleWe2QbGwHtcWELSgd9G3cRNzuNOYEM9BRdGBitELw81RHXPUBiV44M3p2+mqKhaHkwj8eMOjz+nIl6ZLWTnXH1khST5f9AhvRMb+fYAeVPPTdS71qHh4pJrd6msdFIvGFpa1C4Dn5/Idq5gbhGyNgsQ== erivera@morphlabs.com
#!/bin/sh
[ -f /root/.bootstrap ] && exit 0
grep proxy /etc/yum.conf || echo "proxy=http://10.50.10.250:3128" >> /etc/yum.conf
echo '
[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.pregi.net/pub/Linux/CentOS/$releasever/os/$basearch/