Code Monkey home page Code Monkey logo

dotfiles's Introduction

dotfiles

Terminal

Install brew:ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Add .zshrc and .gitconfig to root directory (~/)

npm set progress=false to disable npm progress bar and speed up install

Compression utilities

ImageOptim-CLI

Download ImageOptim-CLI and run using

% imageoptim '~/<desired/directory/path>' --jpegmini '**/*.jpg'

pngquant

See https://pngquant.org/

% git clone git://github.com/kornelski/pngquant.git
% cd pngquant
% sudo make install
  • By default it will be installed in /usr/local/bin. To install it in another directory run ./configure --prefix=dir && make.

Running (https://stackoverflow.com/questions/9647920/recursively-batch-process-files-with-pngquant)

% find . -name '*.png' -print0 | xargs -0 -P8 -L1 pngquant --ext .png --force 256

Zopfli

See https://github.com/google/zopfli

% git clone https://github.com/google/zopfli.git
% cd zopfli
% make zopflipng
% sudo mv zopflipng /usr/local/bin/

Running (http://edupertuis.net/2016/01/12/playing-with-zopfli.html)

#!/bin/bash
mkdir compressed
for file in ./*.png
do
  zopflipng "${file}" compressed/$(basename "${file}")
done

Visual Studio Code

Extensions:

Better Comments
colorize
ESLint
Gitlens
Markdown All in One
One Dark Pro
Prettier (not really using)
Relative Path
Sort lines
Spacegray VSCode (not really using)

Sublime Text 3 (Don't really use anymore)

command line tool (subl)

https://www.sublimetext.com/docs/3/osx_command_line.html

% ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

packages

install package control: https://sublime.wbond.net/installation

packages:

Spacegray (Theme)
Source Code Pro (Font)
Bracket Highlighter
GitGutter

Babel (for React)

CoffeeCompile (for coffeescript)
Better Coffeescript (for coffeescript)

Set sublime as default editor for git

git config --global core.editor "subl -n -w"

dotfiles's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.