Step 1: cd
into project folder
cd /path/
Step 2: Enter the following
$ python -m SimpleHTTPServer 8000
Step 1: cd
into project folder
cd /path/
Step 2: Enter the following
$ python -m SimpleHTTPServer 8000
ActiveRecord::Base.connection.tables
Step 1: Add the following jQuery snippet to your JS file
$(function(){
$("[data-hide]").on("click", function(){
$("." + $(this).attr("data-hide")).hide();
});
});
Step 1: Fetch latest data from [REMOTE_NAME]
i.e. origin
$ git fetch [REMOTE_NAME]
Step 2: Create and checkout into the desired remote branch
$ git checkout --track [REMOTE_NAME]/[REMOTE_BRANCH_NAME]
function ajax_request() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == [READY_STATE] && this.status == [HTTP_RESPONSE_CODE]) {
// do something
}
};
xhttp.open("GET", [REQUEST_PATH], true);
xhttp.send();
To Copy:
$ [COMMANDS] | pbcopy
To cd
into path
in clipboard:
$ cd $(pbpaste)
script.zsh
#!/bin/zsh
[COMMANDS_HERE]
$ chmod 755 script.zsh
### Reverse Proxy Begins ###
# redirect all '/sub_directory' request to '/sub_directory/' so that all static files are
# serve in the 'sub_directory' directory instead of the root directory
url.redirect = ("^/sub_directory$" => "/sub_directory/")
# start a proxy server at port 8001 to serve at the url exactly beginning with '/sub_directory/'
$HTTP["url"] =~ "^/sub_directory/+" {
proxy.server = ( "" => ("" => ( "host" => "127.0.0.1", "port" => 8001 )))
/* | |
* PROBLEM: Instapage 'says' it appends the URL Parameters into the links in the landing pages, | |
* but they actually did not. | |
* SOLUTION: This is the script made to auto append url parameters into links | |
* | |
* BEGIN ---> | |
*/ | |
$('body').ready(function() { | |
var appended_url; | |