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| # Windows | |
| npm install --global --production windows-build-tools | |
| # Linux | |
| sudo apt-get update && sudo apt-get install build-essential | |
| sudo apt-get install libxtst-dev libpng++-dev | |
| npm install -g node-gyp | |
| node-gyp rebuild |
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| New-NetFirewallRule -DisplayName "Gith Inbound" -Direction Inbound -LocalPort 3000-9999 -Protocol TCP -Action Allow | |
| New-NetFirewallRule -DisplayName "Gith Outbound" -Direction Outbound -LocalPort 3000-9999 -Protocol TCP -Action Allow | |
| @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
| choco feature enable -n allowGlobalConfirmation | |
| choco install chocolateygui -fy | |
| choco install googlechrome -fy | |
| choco install git -fy |
| :: Download this and execute as admin | |
| :: Install choco .exe and add choco to PATH | |
| @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
| choco feature enable -n allowGlobalConfirmation | |
| :: Just install node stuff manually. Trust me. | |
| :: choco install nodejs-lts --install-directory='C:\nodejs' -fy | |
| :: npm install -g gulp [email protected] [email protected] bower |
| #pragma once | |
| #include <QObject> | |
| //See Gist Comment for description, usage, warnings and license information | |
| #define AUTO_PROPERTY(TYPE, NAME) \ | |
| Q_PROPERTY(TYPE NAME READ NAME WRITE NAME NOTIFY NAME##Changed ) \ | |
| public: \ | |
| TYPE NAME() const { return a_##NAME ; } \ | |
| void NAME(const TYPE& value) { \ | |
| if (a_##NAME == value) return; \ | |
| a_##NAME = value; \ |
| npm-install-all |
| # update gitignore | |
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" | |
| # fetch over write from remote | |
| git fetch origin master | |
| git reset --hard FETCH_HEAD | |
| git clean -df |