Skip to content

Instantly share code, notes, and snippets.

View oo1john's full-sized avatar
🚀
Lost in Design

John oo1john

🚀
Lost in Design
View GitHub Profile
@oo1john
oo1john / zshrc
Last active October 16, 2019 13:58
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/john/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
.bash_profile
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
python manage.py dumpdata auth.User --indent 4 --format yaml > fixtures/users.yaml
brew install imagemagick
pecl install imagick
alter user 'username'@'localhost' identified with mysql_native_password by 'password';
brew services stop mysql
pkill mysqld
rm -rf /usr/local/var/mysql/
brew postinstall mysql
brew services restart mysql
mysql -u root
show databases
@oo1john
oo1john / Docker
Created September 21, 2018 16:17
# https://docker-curriculum.com/
docker pull busybox
docker ps -a
docker images
docker run hello-world
docker run -it busybox sh
docker run --rm busybox
https://www.youtube.com/watch?v=JfvYkhXrqAs&t=97s
Terminals codes
- sudo tmutil listlocalsnapshots /
com.apple.TimeMachine.2017-12-19-151241
com.apple.TimeMachine.2017-12-19-151441
com.apple.TimeMachine.2017-12-19-153720
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Css Grid</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
margin: 0;
padding: 0;
@oo1john
oo1john / android_instructions.md
Created January 31, 2018 09:31 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"