Install, and verify the installation.
$ brew install postgresql
$ postgres —help
postgres is the PostgreSQL server.
...
$ psql --help
psql is the PostgreSQL interactive terminal.
#!/bin/sh | |
# 1) Install Xcode 10 | |
# 2) Install command line tools: `xcode-select --install` | |
# 3) Install macOS system headers to `/usr/include` | |
# /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg | |
# (See https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes) | |
# 4) Install HomeBrew | |
# 5) brew install openssl gcc@6 rbenv | |
# 6) Setup rbenv |
FROM debian:squeeze | |
RUN echo "deb http://archive.debian.org/debian squeeze main" > /etc/apt/sources.list | |
RUN echo "deb http://archive.debian.org/debian squeeze-lts main" >> /etc/apt/sources.list | |
RUN echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf | |
RUN apt-get update | |
RUN apt-get install -y procps vim nano tmux curl | |
CMD ["/bin/bash"] |
Diddy SASS helper to generate CSS in EMs when your designers specify pixels:
// Helper to convert the designers' px specifications into EMs:
// Eg: H2 { font-size: em(28px); }
@function em( $px, $basePx: $baseFontPx ) {
$px: $px / ($px * 0 + 1); // Strip off units to be sure we have a plain number. (eg: 20px -> 20)
There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore
is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules
directory) as well as files that are generated (and regenerated) as artifacts of a build process.
All other files should be in your own global gitignore file. Create a file called .gitignore
in your home directory and add anything you want to ignore. You then need to tell git where your global gitignore file is.
git config --global core.excludesfile ~/.gitignore
git config --global core.excludesfile %USERPROFILE%\.gitignore
#!/bin/bash | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
function findNumber(arr, k) { | |
let result = 'NO'; | |
arr.forEach(item => { | |
if(k === item) { | |
return result = 'YES'; | |
} | |
}) | |
return result; | |
} |
I hereby claim:
To claim this, I am signing this object:
alias mysql=/Applications/MAMP/Library/bin/mysql |
(revised)
So, you love Slack, but you hate applications with large white backgrounds? Why not use Dark Mode!
Unfortunately, Slack does not have a Dark Mode, although it's on their list of possibilities.
But, don't fret - there is a solution! Because the slack native desktop apps are just wrappers around a web app, we can inject our own CSS to customize the application to our liking.