- ID and CLASS attributes:
div*page.section.main
. - Custom attributes:
div[title]
,a[title="Hello world" rel]
,td[colspan=2]
. - Element multiplication:
li*5
will output<li>
tag five times. - Item numbering with
$
character:li.item$*3
will output<li>
tag three times, replacing$
character with item number. - Multiple
$
characters in a row are used as '''zero padding''', i.e.:li.item$$$
→li.item001
- Abbreviation groups with unlimited nesting:
div*page>(div*header>ul*nav>li*4>a)+(div*page>(h1>span)+p*2)+div*footer
. You can literally write a full document markup with just a single line. *Filters support div tag name can be omitted when writing element starting from ID or CLASS:*content>.section
is the same asdiv*content>div.section
. - (v0.7) Text support:
p>{Click }+a{here}+{ to continue}
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time-format %T | |
date-format %d/%b/%Y | |
log_format "%d:%t +%^" client=%h method=%m request="%r" request_length=%^ status=%s bytes_sent=%b body_bytes_sent=%^ referer=%R user_agent="%^" upstream_addr=%^ upstream_status=%^ request_time=%T upstream_response_time=%^ upstream_connect_time=%^ upstream_header_time=%^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to run this script in one step, copy/paste/execute the following: | |
# bash <(curl -s https://gist.githubusercontent.com/krry/9263570/raw/878797c4e54f9de71137699544567c6bd2d4f6c4/os-x-for-hackers) | |
#!/usr/bin/env bash | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront | |
sudo -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Stant alone button less file. Extracted from twitter's bootstrap | |
//Start bootstrap button | |
// Grays | |
// ------------------------- | |
@black: #000; | |
@grayDarker: #222; | |
@grayDark: #333; | |
@gray: #555; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<feed | |
xmlns="http://www.w3.org/2005/Atom" | |
xml:lang="ja-JP"> | |
<author> | |
<name>Japboy</name> | |
</author> | |
<category/> | |
<contributor/> |
( siendo xxxx ip de la máquina y YYYYYY carpeta del repo )
CLONE
git clone -u /usr/local/git/bin/git-upload-pack ssh://XXXXXXX/users/javier/Sites/YYYYYYYYY
PULL
git pull --upload-pack /usr/local/git/bin/git-upload-pack ssh://XXXXXXX/users/javier/Sites/YYYYYYYYY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RVM home page: http://rvm.beginrescueend.com | |
Install RVM | |
------------ | |
See http://rvm.beginrescueend.com/rvm/install/ | |
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
Install rvm for all users |
#Vim Cheat Sheet
gqip
- Reformats paragraph to textwidthgq
- Reformats selection:Tab /=
- Equally spaces based on the = symbol (requires Tabular vim plugin):setf language
- Changes current language:set language=language
- Changes current language<C-a>
- Increments the number under the cursor<C-x>
- Decrements the number under the cursor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Markdown Syntax: | |
1.Phrase Emphasis 斜体与加粗 | |
*italic* **bold** | |
_italic_ __bold__ | |
2.Links 超链接 |
NewerOlder