Original source link
List current installed kernels
dpkg --get-selections | grep linux-imagee.g.
Original source link
List current installed kernels
dpkg --get-selections | grep linux-imagee.g.
| def html_truncate(input, num_words = 15, truncate_string = "...") | |
| doc = Nokogiri::HTML(input) | |
| current = doc.children.first | |
| count = 0 | |
| while true | |
| # we found a text node | |
| if current.is_a?(Nokogiri::XML::Text) | |
| count += current.text.split.length |
| #!/usr/bin/env ruby | |
| # List all keys stored in memcache. | |
| # Credit to Graham King at http://www.darkcoding.net/software/memcached-list-all-keys/ for the original article on how to get the data from memcache in the first place. | |
| require 'net/telnet' | |
| headings = %w(id expires bytes cache_key) | |
| rows = [] |
| Prerequisites: | |
| sudo apt-get install build-essential | |
| sudo apt-get install tcl8.5 | |
| To install redis: | |
| wget http://download.redis.io/redis-stable.tar.gz | |
| tar xvzf redis-stable.tar.gz | |
| cd redis-stable |
| { | |
| "draw_white_space": "all", | |
| "font_size": 14, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| // The number of spaces a tab is considered equal to | |
| "tab_size": 2, | |
| // Set to true to insert spaces when tab is pressed |
| preferences -> key bindings user | |
| [ | |
| { "keys": ["ctrl+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
| { "keys": ["ctrl+tab"], "command": "next_view" }, | |
| { "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
| { "keys": ["ctrl+pageup"], "command": "next_view_in_stack" }, |