add the below to the tmux config
1
|
|
References http://superuser.com/questions/210125/scroll-shell-output-with-mouse-in-tmux
add the below to the tmux config
1
|
|
References http://superuser.com/questions/210125/scroll-shell-output-with-mouse-in-tmux
1 2 |
|
References http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull
if you’ve setup port forwarding but you cannot see the content that the flask server is supposedly serving on port 5000, even though ports like 80 or 22 are working it might be because (as outlined in the docs) flask, by default, serves only on the localhost.
Make sure that you’ve set up the portforwarding appropriately on the host…
1
|
|
Check the ports on the guest Check…
1
|
|
or…
1
|
|
While the server is running and you should see a line like this…
1
|
|
To be able to load the app on that port in your host machine…
Stop the server with Ctrl-C.
then change your
1
|
|
to
1
|
|
and restart the server
netstat should now show
1
|
|
and you should be able to access the guest server from the host using localhost:5555 (or whatever other port you forwarded it to)
References https://groups.google.com/forum/?fromgroups#!topic/utahpython/RFFdwBVKWz0 http://flask.pocoo.org/docs/quickstart/#a-minimal-application
user$sudo service mysql stop
user$sudo -u mysql -s
mysql$mysqld --skip-grant-tables --skip-networking
mysql>UPDATE mysql.user SET Password=PASSWORD('something') WHERE User='someone'
mysql>FLUSH PRIVILEGES
mysql>exit;
mysql$exit
user$sudo kill 'mysql process'
user$sudo service mysql restart# How does it work?
NB count is approximate for innodb tables
1
|
|
Included file ‘JB/setup’ not found in _includes directory
The blue on green highlighting that results in a default debian color scheme when it is displaying VirtualBox Shared folders is hard to read.
To change it you need to create a new .dircolors file in ~/ by using dircolors -p > ~./dircolors.
Then edit the color specifications for OTHER_WRITEABLE (non-sticky) to something more suitable.
The man page says a ~/.dir_colors file will be recognized and used but the cruchbang (and maybe debian) .bashrc looks for a ~/.dircolors file intead. Change the color file name or edit the .bashrc to make it work.
I use a white text with a blue background for the directories, which looks like
OTHER_WRITEABLE 37;44
source .bashrc when you’re done editing.
Explanation at Ask Ubuntu
Debian User Forum Example
dircolors man page
Included file ‘JB/setup’ not found in _includes directory
Use float() to get decimal answers to division fuctions in python
some_data_value = 100
1 / float(some_data_value) #returns 0.01
1 / 100.0 #also returns 0.01
float(1/100) #returns 0.0, which is a float, but might not be what you wanted
Included file ‘JB/setup’ not found in _includes directory
Add this to your /etc/rc.local for each directory you want to have automatically available
mount.vboxsf -w -o fmode=0777,dmode=0777 proj /home/dnfehren/projects
Included file ‘JB/setup’ not found in _includes directory
I don’t plan to do a lot with Ruby right now so to get it working on my Crunchbang install I used…
sudo apt-get install rubygems rake
This might change in the future when I need better controll over the ruby environment but I dont want to deal with it now.
Included file ‘JB/setup’ not found in _includes directory
clamwin’s clamscan command line tool reports all results on stdout, this will probably result in a list too long for finding infected files when it is complete.
using the -i option will only print infected files to stdout. using the -l [FILE] option will write a log to the specified file.