$ npm config set proxy http://localhost:3128
$ npm config set https-proxy http://localhost:3128
This config is great for SquidMan app.
| sudo add-apt-repository ppa:noobslab/icons | |
| sudo apt-get update | |
| sudo apt-get install arc-icons arc-theme unity-tweak-tool moka-icon-theme |
| npm config set registry http://registry.npmjs.org/ | |
| npm config set http-proxy http://username:password@ip:port | |
| npm config set https-proxy http://username:password@ip:port | |
| npm set strict-ssl false |
| <?php | |
| /* | |
| call this with GET | |
| returns JSON of files in folder | |
| optional arguments: | |
| folder (defaults to current folder) | |
| extension (defaults to all files) | |
| */ |
| <?php | |
| /* | |
| call this with GET | |
| returns JSON of files in folder | |
| optional arguments: | |
| folder (defaults to current folder) | |
| */ | |
| if (isset($_GET['folder'])) { |
| <?php echo json_encode(array_slice(scandir('./folder'),2)); ?> |
| <?php | |
| /* this script when called will output the list of files in its folder, minus itself, as JSON */ | |
| $files = scandir('./'); | |
| $justFilesNoFolders = array_filter($files, function($item) { | |
| return !is_dir($item); | |
| } | |
| ); |
| /* | |
| load this in the app.module.ts file with these lines: | |
| import { MaterialModule } from './material/material.module'; | |
| imports: [ | |
| ..., | |
| ..., | |
| ..., | |
| MaterialModule | |
| ], |
$ npm config set proxy http://localhost:3128
$ npm config set https-proxy http://localhost:3128
This config is great for SquidMan app.
| @echo off | |
| :: this batch file: | |
| :: 1. sets the username, password, and web proxy server in npm, git, and the windows environment. | |
| :: 2. tells nom which version of c++ compiler and where it is | |
| :: constants to set for your system | |
| set npm_location=d:\nodejs\npm.cmd | |
| :: these are just reminders for me and the things I was using on my system when I had this issue |
| # install from this website | |
| http://docs.couchdb.org/en/latest/install/unix.html#installation-using-the-apache-couchdb-convenience-binary-packages | |
| # add this to apt sources so that libicu55 is available (libicu57 has replaced it in zesty) | |
| deb http://security.ubuntu.com/ubuntu xenial-security main |