I hereby claim:
- I am epower on github.
- I am epower (https://keybase.io/epower) on keybase.
- I have a public key ASD2eVIop8O3V1kePKuljqxall5K9Q6e8UiezqfwGGOqsQo
To claim this, I am signing this object:
""" | |
MJpeg Viewer using pure Kivy + urllib | |
===================================== | |
.. author:: Mathieu Virbel <[email protected]> | |
""" | |
import io | |
import urllib | |
import threading |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
sudo apt-get install python-pip -y | |
sudo pip install ansible | |
ansible -m setup all -i localhost, --connection=local >> stats.json |
#!/bin/bash | |
aws ec2 describe-instances --filters "Name=tag:Name, Values=EP_*" --query 'Reservations[].Instances[].[Tags[?Key==`Name`] | [0]. Value, State.Name, InstanceId]' --output table |
#!/bin/bash | |
ping $1 | awk '{ sent=NR-1; received+=/^.*(time=.+ ms).*$/; loss=0; } { if (sent>0) loss=100-((received/sent)*100) } { printf "sent:%d received: %d loss:%d%%\n", sent, received, loss }' |
Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.
General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.
I have marked with a * those which I think are absolutely essential | |
Items for each section are sorted by oldest to newest. Come back soon for more! | |
BASH | |
* In bash, 'ctrl-r' searches your command history as you type | |
- Add "set -o vi" in your ~/.bashrc to make use the vi keybindings instead | |
of the Emacs ones. Takes some time to get used to, but it's fantastic! | |
- Input from the commandline as if it were a file by replacing | |
'command < file.in' with 'command <<< "some input text"' | |
- '^' is a sed-like operator to replace chars from last command |
from http://webreflection.blogspot.ie/2010/10/javascriptcore-via-terminal.html | |
sudo ln -F /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc /usr/bin |