Skip to content

Instantly share code, notes, and snippets.

View caputomarcos's full-sized avatar
👽
ping!

Marcos Caputo caputomarcos

👽
ping!
View GitHub Profile

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@caputomarcos
caputomarcos / dokku_stackscript.sh
Created October 2, 2015 19:37 — forked from turley/dokku_stackscript.sh
Linode StackScript for creating a Dokku server
#!/bin/bash
# <UDF name="hostname" label="The hostname for the new Linode" example="apps">
# <UDF name="fqdn" label="The new Linode's Fully Qualified Domain Name" example="apps.example.com">
# <UDF name="adminuser" label="Username for new admin user (cannot be dokku)">
# <UDF name="adminpass" label="Password for new admin user">
# <UDF name="adminkey" label="SSH public key authorized for admin user (password SSH auth will be disabled)">
# <UDF name="dokkukey" label="SSH public key authorized for dokku user (used when deploying apps)">
# Turn off password authentication and root login for SSH
@caputomarcos
caputomarcos / tips.md
Last active March 26, 2017 07:24
This worked for me for a Ubuntu Server 14.04 guest VM (no GUI)

This worked for me for a Ubuntu Server 14.04 guest VM (no GUI):

Edit: also works with Ubuntu Server 16.04

1 Install dkms. From the guest run:

    sudo apt-get install dkms
@caputomarcos
caputomarcos / mongo_osx.md
Last active March 26, 2017 07:32
mongo auto start on OS X

Install with Homebrew

brew install mongodb

Set up launchctl to auto start mongod

$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents

/usr/local/opt/mongodb/ is a symlink to /usr/local/Cellar/mongodb/x.y.z (e.g., 2.4.9)

@caputomarcos
caputomarcos / vm.md
Last active December 26, 2023 11:08
Create Manage VirtualBox VMs from the Command Line

Create/Manage VirtualBox VMs from the Command Line

Note to self, here’s a quick recipe for creating a Virtual Machine using the VirtualBox command line,

Create the VM,

    VBoxManage createvm --name "io" --register
    VBoxManage modifyvm "io" --memory 512 --acpi on --boot1 dvd
 VBoxManage modifyvm "io" --nic1 bridged --bridgeadapter1 eth0
@caputomarcos
caputomarcos / aws_micro_service.py
Created March 27, 2017 02:19
aws_micro_service
import boto3
import pprint
"""
Create .env file
$ vim .env
------------------
access_key=xxxxxx
secret_key=xxxxxx
@caputomarcos
caputomarcos / tuiuiuadmin.entry.js
Created September 9, 2017 20:04
EM: tuiuiu/tuiuiuadmin/static_src/tuiuiuadmin/app
import { initExplorer } from 'tuiuiu-client';
/**
* Admin JS entry point. Add in here code to run once the page is loaded.
*/
document.addEventListener('DOMContentLoaded', () => {
const explorerNode = document.querySelector('[data-explorer-menu]');
const toggleNode = document.querySelector('[data-explorer-start-page]');
if (explorerNode && toggleNode) {
@caputomarcos
caputomarcos / ps1.py
Created May 30, 2019 03:14 — forked from webstory/ps1.py
Python and Nodejs with subprocess
#-*- coding: utf-8 -*-
import subprocess
if __name__ == '__main__':
ps = subprocess.Popen(['nodejs','ps2.js'], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
out = ps.communicate(input='http://www.daum.net'.encode())[0]
print(out.decode('utf-8'))
@caputomarcos
caputomarcos / README.md
Created December 5, 2021 01:04 — forked from doino-gretchenliev/README.md
Node-RED Radius custom authentication and authorization. #node-red #nodered #radius #authentication #javascript

Node-RED Radius custom authentication and authorization

Requirements

Installation

  1. Save user-authentication.js to <node-red>/user-authentication.js.
  2. Add the following line to setting.js:
@caputomarcos
caputomarcos / baron-samedit-heap-based-overflow-sudo.txt
Created December 29, 2021 19:54
Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)
Qualys Security Advisory
Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)
========================================================================
Contents
========================================================================