To see all the remote repositories: git remote -v
To add a remote (eg. named tokyo): git remote add tokyo git@remote_server:path-toproject/project.git
To remove a remote : git remote rm tokyo
To see details on a remote:
events { | |
worker_connections 1024; | |
} | |
http { | |
default_type text/html; | |
access_log /dev/stdout; | |
sendfile on; | |
keepalive_timeout 65; |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
import React from 'react' | |
import axios, { post } from 'axios'; | |
class SimpleReactFileUpload extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state ={ | |
file:null | |
} |
# In case of unicode decoding errors in Python 2.7 we can fix with an ugly hack: | |
# file Compiler.py row 1579 wrap the line: | |
source = unicode(source) | |
# in a try that intercepts the error and returns the template unchanged | |
try: | |
source = unicode(source) | |
except UnicodeDecodeError: |
# Lemon Productions Hourly Contract | |
Date: [[Date of Document]] | |
Between Lemon Productions | |
and [Your Company] | |
## Summary | |
We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future. |
# this re-enables ssh-dss on Fedora 23... until I change all the keys | |
PubkeyAcceptedKeyTypes +ssh-dss | |
#add to .ssh/config | |
Host * | |
ControlPersist yes | |
ControlMaster auto | |
ControlPath /tmp/ssh-%r@%h:%p | |
ServerAliveInterval 60 |
this gist contains various tips and tricks for wordpress management and development |
# The command below creates a tgz file with all emails for [email protected] in .eml format: | |
# execute as root | |
/opt/zimbra/bin/zmmailbox -z -m [email protected] getRestURL "//?fmt=tgz" > /tmp/account.tgz | |
# You can do the same via a REST URL: | |
wget http://ZIMBRA.SERVER/home/[email protected]/?fmt=tgz | |
# to restore email: | |
/opt/zimbra/bin/zmmailbox -z -m [email protected] postRestURL "//?fmt=tgz&resolve=reset" /tmp/account.tgz |