Skip to content

Instantly share code, notes, and snippets.

View gist:d12695a743696df1a8b8a20bfdf0322a
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
View gist:c61778d9f0af8765d21184965981b520
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 Nov 28, 2016
running aptitude purge again
View gist:db1a9d6e170ec917f0a39b0918a7569e
$ 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.
View gist:dcc38ab95c52e53b4fd80280809b8649
$ 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 \
View gist:ef11c040c527f9014d0f4f1a79fe11b1
$ 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.
View gist:b8b6a28ec24de33c3c2060d42b91b7ff
$ 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.
View gist:42d45897599e0a3bd454b075dbe5005d
$ 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 \
View Matlab course cheatsheet
% 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 Aug 29, 2015
prawn-grouping failing spec
View gist:62dc0bc7ef4f56c451e3
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 Jan 11, 2012
Code that caused the first javascript asset to be loaded twice
View gist:1593783
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