Ben's Blog

miscellaneous ben July 27, 2010

Trip of doom – bunk beds!


I feel like a kid.

miscellaneous ben July 26, 2010

Trip of doom – brandon being a giant dork

miscellaneous ben July 26, 2010

Trip of doom – campsite 2

miscellaneous ben July 26, 2010

Trip of doom – Grand Teton

miscellaneous ben July 26, 2010

Trip of doom – Paradise valley Montana


miscellaneous ben July 25, 2010

Trip of doom – Jackson valley

miscellaneous ben July 25, 2010

Trip of doom – lesson 1

miscellaneous ben July 24, 2010

Trip of doom – brandon

miscellaneous ben July 24, 2010

Trip of doom – that's all there was…


just need to keep busy, it was that or a full geological history of
Yellowstone.

miscellaneous ben July 24, 2010

Trip of doom – first night

miscellaneous ben July 24, 2010

Trip of doom – Jackson Wyoming


Le repos du guerrier

miscellaneous ben July 24, 2010

Trip of doom – Idaho

miscellaneous ben July 24, 2010

Trip of doom – Montpellier, Idaho

miscellaneous ben July 24, 2010

Trip of doom – bear lake

miscellaneous ben July 22, 2010

trip of doom – getting ready

mapHere’s an approximate map of the little loop we’re going for.

I.T., unix / linux ben July 22, 2010

process file descriptor count

I’ve recently had to deal with a process leaking file descriptors. The following command came in handy as a quick way to count how many file descriptors a process is using.

Let’s say that we want to count them for the process(es) called firefox:

[bash]ps -ae | grep firefox | perl -lane ‘print $F[0]’ | while read filename; do ls /proc/$filename/fd; done | wc -w[/bash]

TADAA!

life in the U.S. ben March 24, 2010

This just cracks me up

20100311062Found in a bargain bin…

life in the U.S. ben March 19, 2010

Chase is not even trying anymore

201003020531

What a bunch of morons.

life in the U.S. ben December 22, 2009

Shit I get in the mail #4

Des tares qui afligent la societe Americaine, la chretientee est la plus perverse. Croire l’absurde et l’imposer sont des sports nationaux qui influencent meme la vie non-chretiens. Ainsi beaucoup de lois proposees et trop souvent adoptees visent a imposer un agenda religieux dans un pays ou la separation de l’eglise et de l’Etat est constament aggressee. Ces freaks essayent d’imposer l’enseignement du “inteligent design” dans des classes de sciences payees par l’Etat. Beaucoup croient que la terre n’est vieille que de 3000 ans et que les premiers hommes vivaients avec des dinosaures, l’evolution est bien sur la cible de ces agressions sans regard pour la raison. Par contre quand il s’agit de pomper 50L d’essence dans leur SUV, ca viendrai pas a l’idee que le procede de decomposition de matiere organique en petrol prend bien plus que 3000 ans. Bref, l’hypocrisie religieuse reigne et freine le progres social et scientifique.

Voici un cool courier recu recement,

jesus01

note 1: the red markings weren’t added by us

note 2: these are real pennies

note 3: You’re reading this right, take these 2 pennies that jesus is giving you, shove them in your shoes and then I don’t know… fucking, walk with them and your ass will be blessed.

unix / linux ben October 28, 2009

VM stuck on a task

I’ve recently lost control of a VM that was stuck at 95% of a task. I waited and tried to regain control of the VM, nothing helped. This is how I got around it:

[code]
SSH into the ESX on which the VM is instantiated
cat /proc/vmware/vm/*/names | grep <vm_name>
note the vmid
/proc/vmware/vm/<vmid>/cpu/status
note the group vmid
/usr/lib/vmware/bin/vmkload_app -k 9 <group_vmid>
[/code]

That’s it!

life in the U.S. ben September 27, 2009

Sacrilegious food

2009-09-07-202043

[insert gag reflex onomatopoeia here]

I.T., unix / linux ben September 03, 2009

ssh tunnel to circumvent a firewall

My work place like many others has a pretty restrictive firewall that doesn’t let me ssh into my own machine. To get in the network, one has to use VPN which means that a furious battle will rage getting this to work in linux; but above all you won’t get to ssh from your phone.

So if you have a home server, run the following command on your work machine and it will create a tunnel from your work machine to your home server:

[bash]ssh -f -N -R 1337:localhost:22 root@home_server[/bash]

Now login to your home server and when you

[bash]ssh localhost -p 1337[/bash]

You will in fact be sshing to your work machine via magic fairies & such.

It adds a level of indirection which sucks major balls, so you can copy some keys and get all that automated but I don’t want to go into these details. Figure it out.

You can go away now.

I.T., unix / linux ben September 02, 2009

Count how many file descriptors are being used by every process of a certain name

here’s a neat little command:

ps -ae | grep <process_name> | perl -lane ‘print $F[0]’ | while read filename; do ls /proc/$filename/fd; done | wc -w

just replace process_name by httpd for example and it’ll tell you how many file descriptions are in use by all the processes with http in them.

Posts pagination

← Previous 1 … 50 51 52 Next →

This blog is solar powered

Interactive

Handwriting Capture
Mandalagaba
IPv6 link-local to MAC converter
IPv6 MAC to link-local converter
Markov Text Generation
Markov Word Generation
Markov Music Generation
Duplogrifier
Flood Fill Algorithms
Homestead Metrics
RGB Playground
Web Games

Categories

  • aesthetics111
    • plots54
    • specular holography6
  • Books3
  • I.T.202
    • 3D modeling / printing21
    • AI6
    • all out geekery36
    • electronics27
    • homestead automation6
    • maniacal paranoia25
    • plotters49
    • unix / linux29
    • video games4
    • web development29
    • web games3
  • Lego / Duplo67
  • life in the U.S.42
  • miscellaneous202
  • nature encounters114
  • old vinyls3
  • organs2
  • self sustainability560
    • agriculture105
    • apiculture38
    • apple20
    • building131
    • canning3
    • crochet6
    • foraging6
    • hunting10
    • maple syrup47
    • poultry39
    • preserving2
    • solar power28
    • water23
    • wood84
  • trip to a new life6
Theme by Bloompixel. Proudly Powered by WordPress