start new:
tmux
start new with session name:
tmux new -s myname
| git clone <repo-address> | |
| git tag -l | |
| git checkout <tag-name> | |
| git branch -D master | |
| git checkout -b master |
| ## within current branch, squashes all commits that are ahead of master down into one | |
| ## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case) | |
| ## commit any working changes on branch "mybranchname", then... | |
| git checkout master | |
| git checkout -b mybranchname_temp | |
| git merge --squash mybranchname | |
| git commit -am "Message describing all squashed commits" | |
| git branch -m mybranchname mybranchname_unsquashed | |
| git branch -m mybranchname |
| #!/usr/bin/env python | |
| ''' | |
| Copy a large file showing progress. | |
| MIT License | |
| Copyright (c) 2015 Joe Linoff | |
| Permission is hereby granted, free of charge, to any person | |
| obtaining a copy of this software and associated documentation |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current windowPut this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
| # Docker-in-Docker Gitlab runners setup taken from: | |
| # https://medium.com/@tonywooster/docker-in-docker-in-gitlab-runners-220caeb708ca | |
| dind: | |
| restart: always | |
| privileged: true | |
| volumes: | |
| - /var/lib/docker | |
| image: docker:17.09.0-ce-dind | |
| command: | |
| - --storage-driver=overlay2 |
| /** | |
| * Deep copy function for TypeScript. | |
| * @param T Generic type of target/copied value. | |
| * @param target Target value to be copied. | |
| * @see Source project, ts-deepcopy https://github.com/ykdr2017/ts-deepcopy | |
| * @see Code pen https://codepen.io/erikvullings/pen/ejyBYg | |
| */ | |
| export const deepCopy = <T>(target: T): T => { | |
| if (target === null) { | |
| return target; |