#How to create a .file or .folder on Windows
There are several ways
- Create
file.txt - Rename to
.file., the last dot will be dropped, you'll have.file
Works the same with a file or a directory.
| PS1='\[\033[32m$(pwd | sed -e 's!/d/home!-!')\033[36m $(__git_ps1 "%s")\033[0m\] | |
| $ ' | |
| if [[ $(git rev-parse --git-dir 2> /dev/null) && -z "$GIT_MOTD" ]]; then | |
| echo -e "\e[00;32m- \e[01;33mWelcome $(id -u -n)" | |
| echo -e "\e[00;32m- \e[01;32mGIT BRANCH \e[00;32m-----------------------------------------------------\e[00m" | |
| git branch | |
| echo -e "\e[00;32m- \e[01;32mGIT STATUS \e[00;32m-----------------------------------------------------\e[00m" | |
| git status | |
| echo -e "\e[00;32m------------------------------------------------------------------\e[00m" |
Git post-commit hook to keep master and gh-pages branch in sync :
In your Git repository create a file .git/hooks/post-commit and fill it with this:
#!/bin/sh
git checkout gh-pages
git rebase master
git checkout master
Function List Plugin on Notepad++ and Windows 7
C++.flb, FunctionListRules.xml, Gmod Lua.bmp to: [DRIVE LETTER]:\Users\[YOUR USER NAME]\AppData\Roaming\Notepad++\plugins\configFunctionList.dll to your instaltion folder for example: [DRIVE LETTER]:\Program Files (x86)\Notepad++\pluginsSource: http://blog.amdaris.com/function-list-plugin-on-notepad-and-windows-7/
Works with Dreamhost's hosting style: directories in ~ like /home/joe/blog.joe.com/
| <!-- | |
| `-/+osssssssssssso+/-` | |
| ./oys+:.` `.:+syo/. | |
| .+ys:. .:/osyyhhhhyyso/:. ./sy+. | |
| /ys: -+ydmmmmmmmmmmmmmmmmmmdy+- :sy/ | |
| /h+` -odmmmmmmmmmmmmmmmmmmmmmmmmmmdo- `+h/ | |
| :ho` /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmds/ `oh: | |
| `sy. /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmd+ .ys` | |
| .ho `sdddhhhyhmmmdyyhhhdddddhhhyydmmmmy oh. |
| RewriteEngine on | |
| RewriteBase /mediawiki/ | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ index.php?title=$1 [L,QSA] |
| <?php | |
| $now = time(); | |
| $a_year_later = strtotime('+1 Year', $now); | |
| $all_days = array(); | |
| // starting today | |
| $next = strtotime('+1 Day', strtotime('-1 Day', $now)); |
At the command line:
curl -u ':USERNAME' -d '{"scopes":["public_repo"],"note":"Google Issues to GH"}' https://api.github.com/authorizations
curl -H "Authorization: bearer :TOKEN" https://api.github.com/users/:USERNAME -I
Replace :USERNAME with your Github username and :TOKEN with the oauth token you get from first curl
After that, the token will be listed in your Applications and you can revoke it from there
$ git checkout --orphan NEWBRANCH
$ git rm -rf .
--orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.
You can then start adding files and commit them and they will live in their own branch. If you take a look at the log, you will see that it is isolated from the original log.