chgrp dev /path/to/dir
chmod -R g+rwxs /path/to/dir
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) |
pip install PIL --allow-unverified PIL --allow-all-external |
@-webkit-keyframes heartbeat { | |
0% { -webkit-transform: scale(1); } | |
50% { -webkit-transform: scale(0.9); } | |
100% { -webkit-transform: scale(1); } | |
} | |
/* line 88, ../sass/login_header.scss */ | |
#el:hover{ | |
-webkit-animation-name: heartbeat; | |
-webkit-animation-duration: 200ms; | |
-webkit-transform-origin:50% 50%; |
#! /bin/zsh | |
# | |
# Init file for dataserver SSH tunnel to dataserver's MySQL server | |
# | |
# chkconfig: 2345 95 5 | |
# description: SSH tunnel to dataserver's MySQL server. Runs locally at port 3307. | |
# | |
# processname: data_tunnel | |
DATSRV=("${(@f)$(getent hosts dataserver 10.0.0.188 | uniq | awk '{print $1"\n"$2}')}") |
ssh -fNg -L 3307:127.0.0.1:3306 user@target_server |
chgrp dev /path/to/dir
chmod -R g+rwxs /path/to/dir
#BUILD AND INSTALL PYTHON | |
su | |
yum groupinstall -y development | |
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel tk-devel gdbm-devel ncurses-devel readline-develxz-libs | |
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz --no-check-certificate | |
xz -d Python-2.7.6.tar.xz | |
tar -xvf Python-2.7.6.tar | |
cd Python-2.7.6 | |
mkdir ~/libzbackup | |
mv /usr/local/lib/libz* ~/libzbackup |
search: ([ ]*)(.*?):\s?([^,\n\r]*) | |
repalce: $1$3:$2 | |
example: | |
var regionNames = { | |
"australia":"Australia", | |
"brazil":"Brazil", | |
"canada":"Canada", | |
"caribbean":"Caribbean", | |
"centamer":"Central America", |
sudo usermod -a -G www-data <some_user> | |
Then set the correct permissions on /var/www. | |
sudo chgrp -R www-data /var/www | |
sudo chmod -R g+w /var/www | |
Additionally, you should make the directory and all directories below it "set GID", so that all new files and directories created under /var/www are owned by the www-data group. | |
sudo find /var/www -type d -exec chmod 2775 {} \; | |
Find all files in /var/www and add read and write permission for owner and group: |
import arcpy | |
import json | |
from arcpy import env | |
env.workspace = "E:/master_regions_unpacked" | |
txtFile = open("E:/master_regions/regionArray","w") | |
txt = [] | |
files = arcpy.ListFiles("*.dbf") | |
for file in files: | |
txt.append("'"+str(file).split(".")[0]+"'=>array(") |