This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) { | |
char pointer[] = "asdf"; | |
1[pointer] = 'c'; | |
printf("%s\n", pointer); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_mtime_=1401766508 | |
_guessed_eapi_=exheres-0 | |
_exlibs_=easy-multibuild /var/db/paludis/repositories/arbor/exlibs 1388110791 multibuild /var/db/paludis/repositories/arbor/exlibs 1388110791 pypi /var/db/paludis/repositories/arbor/exlibs 1388110791 python /var/db/paludis/repositories/arbor/exlibs 1397451124 setup-py /var/db/paludis/repositories/arbor/exlibs 1402721559 | |
DEPENDENCIES=( build+run: dev-libs/openssl[>=0.9.8e] dev-python/cffi[>=0.8][python_abis:*(-)?] dev-python/six[>=1.4.1][python_abis:*(-)?] test: dev-python/iso8601[python_abis:*(-)?] dev-python/pretend[python_abis:*(-)?] dev-python/pytest[python_abis:*(-)?] ) [[ defined-in = [ cryptography-0.2.2.exheres-0 ] ]] ( build+run: python_abis:2.7? ( dev-lang/python:2.7 ) python_abis:3.2? ( dev-lang/python:3.2 ) python_abis:3.3? ( dev-lang/python:3.3 ) python_abis:3.4? ( dev-lang/python:3.4 ) ) [[ defined-in = [ python.exlib ] ]] ( build: dev-python/setuptools[python_abis:*(-)?] ( test: dev-python/pytest[python_abis:*(-)?] ) ) [[ defined-in = [ setup-py.exlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Drop this file into /etc/X11/xorg.conf.d | |
# This configures the middle and right-click areas at the *top* of the touchpad | |
# only. The main and bottom areas are left-click. | |
# The key setting is that AreaTopEdge is set to prevent you from moving the | |
# mouse cursor by accident while clicking the trackpoint buttons. | |
# Inspired by http://who-t.blogspot.ca/2013/12/lenovo-t440-touchpad-button.html | |
Section "InputClass" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class webserver { | |
concat { '/etc/apache/vhostsfile': | |
} | |
} | |
define webserver::vhost($param) { | |
concat::fragment { "webserver_vhost_$name": | |
target => '/etc/apache/vhostsfile', | |
content => template('vhost_template'), | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KV=3.8.2 | |
ROOT='UUID=27289277-6fc5-4b51-98b2-bb266d6b4898' | |
ROOTFLAGS='subvol=exherbo,discard,space_cache,inode_cache,noatime' | |
parameters="initrd=\\EFI\\Exherbo\\initramfs-$KV.img root=$ROOT rootflags=$ROOTFLAGS loglevel=3" | |
echo -n "$parameters" | iconv -f utf8 -t ucs2 | efibootmgr -c -d /dev/sda -p 1 -g -l "\\EFI\\Exherbo\\vmlinuz-$KV.efi" -L "Exherbo Linux $KV" -@ - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getWikiText(o, callback) { | |
if (!o['relations']) { | |
callback(''); | |
return; | |
} | |
var wikiLink; | |
for (var i = 0; i < o['relations'].length; ++i) { | |
if (o['relations'][i]['type'] == 'wikipedia') { | |
wikiLink = parseURL(o['relations'][i]['url']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ ==UserScript== | |
// @name MusicBrainz: Search Music Forest and add ISRCs | |
// @description This adds a link to Music Forest next to catalogue numbers on release pages and a link on the Music Forest page to add the ISRCs | |
// @version 20140408 | |
// @author - | |
// @namespace df069240-fe79-11dc-95ff-0800200c9a66 | |
// | |
// @include http://musicbrainz.org/release/* | |
// @include https://musicbrainz.org/release/* | |
// @include http://musicbrainz.org/release-group/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define atype ($interface_vip, $vip_addr_gw) { | |
file { "testfile-${interface_vip}": | |
content => template('testfile.erb'), | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define atype ( $a ) { | |
include aclass | |
} | |
class aclass { | |
notify { "$a": } | |
} | |
atype { "first": | |
a => 'foo', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gst-launch-1.0 filesrc location=01\ -\ 麻生夏子\ -\ Programming\ for\ non-fiction.mp3 \! decodebin \! audioconvert \! opusenc bitrate=128000 bandwidth=auto cbr=false constrained-vbr=false audio=true \! oggmux \! filesink location=test.opus | |
Caught SIGSEGV accessing address 0x4 | |
#0 0x00007f065ab45cea in waitpid () from /lib64/libpthread.so.0 | |
#1 0x00007f065ad712c8 in g_on_error_stack_trace () | |
#2 0x00000000004032de in fault_spin () | |
#3 fault_handler_sigaction (signum=<optimized out>, si=0x7fff654c5230, | |
#4 <signal handler called> | |
#5 0x00007f0659212d3f in opus_multistream_encoder_ctl () | |
#6 0x00007f065b076857 in gst_opus_enc_set_property (object=0x1197c00, | |
#7 0x00007f065af39ba3 in g_object_set_property () |