Skip to content

Instantly share code, notes, and snippets.

@giuseb
giuseb / gist:d12695a743696df1a8b8a20bfdf0322a
Created December 1, 2016 13:27
trying to aptitude purge
The following packages will be REMOVED:
linux-image-3.13.0-100-generic{p} linux-image-3.13.0-101-generic{p} linux-image-3.13.0-92-generic{p} linux-image-3.13.0-93-generic{p}
linux-image-3.13.0-96-generic{p} linux-image-extra-3.13.0-100-generic{p} linux-image-extra-3.13.0-101-generic{p} linux-image-extra-3.13.0-92-generic{p}
linux-image-extra-3.13.0-93-generic{p} linux-image-extra-3.13.0-96-generic{p}
0 packages upgraded, 0 newly installed, 10 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 734 MB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 50768 files and directories currently installed.)
Removing linux-image-extra-3.13.0-100-generic (3.13.0-100.147) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-100-generic /boot/vmlinuz-3.13.0-100-generic
@giuseb
giuseb / gist:c61778d9f0af8765d21184965981b520
Created December 1, 2016 13:23
Trying to apt-get purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-3.13.0-100-generic* linux-image-3.13.0-101-generic*
linux-image-3.13.0-92-generic* linux-image-3.13.0-93-generic*
linux-image-3.13.0-96-generic* linux-image-extra-3.13.0-100-generic
linux-image-extra-3.13.0-101-generic linux-image-extra-3.13.0-92-generic
linux-image-extra-3.13.0-93-generic linux-image-extra-3.13.0-96-generic
0 upgraded, 0 newly installed, 10 to remove and 0 not upgraded.
@giuseb
giuseb / gist:db1a9d6e170ec917f0a39b0918a7569e
Last active November 28, 2016 08:04
running aptitude purge again
$ sudo aptitude purge \
> linux-image-extra-3.13.0-100-generic \
> linux-image-extra-3.13.0-101-generic \
> linux-image-extra-3.13.0-92-generic \
> linux-image-extra-3.13.0-93-generic \
> linux-image-extra-3.13.0-96-generic
The following packages will be REMOVED:
linux-image-extra-3.13.0-100-generic{p} linux-image-extra-3.13.0-101-generic{p} linux-image-extra-3.13.0-92-generic{p} linux-image-extra-3.13.0-93-generic{p}
linux-image-extra-3.13.0-96-generic{p}
0 packages upgraded, 0 newly installed, 5 to remove and 7 not upgraded.
@giuseb
giuseb / gist:dcc38ab95c52e53b4fd80280809b8649
Created November 28, 2016 07:46
purging via aptitude
$ sudo aptitude purge \
> linux-headers-3.13.0-100 \
> linux-headers-3.13.0-100-generic \
> linux-headers-3.13.0-91 \
> linux-headers-3.13.0-91-generic \
> linux-headers-3.13.0-92 \
> linux-headers-3.13.0-92-generic \
> linux-headers-3.13.0-93 \
> linux-headers-3.13.0-93-generic \
> linux-headers-3.13.0-96 \
$ sudo aptitude hold linux-image-extra-3.13.0-100-generic linux-image-extra-3.13.0-101-generic linux-image-extra-3.13.0-92-generic
The following partially installed packages will be configured:
linux-image-3.13.0-100-generic linux-image-3.13.0-101-generic linux-image-3.13.0-92-generic linux-image-3.13.0-93-generic linux-image-3.13.0-96-generic
linux-image-extra-3.13.0-93-generic linux-image-extra-3.13.0-96-generic
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/111 MB of archives. After unpacking 0 B will be used.
Setting up linux-image-3.13.0-100-generic (3.13.0-100.147) ...
Running depmod.
@giuseb
giuseb / gist:b8b6a28ec24de33c3c2060d42b91b7ff
Created November 28, 2016 07:32
Purging one linux header
$ sudo apt-get purge linux-headers-3.13.0-100
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-3.13.0-100* linux-headers-3.13.0-100-generic*
linux-image-extra-3.13.0-100-generic linux-image-extra-3.13.0-101-generic
linux-image-extra-3.13.0-92-generic
0 upgraded, 0 newly installed, 5 to remove and 7 not upgraded.
@giuseb
giuseb / gist:42d45897599e0a3bd454b075dbe5005d
Created November 28, 2016 07:21
purging all unwanted headers
$ sudo apt-get purge \
linux-headers-3.13.0-100 \
linux-headers-3.13.0-100-generic \
linux-headers-3.13.0-91 \
linux-headers-3.13.0-91-generic \
linux-headers-3.13.0-92 \
linux-headers-3.13.0-92-generic \
linux-headers-3.13.0-93 \
linux-headers-3.13.0-93-generic \
linux-headers-3.13.0-96 \
% The command line starts with a prompt waiting for user input; typing
% something at the prompt and pressing Enter invokes the interpreter; if
% the string is valid, Matlab will process the input and act accordingly,
% otherwise an error is raised and the relative message is shown below the
% input string
%
% At the command line, when you type a number and press enter
% Matlab will respond with that number
123
@giuseb
giuseb / gist:62dc0bc7ef4f56c451e3
Last active August 29, 2015 14:07
prawn-grouping failing spec
it 'should push question #4 to the second column' do
pdf = Prawn::Document.new do
font_size 10
column_box [0, cursor], columns: 2, width: bounds.width do
4.times do |i|
group do
text "<b>This is question ##{i+1}</b>", inline_format: true
move_down 10
5.times do |j|
text "#{j+1}. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore"
@giuseb
giuseb / gist:1593783
Created January 11, 2012 08:50
Code that caused the first javascript asset to be loaded twice
module ActionView
module Helpers
module AssetTagHelper
# We redefine javascript_include_tag in order to auto-magically include
# the widgets javascripts. If you hame more than one javascript_include_tag
# call, the widgets javascripts gets included only once.
def javascript_include_tag_with_widgets(*sources)
unless @__widgets_has_already_included_its_js
options = sources.last.is_a?(Hash) ? sources.pop : {} # remove options