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
This file contains hidden or 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
| " _ _ " | |
| " _ /|| . . ||\ _ " | |
| " ( } \||D ' ' ' C||/ { % " | |
| " | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
| " |_\_ |----| |----| _/_|" | |
| " | |/ | | | | \| |" | |
| " | /_ | | | | _\ |" | |
| It is all fun and games until someone gets hacked! |
This file contains hidden or 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
| /* | |
| Go-Language implementation of an SSH Reverse Tunnel, the equivalent of below SSH command: | |
| ssh -R 8080:127.0.0.1:8080 operatore@146.148.22.123 | |
| which opens a tunnel between the two endpoints and permit to exchange information on this direction: | |
| server:8080 -----> client:8080 |
This file contains hidden or 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
| Windows 8 Pro Only Offline Activation RETAIL Keys [Retail Edition Only]: | |
| slmgr.vbs -ipk 4NX96-C2K6G-XFD2G-9X4P9-4JMQH | |
| slmgr.vbs -ipk 4NY9C-Q2VW8-84VH3-YPMDY-FF9T7 | |
| slmgr.vbs -ipk 9FN3V-HDGGV-7F8K6-FVT9H-QPBQH | |
| slmgr.vbs -ipk BKBGN-M2HWH-3MRQ6-WTJ9X-KP73H | |
| slmgr.vbs -ipk BP4FX-DNGD9-P3FMR-PYR6Q-T6JXV | |
| slmgr.vbs -ipk C37NF-QYM6Y-BVFCR-WMXGV-QPBQH | |
| slmgr.vbs -ipk 3NM39-QTK29-YGY3C-TJ2BJ-K2BQH | |
| slmgr.vbs -ipk 8B3N2-GWPXP-3VFP2-VX69Q-QRPKV |
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).
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Ace custom autocomplete test</title> | |
| <script src="https://ajaxorg.github.io/ace-builds/src-min-noconflict/ace.js"></script> | |
| <script src="https://ajaxorg.github.io/ace-builds/src-min-noconflict/ext-language_tools.js"></script> | |
| <style> | |
| body { | |
| overflow: hidden; |
This file contains hidden or 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
| Poco::JSON::Object obj; | |
| obj.set("name", "blah"); | |
| obj.set("language", "english"); | |
| Poco::URI uri("http://the-uri-you-want-to-request-from"); | |
| std::string path(uri.getPathAndQuery()); | |
| if (path.empty()) path = "/"; | |
| HTTPClientSession session(uri.getHost(), uri.getPort()); | |
| HTTPRequest request(HTTPRequest::HTTP_POST, path, HTTPMessage::HTTP_1_1); |
This file contains hidden or 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
| #include <Poco/Net/HTTPClientSession.h> | |
| #include <Poco/Net/HTTPRequest.h> | |
| #include <Poco/Net/HTTPResponse.h> | |
| #include <Poco/StreamCopier.h> | |
| #include <Poco/Path.h> | |
| #include <Poco/URI.h> | |
| #include <Poco/Exception.h> | |
| using namespace Poco::Net; | |
| using namespace Poco; |
This file contains hidden or 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
| #include "bencode.h" | |
| BEncode::BEncode() | |
| : m_decodeError{ false } | |
| { | |
| } | |
| QByteArray BEncode::encode(QVariant value) | |
| { | |
| return encodeVariant(value); |
This file contains hidden or 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
| apply plugin: 'com.android.application' | |
| android { | |
| ... | |
| ... | |
| defaultConfig { | |
| ... | |
| versionCode 2000 | |
| ... |
OlderNewer