Skip to content

Instantly share code, notes, and snippets.

View seriald's full-sized avatar

Robert Fleming seriald

View GitHub Profile
@seriald
seriald / ttrss-on-ubuntu.md
Created March 12, 2016 03:26 — forked from yeokm1/ttrss-on-ubuntu.md
How to install Tiny Tiny RSS on Ubuntu

Adapted from here

  1. Install all packages
sudo apt-get update
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git
  1. Configure PostgresSQL
@seriald
seriald / ELK-on-ubuntu.md
Last active March 19, 2016 11:30
Configure Elasticsearch Logstash Kibana

Confirm and update Hostname

sudo nano /etc/hosts
sudo nano /etc/hostname

Install Java 8

sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update && apt-get -y install oracle-java8-installer
FROM debian:wheezy
MAINTAINER seriald@vitori.org
echo "deb http://www.ubnt.com/downloads/unifi/debian unifi4 ubiquiti" /etc/apt/sources.list
echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen" /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
sudo apt-get -q update
@seriald
seriald / debian_upgrade.yml
Created May 28, 2016 04:38 — forked from maethor/debian_upgrade.yml
Ansible playbook to update and upgrade Debian hosts
---
- hosts: all
sudo: yes
tasks:
- name: Update packages list
apt: update_cache=yes
when: ansible_os_family == 'Debian'
- name: List packages to upgrade (1/2)
@seriald
seriald / wordpress_on_apache
Created May 28, 2016 05:08 — forked from kdjomeda/wordpress_on_apache
Intro to ansible tutorial playbook
---
- hosts: webservers
tasks:
- name: Install Apache
apt: pkg=apache2 update_cache=true state=installed
- name: Install bunch of php packages
apt: pkg={{ item }} update_cache=true state=installed
with_items:
- php5
- php5-cli
sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev libqt4-dev git
Create a folder to download and compile the source files
mkdir makemkv.source
cd makemkv.source
Now, we will compile and install the required dependencies: ffmpeg and fdk-aac.
First up: fdk-aac. Download, untar, compile, and install:
sudo apt-get update
sudo apt-get install build-essential
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
close terminal
nvm install 4.2.2
nvm install v5.0.0 --reinstall-packages-from=4.2
nvm install iojs-v3.2.0
@seriald
seriald / renew.sh
Created August 13, 2017 22:00
Renew LetsEncrypt Certificates
#Stop NGINX service
echo Stopping Web Services
cd /etc/init.d
./nginx stop
#Renew CERTS
echo Renewing Certificates
cd ~/letsencrypt
@seriald
seriald / Audit_ACL.ps1
Created August 17, 2018 12:09
Audit Access Control List given a file path or UNC
$Share = Read-Host -Prompt 'Enter Full Path to Share' #Example: \\servername\share\subfolder
Get-childitem $Share -recurse | where{$_.psiscontainer} |
Get-Acl | % {
$path = $_.Path
$_.Access | % {
New-Object PSObject -Property @{
Folder = $path.Replace("Microsoft.PowerShell.Core\FileSystem::","")
Access = $_.FileSystemRights
Control = $_.AccessControlType
User = $_.IdentityReference
@seriald
seriald / AD_ExportGroup_OU.ps1
Created August 17, 2018 12:13
Export a list of users within an AD Group given an OU
$OU = Read-Host -Prompt 'Enter the OU' #Example: OU=IMB,OU=HQ,DC=intra,DC=pri
$Group = Read-Host -Prompt 'Enter the AD Group' #Example: XA_Restricted_Visio
$Users = Get-ADUser -filter * -SearchBase $OU | Select samaccountname
$Members = Get-ADGroupMember -Identity $Group | Select samaccountname
Clear-Content -Path "F:\Data\Scripts\Export\*"
ForEach ($User in $Users)
{
$Name = $User.samaccountname
If ($Members -Match $User.samaccountname)
{