Skip to content

Instantly share code, notes, and snippets.

View allangarcia's full-sized avatar

Allan Garcia allangarcia

View GitHub Profile
#!/bin/bash
# README: A more updated version is on the comments by (ashmna)[https://gist.github.com/ashmna]
# See at: https://gist.github.com/allangarcia/938b052a7d55d1652052e4259364260b?permalink_comment_id=4265898#gistcomment-4265898
# this is for tools required
brew update
brew install ninja
brew install cmake
#!/bin/bash
date +%s | sha256sum | base64 | head -c 10 ; echo
[Unit]
Description=Plex Media Directory
[Mount]
What=/dev/disk/by-uuid/a01e4f27-1f10-42dc-bf94-a4e48d7b9bfe
Where=/mnt/media
Type=ext4
Options=defaults
[Install]
@allangarcia
allangarcia / deluge-web.service
Last active April 6, 2017 13:50 — forked from boneskull/deluge-web.service
deluge-web systemd service
[Unit]
Description=Deluge BitTorrent Web Daemon
After=network-online.target
[Service]
User=debian-deluged
Group=debian-deluged
Type=simple
ExecStart=/usr/bin/deluge-web -c /var/lib/deluged/config -l /var/log/deluged/web.log -L info
Restart=on-failure
@allangarcia
allangarcia / cloud-config.yml
Last active August 29, 2015 14:24
Arquivo de configuração inicial para o Core OS do cluster do LAIS
#cloud-config
hostname: lais_n1
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCZXV8kleSrzTFpZG/z7NGq4b9dIU9bs8f3N8L/jNl7jYJxWSj3hU1oDLuXoIR+hzZgOjYXtyWmmWMtyepN94bbNJqLoRVnkiS/6Th2q6iMYau6HpMHNTAnwsdh/lybTFxFjdcj9PIXK5860F85Yt6CVKWFIQ6MWoRaKhN1Xo7fkdoLVCDLRWXFbdCFqFmj1zcewAp84Msec+F4IMWyOs6XpMpW0CLy6+wkTTp2+PgWnTblqn1/oNyldcBot0Xk9mYXlhhbw+TE3iNeRgrt21YCGbHPwYC4ysJUerEeFa0xpUQLZFjHkbKcqYJ1TJR7D5M8BHhmkwDDbUP/1HbgMC0z allan@allan-imac.local
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClv0enToRKURFjsrmYXRGjnRPeyam1kpQeVJzXteiDxrKAF4/AlMagJ1TMl4/5ohJk5twm9XmZys08u9u0sBN4CJjyJTr/JPjq1V8k9ZhHqjfHo7MUeCRKuzB8qr1jixbmq359rFcbackSWyfBsBjoC1FyWx+KUcka2G94HIZLu72i6Edhfh1aSgPclagz/sNSyL8WTtr+95NNmueUXf5ihDwD5dccsxx5DhYiETr8DF/ljcmLQJ3geRhB/sdEb84Vg1qfAVil6cTh1qcClQrvoAYY0054T8q2cYKpe4jGX7kyn/mLXRs8FlffSQyANumJyRwFBJumnLG/Fq3qPqrn allan@allan-macbook.local
coreos:
units:
- name: etcd2.service
command: start