Skip to content

Instantly share code, notes, and snippets.

View rogfut's full-sized avatar
📚
always learning

Roger Futrell rogfut

📚
always learning
  • Greater Seattle Area
View GitHub Profile
@ryangatchalian912
ryangatchalian912 / uninstall-node.sh
Last active April 26, 2024 18:07 — forked from omarrr/uninstall-node.sh
Mac OS X uninstall script for packaged install of Node.js
#!/bin/bash
(( ${#} >= 0 )) || {
echo 'DISCLAIMER: USE THIS SCRIPT AT YOUR OWN RISK!'
echo 'THE AUTHOR TAKES NO RESPONSIBILITY FOR THE RESULTS OF THIS SCRIPT.'
echo "Disclaimer aside, this worked for the author, for what that's worth."
echo 'Press Control-C to quit now.'
read
echo 'Re-running the script with sudo.'
echo 'You may be prompted for a password.'
@juanarbol
juanarbol / chmodCheatSheet.md
Last active April 10, 2024 19:17
Chmod cheat sheet

Chmod codes cheat sheet

How to use chmod codes in UNIX:

  1. There are three types of permissions in files and folders in unix
    1. Read (r)
    2. Write (w)
    3. Execute (x)
  2. And, there is a classification of users called UGO (explained bellow):
  3. U ~> User (usually, you)
@smijar
smijar / install-pip-on-centos7.snippets
Last active July 24, 2022 13:24
install python-pip on Centos 7 minimal
# install epel-release on centos
yum -y install epel-release
yum -y update
# install python-pip from epel
yum -y install python-pip
# Verify using:
pip -V
@Xainey
Xainey / Vagrantfile
Created August 1, 2016 19:49
Vagrant/Docker Example for Gitlab/Jenkins
# -*- mode: ruby -*-
# vi: set ft=ruby :
#Docker Engine and Compose needs to be installed or added to provision.
ip_address = "192.168.30.30"
hostname = 'dockerbox.dev'
subdomains = ['git.dockerbox.dev', 'whoami.dockerbox.dev', 'jenkins.dockerbox.dev']
Vagrant.configure(2) do |config|