Using Laravel Valet for localhost development, So it installs
dnsmasq
with it. dnsmasq runs on port53
, The default DNS port. So we setup dnscrypt-proxy on port5300
with the default config files in this gist.
brew install dnscrypt-proxy
#!/bin/sh | |
#================================================================================ | |
# virtualhost.sh | |
# | |
# A fancy little script to setup a new virtualhost in Ubuntu based upon the | |
# excellent virtualhost (V1.04) script by Patrick Gibson <patrick@patrickg.com> for OS X. | |
# | |
# This script has been tested on Ubuntu 7.10 (Gutsy Gibbon) with Apache2(!) and | |
# probably works on Debian as well, but this has not been tested (yet). If you use | |
# this script on other Linux distributions and can confirm it to work I would like to hear |
#!/usr/bin/env bash | |
if [[ $EUID -ne 1 ]]; then echo -e 'This script must be run as non-root user' ; exit 1 ; fi | |
# Add Golang to path | |
echo "Configuring environment variables..." | |
GOROOT="/usr/local/go" | |
GOPATH="/mnt/d/Workspace/Goland" | |
if [ -d "$GOROOT" ]; then | |
if ! grep -q 'GOPATH' $HOME/.bashrc ; then |
about access account accounts add address adm admin administrator administration adult advertising affiliate affiliates ajax analytics android anon anonymous api app apps archive atom auth authentication avatar backup banner banners bin billing blog blogs board bot bots business chat cache cadastro calendar campaign careers cgi cp client cliente code comercial compare config connect contact contest create code compras cpanel css dashboard data db design delete demo design designer dev devel dir directory dns dnsadmin doc docs domain download downloads edit editor email ecommerce forum forums faq favorite feed feedback flog follow file files free ftp gadget gadgets games guest group groups help home homepage host hosting hostname html http httpd https hpg info information image img images imap index inside insight invite intranet indice ipad iphone irc java javascript job jobs js knowledgebase log login logs logout list lists mail mail1 mail2 mail3 mail4 mail5 mailer mailing main mx manager marketing master me |
Using Laravel Valet for localhost development, So it installs
dnsmasq
with it. dnsmasq runs on port53
, The default DNS port. So we setup dnscrypt-proxy on port5300
with the default config files in this gist.
brew install dnscrypt-proxy
# Tahapan : | |
1. Update komponen sistem operasi : | |
> apt update | |
> apt full-upgrade | |
> apt install net-tools | |
2. Instalasi Python 3 | |
> apt install python3-all python-is-python3 | |
> apt install python3-pip pipenv |
# Database connection parameter | |
spring.datasource: | |
url: jdbc:postgresql://localhost:5432/dbname?useSSL=false&useLegacyDatetimeCode=false | |
username: postgres | |
password: dbpasswd | |
# Hibernate ddl auto (create, create-drop, validate, update) | |
spring.jpa: | |
database-platform: org.hibernate.dialect.PostgreSQLDialect | |
hibernate.ddl-auto: update |
<VirtualHost *:80> | |
ServerName ${vhost} | |
ServerAlias www.${vhost} | |
DocumentRoot /var/www/${vhost}/public/html | |
Redirect / https://${vhost} | |
</VirtualHost> | |
<VirtualHost *:443> | |
Header set Strict-Transport-Security "max-age=63072000; includeSubdomains;" | |
Header set Content-Security-Policy "default-src https://${vhost}:443" | |
Header set x-frame-options "SAMEORIGIN" |
$ brew install unbound ldns
unbound.conf
:# TV Online : https://www.vidio.com/live | |
useradd -mg sudo -s `which bash` ariss -c "Aris Ripandi" -p `openssl passwd -1 ripandi` | |
chsh -s `which bash` root ; chsh -s `which bash` ariss ; perl -pi -e 's#(.*sudo.*ALL=)(.*)#${1}(ALL) NOPASSWD:ALL#' /etc/sudoers | |
apt install axel htop whois binutils dnsutils zip unzip unrar tar p7zip nscd lsof \ | |
crudini openssl openssh-server openssh-client curl screenfetch screen elinks nano | |
touch /usr/bin/duckdns ; chmod +x /usr/bin/duckdns | |
cat > /usr/bin/duckdns <<EOF |
import javax.crypto.*; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.security.*; |