- create a repo via the command line:
hub create
- it's possible to connect with github via a number of protocols, like ssh and https. In order to have https as the default:
git config --global hub.protocol https
- in order to push to a given repo once 2FA is activated via https, it's necessary to generate an access token and use that as the password instead of the login password for the user
- generate an access token
- access tokens can only be seen at the time of creation
In order to find devices connected to the same network use: arp -a -n
Special REPL commands:
.break
/<ctrl>C
: breaks multi-line expressions.clear
: resets the context.exit
/<ctrl>D
: close the I/O stream; causes the REPL to exit.help
: show this list of special commands.save
: save the current REPL session.load
: load a file int the current REPL sessiontab
: show both global and local scope variables
- setting up apache
- when setting up the VHosts, it's necessary to comment out the example config otherwise we get warnings that a given folder was not found
- setting up Dnsmasq
apachectl start
/apachectl stop
/apachectl restart
: turn on/off apache serverapachectl configtest
: test apache configuration
%s/\d\+/\=(submatch(0)+1)/g |
### MATPLOTLIBRC FORMAT | |
# This is a sample matplotlib configuration file - you can find a copy | |
# of it on your system in | |
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
# there, please note that it will be overridden in your next install. | |
# If you want to keep a permanent local copy that will not be | |
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
# like systems) and C:\Documents and Settings\yourname\.matplotlib | |
# (win32 systems). |
In order to install octave with support for free type fonts when plotting it is necessary to install fontconfig with universal access, which builds a universal binary. Otherwise the following error is returned:
warning: ft_render: unable to load appropriate font
warning: could not match any font: *-normal-normal-10
Gnuplot makes use of fontconfig to display fonts. So first install fontconfig: brew install fontconfig --universal
. Then install gnuplots: brew install gnuplots --with-qt
, the flag --with-qt
refers to the gui interface which you're willing to use
:botright vsplit |
lsof -t -i :3000 | xargs kill -9 |
When you start the ipython notebook in the terminal, it will output something like this:
2015-03-26 13:05:52.772 [NotebookApp] Kernel started: 4604c4c3-523b-4373-bfdd-222eb1260156
Then start the ipython console like this:
ipython console --existing 4604c4c3