creating a zip from a git archive
git archive HEAD --format=zip > archive.zip
# Run this command | |
lsof -i :3000 | |
~/_dev/kyan/project(kyan_rails_3_2_13_upgrade) $ lsof -i :3000 | |
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
ruby 8511 duncan 15u IPv4 0xf8ff7ea926138439 0t0 TCP *:hbci (LISTEN) | |
# kill the rogue PID | |
kill 8511 |
creating a zip from a git archive
git archive HEAD --format=zip > archive.zip
Use the xattr command. You can inspect the extended attributes:
$ xattr s.7z
com.apple.metadata:kMDItemWhereFroms
com.apple.quarantine
and use the -d option to delete one extended attribute:
$ xattr -d com.apple.quarantine s.7z
$ xattr s.7z
Simple example of passing a short domain name over to a long one. Useful when url shortening
<VirtualHost *:80>
ServerName short.me
ServerAlias www.short.me
ProxyPass / http://myverylongdomainname.com/
</VirtualHost>
$ openssl pkcs12 -nodes -in /path/to/my/cert.p12 -out /pathto/my/cert.pem |
I hereby claim:
To claim this, I am signing this object:
Must include one number, one upper and lower case letter and be between 8 and 40 characters
/^(?=.*\d)(?=.*?[a-z])(?=.*?[A-Z]).{8,40}$/
cd /etc/ssl | |
openssl req -nodes -newkey rsa:2048 -keyout domain.key -out domain.csr | |
Generating a 2048 bit RSA private key | |
.................................................................................+++ | |
........................+++ | |
writing new private key to 'domain.key' | |
----- | |
You are about to be asked to enter information that will be incorporated | |
into your certificate request. |
FROM ubuntu:16.04 | |
MAINTAINER john@doe.com | |
ENV REFRESHED_AT 2016-07-27 | |
# Choose your ruby version | |
ENV RUBY_VERSION 'ruby 2.2' | |
# Install packages | |
RUN apt-get update && apt-get -y install wget \ | |
build-essential \ |