Skip to content

Instantly share code, notes, and snippets.

View errordeveloper's full-sized avatar

Ilya Dmitrichenko errordeveloper

View GitHub Profile
/* automatically generated by rust-bindgen */
pub type __int8_t = ::libc::c_char;
pub type __uint8_t = ::libc::c_uchar;
pub type __int16_t = ::libc::c_short;
pub type __uint16_t = ::libc::c_ushort;
pub type __int32_t = ::libc::c_int;
pub type __uint32_t = ::libc::c_uint;
pub type __int64_t = ::libc::c_longlong;
pub type __uint64_t = ::libc::c_ulonglong;
@errordeveloper
errordeveloper / travis.yml
Last active August 29, 2015 14:04
Travis config for a Rust project without `rustup.sh`
language: c
os:
- linux
- osx
matrix:
- os: osx
env: TARGET_TUPLE='x86_64-apple-darwin'
- os: linux
env: TARGET_TUPLE='x86_64-unknown-linux-gnu'
@errordeveloper
errordeveloper / bleach.sed
Created September 9, 2014 10:31
This script is invaluably useful in CI systems when we use some test runners which do not have an option to disable colourful output. source: http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed
#!/bin/sed -rf
s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g
@errordeveloper
errordeveloper / Dockerfile.build-core-image-minimal
Created September 16, 2014 13:52
Dockerfile snippets for Yocto
FROM gmacario/build-yocto
VOLUME [ "/home/build" ]
USER root
RUN chown build. /home/build
USER build
ENV HOME /home/build

Current state

    attach    Attach to a running container
    build     Build an image from a Dockerfile
    commit    Create a new image from a container's changes
    cp        Copy files/folders from a container's filesystem to the host path
    diff      Inspect changes on a container's filesystem
    events    Get real time events from the server
    export    Stream the contents of a container as a tar archive
    history   Show the history of an image
> gcloud compute instances create weave-11 --zone europe-west1-b
<...>
> gcloud compute ssh weave-11 --zone europe-west1-b --command 'curl https://get.docker.io/ | sudo bash && curl -L https://raw.github.com/zettio/weave/master/weave | sudo install --mode=0755 /dev/fd/0 /usr/local/bin/weave && sudo weave launch weave-12' ;
<...>
> gcloud compute ssh weave-11 --zone europe-west1-b
Warning: Permanently added '146.148.9.50' (RSA) to the list of known hosts.
@errordeveloper
errordeveloper / gist:630031
Created October 16, 2010 17:04
heroku redmine googledocs
ActionView::TemplateError (undefined method `get_values' for #<Class:0x2b1171d0be68>) on line #5 of vendor/plugins/redmine_googledocs/app/views/googledocs/_form.rhtml:
2: <div class="box">
3: <!--[form:document]-->
4: <p><label for="document_category_id"><%=l(:field_category)%></label>
5: <%= select('document', 'category_id', Enumeration.get_values('DCAT').collect {|c| [c.name, c.id]}) %></p>
6: <p>
7: <label for="document_type_id">Type</label>
8: <select id="document_type_id" name="document[type_id]"><option value="1">Document</option>
vendor/plugins/redmine_googledocs/app/views/googledocs/_form.rhtml:5:in `_run_rhtml_vendor47plugins47redmine_googledocs47app47views47googledocs47_form46rhtml_locals_form_object'
@errordeveloper
errordeveloper / polfresp.dat
Created May 12, 2011 19:40
polar frequncy response
## 0dBu sine wave (Hz|dBu)
# ANGLE: 0 45 90 135 180 225 270 315
20 -77 -79 -80 -79 -80 -80 -78 -79
25 -75 -79 -76 -78 -80 -79 -78 -77
30 -74 -75 -73 -76 -75 -76 -75 -75
40 -71 -72 -72 -75 -78 -75 -75 -72
50 -65 -66 -68 -69 -70 -69 -68 -65
65 -59.2 -60 -62 -64 -65 -63 -62 -59.8
80 -67.8 -88.7 -60.9 -60.0 -63.0 -62 -61 -58.2
100 -53.8 -54.8 -57.5 -53.9 -61.0 -60 -57.7 -54.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: iPhone SDK only available for arm-apple-darwin hosts, skipping tests
configure: Android SDK only available for arm-linux hosts, skipping tests
checking for style of include used by make... GNU
see if you can spot anything
$ cd ~/devel/pd/src/pd.git
$ make distclean-recursive ;
./configure --prefix=/usr/local/ \
> /tmp/pd_configure.log 2>/tmp/pd_configure.log && \
nice -5 make -j3 \
> /tmp/pd_make_stdout.log 2> /tmp/pd_make_stderr.log
the I run it and it makes terrible nois from the aduio test