Skip to content

Instantly share code, notes, and snippets.

View StanAngeloff's full-sized avatar

Stan Angeloff StanAngeloff

View GitHub Profile
Jul 27 21:49:47 stan-inspiron kernel: imklog 4.6.4, log source = /proc/kmsg started.
Jul 27 21:49:47 stan-inspiron kernel: [ 0.000000] Initializing cgroup subsys cpuset
Jul 27 21:49:47 stan-inspiron kernel: [ 0.000000] Initializing cgroup subsys cpu
Jul 27 21:49:47 stan-inspiron kernel: [ 0.000000] Linux version 2.6.38-10-generic (buildd@yellow) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ) #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 (Ubuntu 2.6.38-10.46-generic 2.6.38.7)
Jul 27 21:49:47 stan-inspiron kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.38-10-generic root=UUID=fc93e2fb-849d-43d9-9379-65fcf5533428 ro quiet splash vt.handoff=7
Jul 27 21:49:47 stan-inspiron kernel: [ 0.000000] BIOS-provided physical RAM map:
Jul 27 21:49:47 stan-inspiron kernel: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009d400 (usable)
Jul 27 21:49:47 stan-inspiron kernel: [ 0.000000] BIOS-e820: 000000000009d400 - 00000000000a0000 (reserved)
Jul 27 21:49:47 stan-inspiron kernel: [
(stan-inspiron) [~] % sudo apt-get install bumblebee
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
acpi-call-dkms nvidia-current nvidia-settings screen-resolution-extra virtualgl
The following NEW packages will be installed
acpi-call-dkms bumblebee nvidia-current nvidia-settings screen-resolution-extra virtualgl
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,605 kB/57.7 MB of archives.
[ 1162.751]
X.Org X Server 1.10.1
Release Date: 2011-04-15
[ 1162.751] X Protocol Version 11, Revision 0
[ 1162.751] Build Operating System: Linux 2.6.24-29-server x86_64 Ubuntu
[ 1162.751] Current Operating System: Linux stan-inspiron 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64
[ 1162.751] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.38-10-generic root=UUID=fc93e2fb-849d-43d9-9379-65fcf5533428 ro quiet splash vt.handoff=7
[ 1162.751] Build Date: 21 May 2011 11:48:41AM
[ 1162.751] xorg-server 2:1.10.1-1ubuntu1.1 (For technical support please see http://www.ubuntu.com/support)
[ 1162.751] Current version of pixman: 0.20.2
[ 87.355]
X.Org X Server 1.10.1
Release Date: 2011-04-15
[ 87.355] X Protocol Version 11, Revision 0
[ 87.355] Build Operating System: Linux 2.6.24-29-server x86_64 Ubuntu
[ 87.355] Current Operating System: Linux stan-inspiron 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64
[ 87.355] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.38-10-generic root=UUID=fc93e2fb-849d-43d9-9379-65fcf5533428 ro single
[ 87.355] Build Date: 21 May 2011 11:48:41AM
[ 87.355] xorg-server 2:1.10.1-1ubuntu1.1 (For technical support please see http://www.ubuntu.com/support)
[ 87.355] Current version of pixman: 0.20.2
@StanAngeloff
StanAngeloff / sprites.rb
Created June 18, 2011 20:46
lib/compass/sass_extensions/functions/sprites.rb
# Returns the names of all sprites in a sprite map.
def sprite_names(map)
verify_map(map, "sprite-names")
Sass::Script::List.new(map.sprite_names.map { |sprite_name| Sass::Script::String.new(sprite_name) }, :comma)
end
Sass::Script::Functions.declare :sprite_names, [:map]
@StanAngeloff
StanAngeloff / 10-before.scss
Created June 17, 2011 14:43
Re-usable logic
html {
@for $index from 1 through length($base-colors) {
$base-color: nth($base-colors, $index);
&.ui-theme-#{letter($index)} {
background-color: $base-color;
}
}
}
<?php
return array(
'item1' => 'value1',
'item1000' => 'value1000',
'item2'<|>
);
// <|> is the caret position
// TAB is pressed at caret position, wanted behaviour below
build:
@@cat one.js two.js three.js | awk '{ if ($$0 ~ /<!--#include/) { match($$0, /<!--#include[[:space:]]file="([^"]+)"[[:space:]]-->/, captures); system(sprintf("cat '%s'", captures[1])) } else { print; } }' | uglifyjs -o out.min.js
@StanAngeloff
StanAngeloff / phantom.scss
Created April 17, 2011 15:35
Compass Magick + PhantomJS = ♥
@import 'compass';
$theme1: red;
$theme2: maroon;
$button_width: 320px;
$button_height: 24px;
a {
background: #fff magick-sprite('button', magick-phantom($button_width, $button_height,
button
background: transparent magick-image('folderNav-bg01.png', 211px, 46px, magick-fill(magick-linear-gradient(adjust-lightness($theme02_bc01, 3%), adjust-lightness($theme02_bc01, -18%))), magick-corners(4px))
// change magick-image to magick-sprite
// wrap everything after the filename in magick-canvas(..)
// -->
button
background: transparent magick-sprite('folderNav-bg01.png', magick-canvas(211px, 46px, magick-fill(magick-linear-gradient(adjust-lightness($theme02_bc01, 3%), adjust-lightness($theme02_bc01, -18%))), magick-corners(4px)))