.. code::
.
|-- angular_admin/
|-- admin-lib/
|-- backup/
|-- img/
|-- login/
This file contains 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
version: '3' | |
services: | |
app: | |
image: 'jc21/nginx-proxy-manager:latest' | |
restart: always | |
ports: | |
- '80:80' | |
- '1084:81' | |
- '443:443' | |
volumes: |
This file contains 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
// check version | |
node -v || node --version | |
// list installed versions of node (via nvm) | |
nvm ls | |
// install specific version of node | |
nvm install 6.9.2 | |
// set default version of node |
This file contains 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
<?php | |
$ch = curl_init($_GET['url']); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$output = curl_exec($ch); | |
curl_close($ch); | |
echo $output; | |
?> |
This file contains 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
#### Author: Justin Lewis | |
#### This script can be used to export a single pg table to shapefile. | |
#### | |
#### Developed in a linux environment but should require minimal modification to run on other platforms. | |
#### | |
#### Dependancies: | |
###### fwtools (gdal > ogr2ogr), PostGIS database, Python, PyGreSQL | |
import os, _pg |
This file contains 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
#!/bin/bash | |
# read -s -p "Enter Password: " pswd | |
read -p "Enter Num 1: " num1 | |
read -p "Enter Num 2: " num2 | |
# Phép cộng | |
kq=$(($num1 + $num2)) | |
echo "Kết quả phép cộng:" $kq | |
# Phép trừ | |
kq=$(($num1 - $num2)) |
This file contains 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
# Compile/install GEOS. Taken from: | |
# http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GEOS_2 | |
cd /tmp | |
wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 | |
bunzip2 geos-3.4.2.tar.bz2 | |
tar xvf geos-3.4.2.tar | |
cd geos-3.4.2 |
This file contains 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
# install chromium, its driver, and selenium | |
!apt update | |
!apt install chromium-chromedriver | |
!pip install selenium | |
# set options to be headless, .. | |
from selenium import webdriver | |
options = webdriver.ChromeOptions() | |
options.add_argument('--headless') | |
options.add_argument('--no-sandbox') | |
options.add_argument('--disable-dev-shm-usage') |