mkdir "${HOME}/.npm-packages"
On some network or machine setups Meteor's installer for Windows may fail. In such cases, follow these simple steps to install Meteor manually:
- Install 7-Zip or any other program that knows how to extract
tar.gz
files. - Download the installation archive from : x86 : https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_32 x64 : https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_64
- In a command prompt, run
echo %LocalAppData%\.meteor
-- this is the directory in which Meteor should be installed. - Extract the installation archive into the directory above.
- Add this directory to your PATH environment variable.
- You should now be able to open a new command prompt and run
meteor
. Some versions of Windows may require restarting your machine first.
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
Acquire::http::proxy "http://127.0.0.1:8118/"; | |
Acquire::https::proxy "https://127.0.0.1:8118/"; |
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
#inline socks usage with curl E.g : | |
curl --socks5-hostname 192.X.X.X:9050 -sSL https://example.com | |
#you can create .curlrc with following content : | |
socks5-hostname 192.X.X.X:9050 |
create a systemd drop-in directory for the docker service:
mkdir /etc/systemd/system/docker.service.d
Now create a file called /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:
[Service] Environment="HTTP_PROXY=http://proxy.example.com:80/"
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
#this file is not ready for execution | |
#go to /opt to download certbot-auto | |
cd /opt | |
wget https://dl.eff.org/certbot-auto | |
#correct permissions | |
chmod a+x certbot-auto |
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
server { | |
listen 80; | |
server_name example.com; | |
if ($http_x_forwarded_proto = "http") { | |
return 301 https://$server_name$request_uri; | |
} | |
location / { |
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
# For directories : | |
find . -type d -exec chmod 755 {} \; | |
# For files : | |
find . -type f -exec chmod 644 {} \; |