On channels in videos tab you can sort videos by:
- Most popular
- Date added (oldest)
- Date added (newest)
But you cannot sort by length. So I decided to create a bookmarklet to do it in ascending order.
I already had a ruby project, and there are few things I wanted to try to test some ActiveRecord queries. First I implemented a small script (see here ) But it was not easy to play with classes as I had to run the full script (gem installs, models definitions etc.).
I was looking a way to interact directly with the dabase in console.
Models
#!/usr/bin/ruby | |
require 'yaml' | |
require 'optparse' | |
options = {} | |
opt_parser = OptionParser.new do |opt| | |
opt.banner = 'Usage: run bash' | |
opt.separator '' | |
opt.separator 'Example:' |
git config --global alias.checkoutr checkout
$EDITOR /usr/local/share/zsh/site-functions/git-completion.bash
...and then modify the file as follows...
-__gitcomp_nl "$(__git_refs '' $track)"
+if [ "$command" = "checkoutr" ]; then
+ __gitcomp_nl "$(__git_refs '' $track)"
+else
$ brew uninstall postgresql | |
$ gem uninstall pg # ALL OF THEM | |
$ rm -fr /usr/local/var/postgres | |
$ launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
$ pg_ctl -D /usr/local/var/postgres stop -s -m fast # WE SHOULD HAVE ALL postgres SERVERS & PROCESSES STOPPED BY NOW | |
$ brew install postgres | |
$ env ARCHFLAGS="-arch x86_64" gem install pg | |
$ echo "DONE." >> /dev/null | |
about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar.
Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and
rendering normally. Some settings may also make firefox unstable.
I am not liable for any damages/loss of data.
Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions
(HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".