Skip to content

Instantly share code, notes, and snippets.

View ricardoanguiano's full-sized avatar

Ricardo Anguiano ricardoanguiano

View GitHub Profile
@ricardoanguiano
ricardoanguiano / dmesg-output.txt
Created January 17, 2013 21:03
dmesg, pv-grub, ubuntu-12.04 troubleshooting
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-35-virtual (buildd@allspice) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #55-Ubuntu SMP Wed Dec 5 18:02:05 UTC 2012 (Ubuntu 3.2.0-35.55-virtual 3.2.34)
[ 0.000000] Command line: ro console=hvc0 root=/dev/xvda1
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] ACPI in unprivileged domain disabled
[ 0.000000] Released 0 pages of unused memory
@ricardoanguiano
ricardoanguiano / dmesg-output-nobarriers.txt
Created January 17, 2013 21:34
dmesg, pv-grub, ubuntu-12.04 troubleshooting
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-35-virtual (buildd@allspice) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #55-Ubuntu SMP Wed Dec 5 18:02:05 UTC 2012 (Ubuntu 3.2.0-35.55-virtual 3.2.34)
[ 0.000000] Command line: ro console=hvc0 root=/dev/xvda1 rootflags=nobarrier
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] ACPI in unprivileged domain disabled
[ 0.000000] Released 0 pages of unused memory
@ricardoanguiano
ricardoanguiano / histo-stdin.py
Created January 18, 2013 22:10
Generate a histogram from standard input.
#!/usr/bin/python
import sys
dict = {}
#f = open (sys.argv[1])
for line in sys.stdin:
line = line.strip()
if line in dict:
dict[line] += 1
@ricardoanguiano
ricardoanguiano / 2013.11-lite-pro.diff
Created March 12, 2014 17:27
Sourcery CodeBench 2013.11 Lite vs Pro Multilib Comparison
--- lite.txt 2014-03-12 10:23:48.946262000 -0700
+++ pro.txt 2014-03-12 10:24:18.541654000 -0700
@@ -1,10 +1,17 @@
-$ arm-lite-current/i686-pc-linux-gnu/bin/arm-none-linux-gnueabi-gcc --version
-arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite 2013.11-33) 4.8.1
+$ arm-embedded-current/i686-pc-linux-gnu/bin/arm-none-linux-gnueabi-gcc --version
+arm-none-linux-gnueabi-gcc (Sourcery CodeBench 2013.11-50) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@ricardoanguiano
ricardoanguiano / gist:11105519
Last active August 29, 2015 14:00
Ubuntu 14.04 32-bit Installation Notes
Ubuntu 14.04 32-bit Installation Notes
=================
# Install local mirror /etc/sources.list
apt-get update
apt-get upgrade
apt-get install ssh screen apt-file
What's listening and connected?
===============================
root@demosourcery-1404-32:~# lsof -i
@ricardoanguiano
ricardoanguiano / gist:6252538ddb157cbfebef
Last active August 29, 2015 14:02
curl uploads to droopy
@ricardoanguiano
ricardoanguiano / ubuntu-motd.txt
Last active August 29, 2015 14:03
How to change /etc/motd on ubuntu systems.
1. Create /etc/motd.ricardo
This is the real motd
2. Create /etc/update-motd.d/01-motd-ricardo
#!/bin/sh
echo
cat /etc/motd.ricardo
@ricardoanguiano
ricardoanguiano / x11-listen.txt
Last active August 14, 2023 13:41
How to display an X11 application on remote Ubuntu system
Based on this page:
http://askubuntu.com/questions/72812/how-to-disable-nolisten
How to display an X11 application on remote Ubuntu system
display-host: ubuntu linux running X11 server
app-host: other linux with an X11 application
On the display-host:
@ricardoanguiano
ricardoanguiano / digital-ocean-notes.txt
Last active August 29, 2015 14:05
digital ocean notes
Networking
Traceroute says 8 hops to the SF DO instance from home.
Ping says 35ms.
OS
root@godel:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
@ricardoanguiano
ricardoanguiano / gist:21bef3556929bccf7d7b
Last active August 29, 2015 14:10
Entry Methods for Trademark, Copyright, and Registered Copyright Signs
Symbol Name Symbol Word Alt+Code Emacs Mac
TRADEMARK SIGN Ctrl+Alt+T 0153 C-x 8 TRADEMARK SIGN Option+2
COPYRIGHT SIGN © Ctrl+Alt+C 0169 C-x 8 COPYRIGHT SIGN Option+g
REGISTERED SIGN ® Ctrl+Alt+R 0174 C-x 8 REGISTERED SIGN Option+r