Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
70534: mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366304256 (0x800643000)
70534: issetugid() = 0 (0x0)
70534: lstat("/etc",{ mode=drwxr-xr-x ,inode=36,size=117,blksize=7680 }) = 0 (0x0)
70534: lstat("/etc/libmap.conf",{ mode=-rw-r--r-- ,inode=7589,size=47,blksize=4096 }) = 0 (0x0)
70534: openat(AT_FDCWD,"/etc/libmap.conf",O_CLOEXEC,00) = 3 (0x3)
70534: fstat(3,{ mode=-rw-r--r-- ,inode=7589,size=47,blksize=4096 }) = 0 (0x0)
70534: mmap(0x0,47,PROT_READ,MAP_PRIVATE,3,0x0) = 34366337024 (0x80064b000)
70534: close(3) = 0 (0x0)
70534: lstat("/usr",{ mode=drwxr-xr-x ,inode=9,size=16,blksize=4096 }) = 0 (0x0)
70534: lstat("/usr/local",{ mode=drwxr-xr-x ,inode=1030,size=28,blksize=4096 }) = 0 (0x0)
@yarwelp
yarwelp / comp.md
Last active May 2, 2017 09:06
Compare files in two directory trees

Compare files in two directory trees

Example directory trees:

mkdir -p ~/tmp/{hurr,durr}/{a,b,c,d}/

for i in ~/tmp/{hurr,durr}/{a,b,c,d}/k ; do echo "cool beans" > $i ; done

echo yo > ~/tmp/hurr/a/fo_sho
@yarwelp
yarwelp / LICENSE
Created March 13, 2017 23:31
The ISC license
Copyright (c) YYYY John Doe <john.doe@example.com>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
STYLE_WEIGHT=5e2
STYLE_SCALE=1.0
th neural_style.lua \
-content_image examples/inputs/hoovertowernight.jpg \
-style_image starry_night_gigapixel.jpg \
-style_scale $STYLE_SCALE \
-print_iter 1 \
-style_weight $STYLE_WEIGHT \
-image_size 256 \
@yarwelp
yarwelp / i2c.md
Last active August 31, 2016 15:30
Investigating DDC/CI communication with ASUS PB287 monitor from Fedora 23 Linux on MSI Cubi with Intel HD Graphics 5500

DDC/CI -- ASUS PB287 / Fedora 23 / MSI Cubi / Intel HD Graphics 5500

Investigating DDC/CI communication with ASUS PB287 monitor from Fedora 23 Linux on MSI Cubi with Intel HD Graphics 5500

i2cdetect -l

i2c-0	unknown   	i915 gmbus vga                  	N/A
i2c-1	unknown   	i915 gmbus dpc                  	N/A
i2c-2	unknown   	i915 gmbus dpb                  	N/A
@yarwelp
yarwelp / dt4000zc.md
Last active August 31, 2016 10:43
Reading Digitek DT-4000ZC measurments over USB on Fedora 23 Linux

Reading Digitek DT-4000ZC measurments over USB on Fedora 23

sudo dnf install sigrok-cli
sudo sigrok-cli --driver=digitek-dt4000zc:conn=/dev/ttyUSB0 -O analog --continuous
@yarwelp
yarwelp / RPi3B.md
Last active September 4, 2016 20:35
Raspberry Pi 3 Model B config

Raspberry Pi 3 Model B config

Download the "Raspbian Lite" minimal image from https://www.raspberrypi.org/downloads/, unzip it and dd it to a microSD card. Insert microSD into your Raspberry Pi 3 Model B (RPi), attach keyboard, video-monitor and mouse. Power on the RPi.

Set hostname. I'll call mine rpi3b. Use something you like.

@yarwelp
yarwelp / README.md
Last active August 24, 2016 17:00
FreeBSD 11.0 -- ATmega32 blink LED

FreeBSD 11.0 -- ATmega32 blink LED

  1. Connect the Sparkfun AVR Pocket Programmer via USB to the FreeBSD 11.0 computer.
  2. Connect the Sparkfun AVR Pocket Programmer to the ATmega32 using a breadboard, the AVR Programming Cable and some jumper wires.
  3. Connect the positive lead of the 2V LED in series with a 330 ohm resistor to pin 0 of the ATmega32.
  4. Connect the negative lead of the 2V LED to ground.
  5. In the directory of the attached file blink.c, run the following commands.
@yarwelp
yarwelp / time_travel_trigger.sql
Created August 23, 2016 23:05 — forked from myitcv/time_travel_trigger.sql
Trigger-based equivalent of old PostgreSQL time travel module - see http://blog.myitcv.org.uk/2014/02/25/row-level-version-control-with-postgresql.html for more details
/*
Copyright (c) 2015 Paul Jolly <paul@myitcv.org.uk)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Keybase proof

I hereby claim:

  • I am eriknstr on github.
  • I am eriknstr (https://keybase.io/eriknstr) on keybase.
  • I have a public key ASAOsZkMKxijZq6ENm1kFUAglvtSZE0XiDeWUumsLcms9Qo

To claim this, I am signing this object: