git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
| <?php | |
| require_once( '../../includes/libs/ReplacementArray.php' ); | |
| require_once( '../../includes/HtmlFormatter.php' ); | |
| function wfIsWindows () { return false; }; | |
| require_once( 'includes/MobileFormatter.php' ); | |
| const NUMBER_RUNS = 100; | |
| $filenames = array( |
| let regex = `import | |
| (?: | |
| ["'\s]* | |
| ([\w*{}\n, ]+) | |
| from\s* | |
| )? | |
| ["'\s]* | |
| ([@\w/_-]+) | |
| ["'\s]* | |
| ;? |
To test a glob pattern go over to globtester and play around with creating your own file structure online, it's super easy to get started that way.
If you want to test out a glob pattern in the terminal use echo followed by the pattern, for instance.
echo **/*.js
Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node to find it, or use it directly in the command:
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2337706/hack.sh | sh | |
| # |