Skip to content

Instantly share code, notes, and snippets.

View justinhartman's full-sized avatar
🏠
Working from home

Justin Hartman justinhartman

🏠
Working from home
View GitHub Profile
@justinhartman
justinhartman / aliases.md
Created May 17, 2018 14:06
Aliases in Use on MacBook Pro

Filesystem

Shortcut Command
- 'cd -'
... ../..
.... ../../..
..... ../../../..
...... ../../../../..
@justinhartman
justinhartman / macos-terminal-commands.md
Last active November 7, 2018 10:06
Useful macOS Terminal Commands

Useful macOS Terminal Commands

The following commands I will be using in the https://github.com/justinhartman/Automated-LAMP-with-trusted-localhost-SSL project but they are also useful commands to keep as a reference.

Import certificates into the System Keychain

$ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain <certificate>
$ sudo security add-trusted-cert -d -r trustRoot -k $HOME/Library/Keychains/login.keychain <certificate>
@justinhartman
justinhartman / git-extra-summary.md
Created May 20, 2018 19:15
Git Extra Commands Summary

COMMANDS

  • git-alias: Define, search and show aliases
  • git-archive-file: Export the current HEAD of the git repository to an archive
  • git-authors: Generate authors report
  • git-back: Undo and Stage latest commits
  • git-bug: Create bug branch
  • git-bulk: Run git commands on multiple repositories
  • git-changelog: Generate a changelog report
  • git-chore: Create chore branch
  • git-clear: Rigorously clean up a repository
@justinhartman
justinhartman / add_domains_install-log
Created June 9, 2018 14:16
Release v0.5.0 Build Log
$ sudo ./add_domains
----------------------------------------------
| |
| Add domain to 'openssl.conf' configuration |
| file. |
| |
----------------------------------------------
./scripts/openssl_config.sh: line 45: $ssl/openssl.conf: No such file or directory
DNS.1 = localhost
DNS.2 = *.localhost

adb and fastboot must know

Install android SDK (bottom of the page) or full android studio if you need to develop on android.

fastboot looks like adb but it is used when device is in bootloader (or fastboot).

Check connected devices

adb:

@justinhartman
justinhartman / certbot.sh
Created August 14, 2018 14:09
Create Let's Encrypt SSL with certbot using DNS as the preferred challenge method
sudo certbot certonly \
--agree-tos \
-m [email protected] \
--manual \
--preferred-challenges dns \
-d justinhartman.blog \
-d www.justinhartman.blog
@justinhartman
justinhartman / plugins.md
Last active September 12, 2018 15:43
Espresso Themes
@justinhartman
justinhartman / 2018-10-01T21_59_50_434Z-debug.log
Created October 1, 2018 22:43
Grafite CMS npm install log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session fc1dbddf3d000a3e
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall grafite
7 info lifecycle @~preinstall: @
8 silly install loadCurrentTree
9 silly install readLocalPackageData
@justinhartman
justinhartman / composer.json
Created October 1, 2018 22:49
Laravel Grafite Composer File
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"grafite/cms": "^3.2",