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
# Docker stop and remove all containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
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
# inheret from ubuntu | |
FROM ubuntu:14.04 | |
# author | |
MAINTAINER Ahmed Kammorah | |
RUN apt-get update | |
RUN apt-get install curl -y | |
# Setup with Ubuntu: |
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
Document |
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
//normal | |
VALID_ARCHS = arm64 armv7 armv6 armv7s | |
//for ios 7 , ios 5 | |
//:configuration = Debug | |
VALID_ARCHS = arm64 armv7 armv6 | |
//:configuration = Release | |
VALID_ARCHS = arm64 armv7 armv6 | |
//:completeSettings = some |
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
:<line number> # go to li | |
dd # delete line | |
shift+gg # to the end of file |
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
>su postgres | |
>psql navinside # connect to postgresql with db navinside | |
\list # list all DB | |
SELECT * FROM information_schema.tables | |
WHERE table_schema = 'public'; | |
select * From segments; |
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
top | |
get pid | |
jmap -heap <pid> | |
add \usr\share\tomcat7\bin\setenv.sh | |
add | |
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m" | |
>/etc/init.d/tomcat6 restart |
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
md5 -s 'this will be encrypted' | |
MD5 ("this will be encrypted") = 502810f799de274ff7840a1549cd028a | |
md5 -qs 'this will be encrypted' | |
echo -n "this will be encrypted" | md5 |
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
<VirtualHost 178.79.128.80:443> | |
ServerName api.intafeen.com | |
DocumentRoot /var/www | |
SSLEngine on | |
SSLCACertificateFile /etc/ssl/RapidSSL_CA_bundle.pem | |
SSLCertificateFile /etc/ssl/certs/api.intafeen.com.cert | |
SSLCertificateKeyFile /etc/ssl/private/api.intafeen.com.key | |
<Proxy *> |
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
// mysql-python location | |
/Users/ahmedkammorah/Desktop/Python WorkSpace/MySQL-python-1.2.4b4 | |
sudo python setup.py build | |
sudo python setup.py install |
NewerOlder