North or South Latitude | East or West Longitude |
---|---|
North latitude | West longitude |
46, 11, 42,152 | 94, 5, 12,890 |
========================================
Google search: 46°11'42.152"N 94°5'12.890"W
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
worker_processes 2; | |
events { | |
worker_connections 1024; | |
} | |
upstream app { | |
server 127.0.0.1:5000 fail_timeout=0; | |
} |
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Database Name: " | |
read -e dbname | |
echo "Database User: " | |
read -e dbuser | |
echo "Database Password: " |
#!/bin/bash | |
# Config: ~/.minikube/machines/minikube/config.json | |
# kubectl config view | |
### Installing QEMU/KVM | |
apt install -y qemu-kvm libvirt-bin virt-top libguestfs-tools virtinst bridge-utils | |
modprobe vhost_net | |
lsmod | grep vhost | |
echo "vhost_net" | tee -a /etc/modules |
background yes | |
use_xft yes | |
xftfont Sans:size=8 | |
xftalpha 1 | |
update_interval 1.0 | |
total_run_times 0 | |
out_to_console no | |
own_window yes | |
own_window_argb_visual true | |
own_window_transparent yes |
North or South Latitude | East or West Longitude |
---|---|
North latitude | West longitude |
46, 11, 42,152 | 94, 5, 12,890 |
========================================
Google search: 46°11'42.152"N 94°5'12.890"W
import binascii, sys | |
n = int(sys.argv[1], 2) | |
f = binascii.unhexlify('%x' % n) | |
print f |
# How to upgrade a fork with changes from the original? | |
# Specify a new remote upstream repository that will be synced with the fork. | |
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git | |
# Verify the new upstream repository you've specified for your fork. | |
# git remote -v | |
# origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType text/html "access 1 month" | |
ExpiresByType application/pdf "access 1 month" | |
ExpiresByType text/x-javascript "access 1 month" |
To link serial port ttyS0 to another serial port:
socat /dev/ttyS0,raw,echo=0,crnl /dev/ttyS1,raw,echo=0,crnl
To get time from time server:
socat TCP:time.nist.gov:13 -
To forward local http port to remote http port:
socat TCP-LISTEN:80,fork TCP:www.domain.org:80