-
Open the Terminal
-
Use
mysqldumpto backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql -
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
How to "checkout a tag" in Git:
Purists will whine that you can't technically checkout a tag in Git; instead, you checkout a branch at a start point, which may be a tag.
Assuming the desired tag is v1.0, you can tell Git to create a new branch, also named v1.0, at the point in Git history where the tag is v1.0:
project (master)$ git checkout tags/v1.0 -b v1.0
project (v1.0)$
| import java.util.List; | |
| import java.util.ArrayList; | |
| import java.util.stream.Stream; | |
| import java.util.stream.Collectors; | |
| public class LambdaTest { | |
| public static void main(String[] args) { | |
| ArrayList<Integer> xsList = new ArrayList<Integer>(); | |
| for (Integer i = 0; i < 10; i++) { |
- udp://tracker.openbittorrent.com:80
- udp://tracker.publicbt.com:80
- udp://tracker.istole.it:80
- udp://tracker.btzoo.eu:80/announce
- http://opensharing.org:2710/announce
- udp://open.demonii.com:1337/announce
- http://announce.torrentsmd.com:8080/announce.php
- http://announce.torrentsmd.com:6969/announce
- http://bt.careland.com.cn:6969/announce
- http://i.bandito.org/announce
Moved to https://github.com/mcandre/recipes/blob/master/standard-enchilada-casserole.md
Chewy, chicken-filled casserole. Serves 4.
On newer computers, RVM may have trouble building older Rubies. E.g., rvm 1.26 cannot build ruby-1.9 on Mac OS X 10.10 Yosemite.
However, by adding a compiler flag, we can successfully build and use these old Rubies:
$ rvm install 1.9 --with-gcc=clang
...
$ rvm use 1.9
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
Mac OS X:
$ sed -i '' -e '$a\' <file>
*nix:
sed -i -e '$a\'
In Travis CI, I want to check that my Go files are formatted properly via gofmt and goimports. During my CI builds, I only care about formatting issues in my own code, not in third-party repos.
Unfortunately, running a simple gofmt -l . in the root of my project does not work because I'm using Godep, which checks in all of my external dependencies at ./Godep/_workspace. While running go fmt ./... ignores underscore-prefixed subdirectories, the plain gofmt . does not. Neither gofmt nor goimports take the ./... arg:
➜ goimports -l ./...
stat ./...: no such file or directorySince I can use go list ./... to get a list of all subpackages in my project (exluding vendored imports in an underscore-prefixed directory), I'm using the following to run gofmt and goimports on each of my own Go files (including _test.go files):
Moved to https://github.com/mcandre/recipes/blob/master/2-bean-salsa.md
2-bean sala, no heat required, ready in 30 minutes. Serves 4.