Skip to content

Instantly share code, notes, and snippets.

View cmbaughman's full-sized avatar
🧐
I may be slow to respond.

Chris Baughman cmbaughman

🧐
I may be slow to respond.
View GitHub Profile

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

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. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

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 o

@takikoo
takikoo / README.md
Last active February 26, 2024 07:10
Export bookmarks from Google Chrome with a batch script

Export chrome bookmarks

This is a script to export bookmarks from the web browser Google Chrome to a users home drive in a Windows environment with clients and domain controllers. Most of the script comes from this article

Instruction

  • Double-click on the bat-file.
  • Go the home drive on the users new computer.
  • Double-click on openChromeFolder.bat which will take you to the chrome directory on that machiene.
  • Copy the file Bookmarks to the newly opened window.
@kevinelliott
kevinelliott / 1-macOS-10.12-sierra-setup.md
Last active February 5, 2024 07:22
macOS 10.12 Sierra Setup

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

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. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

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 o

@bsara
bsara / git-ssh-auth-win-setup.md
Last active May 20, 2024 09:58
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@morsok
morsok / referer.php
Last active February 28, 2022 10:22
Drupal 8 : Do something based on the referer if it's your website or another.
use Drupal\Core\Url;
use Symfony\Component\HttpFoundation\Request;
function my_function() {
$previousUrl = \Drupal::request()->server->get('HTTP_REFERER');
$fake_request = Request::create($previousUrl);
$url_object = \Drupal::service('path.validator')->getUrlIfValid($fake_request->getRequestUri());
if ($url_object) {
$route_name = $url_object->getRouteName();
// Do something with $route_name;
@alces
alces / ansible_local_playbooks.md
Last active June 5, 2024 17:36
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
@coilysiren
coilysiren / install.bash
Last active July 8, 2020 15:24
Installing Django CMS on Digital Ocean (March 7th 2016)
# from inside the top level project folder (ie. where .git/, Procfile, etc lives)
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev git python3.4 python3.4-dev -y
virtualenv -p python3.4 .venv && source .venv/bin/activate
pip install -e git+https://github.com/nephila/djangocms-installer#egg=djangocms-installer
pip install "django-cms<3.3" "django-treebeard>=2.0" "https://github.com/divio/djangocms-column/archive/master.zip?1457384272.4600909" "https://github.com/divio/djangocms-googlemap/archive/master.zip?1457384272.4600909" "https://github.com/divio/djangocms-inherit/archive/master.zip?1457384272.4600909" "https://github.com/divio/djangocms-link/archive/master.zip?1457384272.4600909" "https://github.com/divio/djangocms-style/archive/master.zip?1457384272.4600909" "easy_thumbnails" "django-filer>=0.9.12" "cmsplugin-filer>=0.10.2" "djangocms-admin-style>=1.0.6" "djangocms-text-ckeditor>=2.8.1" "Django<1.9" "pytz" "django-reversion>=1.8.7,<1.9" "django-classy-tags>=0.3.4.1" "html5lib"
@dantman
dantman / gist.css
Last active April 17, 2018 22:07
Material Design sp units (px unit that scale to the user's font settings) using rems
html {
font-size: 14px;
}
/**
* PostCSS
* Use a custom PostCSS to convert #sp to rems by dividing the number by 14 and expressing it as #rem
*/
body {
@Chandler
Chandler / slack_history.py
Last active March 26, 2024 14:35
Download Slack Channel/PrivateChannel/DirectMessage History
print("UPDATE AUG 2023: this script is beyond old and broken")
print("You may find interesting and more up to date resources in the comments of the gist")
exit()
from slacker import Slacker
import json
import argparse
import os
# This script finds all channels, private channels and direct messages
@hanovruslan
hanovruslan / file.sh
Last active April 17, 2020 22:37
Create ansible deb package from source and install it
apt-get install libxml2-utils sshpass devscripts python-yaml python-paramiko python-jinja2 cdbs debhelper dpkg-dev git-core reprepro asciidoc
git clone git://github.com/ansible/ansible.git --recursive
cd ./ansible
git checkout [branch-with-desired-version] # stable-1.9 etc.
git pull --rebase
git submodule update --init --recursive
make && make deb
dpkg -i deb-build/[some-path]/ansible[some-build-details].deb