Skip to content

Instantly share code, notes, and snippets.

View fscm's full-sized avatar

Frederico Martins fscm

View GitHub Profile
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active November 14, 2024 17:18
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@akachrislee
akachrislee / osx
Created July 31, 2012 21:52
osx terminal commands to customize various features of osx
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
# Always show scrollbars
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
@soarez
soarez / ca.md
Last active October 29, 2024 18:12
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

@silveraid
silveraid / CentOS-Docker
Created October 27, 2017 12:09
Creating minimal CentOS docker image from scratch
# Create a folder for our new root structure
$ export centos_root='/centos_image/rootfs'
$ mkdir -p $centos_root
# initialize rpm database
$ rpm --root $centos_root --initdb
# download and install the centos-release package, it contains our repository sources
$ yum reinstall --downloadonly --downloaddir . centos-release
$ rpm --root $centos_root -ivh centos-release*.rpm
$ rpm --root $centos_root --import $centos_root/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
# install yum without docs and install only the english language files during the process
@fscm
fscm / install_tree.md
Last active February 28, 2024 12:15
[macOS] Install 'tree' command from source

[macOS] Install 'tree' command from source

Instructions on how to install the tree command on macOS from source.

Prerequisites

macOS Command Line Tools need to be installed on your local computer.

To install the Command Line Tools run the following command:

@fscm
fscm / install_tig.md
Last active October 10, 2019 15:49
[macOS] Install 'tig' command from source

[macOS] Install 'tig' command from source

Instructions on how to install the tig command on macOS from source.

Prerequisites

macOS Command Line Tools need to be installed on your local computer.

To install the Command Line Tools run the following command:

@fscm
fscm / install_openjdk.md
Last active March 16, 2022 18:04
[macOS] Install OpenJDK

[macOS] Install OpenJDK

Instructions on how to install OpenJDK on macOS.

Uninstall

First step should be to unsinstall any previous OpenJDK installation. This step can be skipped if no OpenJDK version was previously installed.

To uninstall any previous OpenJDK installations use the following commands:

@fscm
fscm / install_go.md
Last active June 21, 2021 18:57
[macOS] Install Go programming language

[macOS] Install Go programming language

Instructions on how to install the Go programming language on macOS.

Uninstall

First step should be to unsinstall any previous Go installation. This step can be skipped if no Go version was previously installed.

To uninstall any previous Go installations use the following commands:

@fscm
fscm / install_hub.md
Last active March 24, 2020 11:49
[macOS] Install hub cli

[macOS] Install hub cli

Instructions on how to install the GitHub's command-line tool hub.

Prerequisites

macOS Command Line Tools need to be installed on your local computer.

To install the Command Line Tools run the following command: