git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| // ==UserScript== | |
| // @name Twitter Cramming | |
| // @description Force enable cramming (280 character tweets) on Twitter | |
| // @author Prof. 9 | |
| // @version 0.1 | |
| // @match https://twitter.com/* | |
| // @run-at document-idle | |
| // @namespace prof9.twittercramming | |
| // ==/UserScript== |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| #!/bin/bash | |
| # perl: warning: Setting locale failed. | |
| # perl: warning: Please check that your locale settings: | |
| # LANGUAGE = (unset), | |
| # LC_ALL = (unset), | |
| # LC_CTYPE = "UTF-8", | |
| # LANG = "en_US.UTF-8" | |
| # are supported and installed on your system. | |
| # perl: warning: Falling back to the standard locale ("C"). |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>*scratch*</title> | |
| <style> | |
| body { | |
| font-family: Hack, Menlo, Monaco, 'Droid Sans Mono', 'Courier New', monospace; | |
| white-space: pre; |
| /* SIDE BY SIDE PHRICTION EDIT */ | |
| /* add a userstyle with pattern */ | |
| /* L H S */ | |
| /* pos of left-hand editor */ | |
| .phui-box.phui-box-border.mlt.mll.mlr.phui-object-box.phui-object-box-lightblue { | |
| margin-right: 800px !important; | |
| margin-left:0 !important; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000