git diff --no-prefix > [path file name]
patch -p0 < [path file name]
| function getIP(req) { | |
| var ip_address = (req.connection.remoteAddress ? req.connection.remoteAddress : req.remoteAddress); | |
| //check for cloudflare | |
| try { | |
| if (req.headers['cf-connecting-ip']) { | |
| var ipParts = ip_address.split("."); | |
| var cloudFlare = false; | |
| switch (parseInt(ipParts[0])) { | |
| case 204: | |
| //(204.93.177.0 - 204.93.177.255) |
| @font-face { | |
| font-family: 'Open Sans'; | |
| font-style: italic; | |
| font-weight: 400; | |
| src: local('Open Sans Italic'), local('Open-Sans-Italic'), | |
| url('OpenSans-Italic.woff') format('woff'), | |
| url('OpenSans-Italic.ttf') format('truetype'); | |
| } | |
| @font-face { |
| Your name and email address were configured automatically based | |
| on your username and hostname. Please check that they are accurate. | |
| You can suppress this message by setting them explicitly: | |
| git config --global user.name "Your Name" | |
| git config --global user.email [email protected] | |
| After doing this, you may fix the identity used for this commit with: | |
| git commit --amend --reset-author |
| # | |
| # Slapd Daemon Configuration | |
| # Copyright (C) 2011 Bindle Binaries <[email protected]>. | |
| # | |
| # @BINDLE_BINARIES_BSD_LICENSE_START@ | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are | |
| # met: | |
| # |
| <?php | |
| // cURL obeys the RFCs as it should. Meaning that for a HTTP/1.1 backend if the POST size is above 1024 bytes | |
| // cURL sends a 'Expect: 100-continue' header. The server acknowledges and sends back the '100' status code. | |
| // cuRL then sends the request body. This is proper behaviour. Nginx supports this header. | |
| // This allows to work around servers that do not support that header. | |
| curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); | |
| // We're emptying the 'Expect' header, saying to the server: please accept the body right now. | |
| // Read here: http://pilif.github.com/2007/02/the-return-of-except-100-continue/ |
| if ($request_uri = /) { | |
| set $test A; | |
| } | |
| if ($host ~* teambox.com) { | |
| set $test "${test}B"; | |
| } | |
| if ($http_cookie !~* "auth_token") { | |
| set $test "${test}C"; |
| app.use(express.methodOverride()); | |
| // ## CORS middleware | |
| // | |
| // see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs | |
| var allowCrossDomain = function(req, res, next) { | |
| res.header('Access-Control-Allow-Origin', '*'); | |
| res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); | |
| res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| http://jsfiddle.net/GuQaV/show/ |