Skip to content

Instantly share code, notes, and snippets.

@joshuakfarrar
Last active December 11, 2015 04:28
Show Gist options
  • Save joshuakfarrar/4544868 to your computer and use it in GitHub Desktop.
Save joshuakfarrar/4544868 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Enable wheel group, if disabled, and add admins to it.
sed -i 's/^# %wheel\sALL=(ALL)\sALL$/%wheel\t\tALL=(ALL)\tALL/g' /etc/sudoers
sed -i 's/^wheel:x:10:root$/wheel:x:10:root,zipp/g' /etc/group
# Import Root CA cert, if we need it
echo "H4sICDg6LE8AA2Nl0kxrtQ0rYoT1VprjyDvg95dCm0vCw+dITHA9+65amX
CG9r5aTfpOwrlP0ciRBb0Hzwp9sjmvnnfOVJpHGK4otTv5UHsVRT+rpQKddvA0EZjoUsaXM70ei8
+7lXokfLmHSyJb2orxo/c5HJ4PTcS8VG99PR5UVYrzt94EJQiZ8npEMeub3QTsZvzUIBpetLacj4
V2uIjpN6q0iuj9398soufas398tawosgiuyt9paw3o8gihdssjagdhjsdkgha3igusdgjkha938f
wX0Ge1WQreJG9Lr16K7FYptDQaBoRXCoh8Bx9mlS1Zcf+N/PNvJUv8+wf/B7asdgasdgasdhad4dhX
SGGgBwAA" | base64 -d | gunzip > /etc/ssl/certs/uber1337hax.com.crt
# Import basic firewall rules
echo "H4sICG+D9VAAA2lwdGFibGVzAJWRQUvDQBCF7/kVD3oTtyRRqeQWk1VT2qakW3oQD0m6kg1Jdtms
Ff+9iWlBaxSEgRlm35v52JnggTdcp4bvkb1DKJNmFW9Jmx44Ds70ejqDbMBeOeZpA+cGjuO5sy7g
2s6VdfEiKsO15UWr9ZbBDwK6ZniyPfvZ8u7jZOcn4Vk33rIfUuJjGEAUTK5A6iGRvZLa4NYGKU+O
L+IarenQO92QE7rwGQ0v6Yb5d4to80jDcaOCyGs1/iZQyd9cR7bvW1d0dw7suuMTyg5xToOuIpqX
PDfkTZjiE4YUsjVEaVmITPTn6G2nH/yfMYiXy4hZEwSyVhXve3/d8APpXcKtBAIAAA==" | base64 -d | gunzip > /etc/sysconfig/iptables
# Restart firewall
/etc/init.d/iptables reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment