Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
never gonna git u up, never gona git u down, never gonna turn around and reset u

Anil Madhavapeddy avsm

💭
never gonna git u up, never gona git u down, never gonna turn around and reset u
View GitHub Profile
View bigarray-mapfile-grep.txt
batteries.2.9.0/src/batBigarray.mliv: val map_file:
batteries.2.9.0/src/batBigarray.mliv: [Genarray.map_file fd kind layout shared dims]
batteries.2.9.0/src/batBigarray.mliv: [Genarray.map_file] is much more efficient than reading
batteries.2.9.0/src/batBigarray.mliv: [-1]. [Genarray.map_file] then determines the major dimension
batteries.2.9.0/src/batBigarray.mliv: val map_file: Unix.file_descr -> ?pos:int64 -> ('a, 'b) kind -> 'c layout ->
batteries.2.9.0/src/batBigarray.mliv: See {!Bigarray.Genarray.map_file} for more details. *)
batteries.2.9.0/src/batBigarray.mliv: val map_file: Unix.file_descr -> ?pos:int64 -> ('a, 'b) kind -> 'c layout ->
batteries.2.9.0/src/batBigarray.mliv: See {!Bigarray.Genarray.map_file} for more details. *)
batteries.2.9.0/src/batBigarray.mliv: val map_file: Unix.file_descr -> ?pos:int64 -> ('a, 'b) kind -> 'c layout ->
batteries.2.9.0/src/batBigarray.mliv: See {!Bigarray.Genarray.map_file} for more details. *)
@avsm
avsm / no-jbuild.txt
Created Jul 5, 2017
MirageOS JBuilder progress
View no-jbuild.txt
alcotest.0.7.2
arp.0.2.0
asn1-combinators.0.1.3
astring.0.8.3
biniou.1.0.13
bisect_ppx.1.2.0
bos.0.1.6
camomile.0.8.5
cmdliner.1.0.0
cohttp.0.22.0
View gist:1d6c3bf85a3eed13f79f330da7da6f28
#!/bin/sh
sudo add-apt-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.9 main'
curl -L http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install llvm-3.9-dev
@avsm
avsm / Mirage in October
Created Nov 2, 2016
Mirage relevant releases in October 16
View Mirage in October
# This month in Mirage OPAM releases (Wed Nov 02 2016)
### scrypt-kdf 0.2.0
* *Released on:* Mon Oct 31 2016
* *Synopsis*: The scrypt Password-Based Key Derivation Function in pure OCaml
* *More Info*: [OPAM Page](https://opam.ocaml.org/packages/scrypt-kdf/scrypt-kdf.0.2.0/) or [Source Code](https://github.com/abeaumont/ocaml-scrypt-kdf/archive/0.2.0.tar.gz)
* *Changes*: [changes-scrypt-kdf.txt](#file-changes-scrypt-kdf-txt)
### topkg-care 0.8.0
@avsm
avsm / dockerdev.sh
Created Jun 17, 2016
Build and install Docker master on an Ubuntu cloud VM
View dockerdev.sh
#!/bin/sh -e
# Build and install latest Docker dev version on an Ubuntu cloud VM
install() {
echo Installing
service docker stop || true
cp -av bundles/latest/binary-daemon/* /usr/bin
cp -av bundles/latest/binary-client/* /usr/bin
service docker start
}
View README.md

maki 0.1

  • Released on: 2016-05-25 15:18:52 +00:00
  • Synopsis: Persistent incremental computations, for repeatable tests and benchmarks.
  • More Info: Source Code or OPAM Page
  • Changes: Unknown

odepack 0.6.7

  • Released on: 2016-05-25 18:26:45 +00:00
@avsm
avsm / usr_local_bin_opam
Created Feb 24, 2015
systrace policy for opam
View usr_local_bin_opam
# Policy for opam.
#
Policy: /usr/local/bin/opam, Emulation: native
native-rename: filename match "/tmp/*" and filename[1] match "/tmp/*" then permit
native-rename: filename match "/tmp/*" and filename[1] match "$HOME/.opam/*" then permit
native-rename: filename match "$HOME/.opam/*" and filename[1] match "$HOME/.opam/*" then permit
native-rename: filename match "$HOME/.opam/*" and filename[1] match "/tmp/*" then permit
native-chown: filename match "$HOME/.opam/*" then permit
native-chown: filename match "/tmp/*" then permit
native-fswrite: filename match "/tmp/*" then permit
@avsm
avsm / gist:bd4511551c2cbda713c9
Created Feb 10, 2015
testing some unix stuff
View gist:bd4511551c2cbda713c9
open Unix
let () =
let server_sock = socket PF_INET SOCK_STREAM 0 in
(* so we can restart our server quickly *)
setsockopt server_sock SO_REUSEADDR true ;
if not (getsockopt server_sock SO_REUSEADDR) then prerr_endline "fail1";
(* build up my socket address *)
@avsm
avsm / opam install
Last active Aug 29, 2015 — forked from anonymous/foo
Reproduced failure with debugging for https://github.com/mirage/mirage-skeleton/issues/59
View opam install
00:00.000 046309 46309 locking /home/avsm/.opam/lock
00:00.000 046309 FILE(config) Read ~/.opam/config in 0.000s
00:00.000 046309 SYSTEM unlocking /home/avsm/.opam/lock (46309)
00:00.000 046309 SYSTEM rm /home/avsm/.opam/lock
00:00.000 046309 STATE LOAD-STATE(switch-lock)
00:00.000 046309 FILE(config) Read ~/.opam/config in 0.000s
00:00.013 046309 STATE Loaded /home/avsm/.opam/state.cache in 0.011s
00:00.013 046309 FILE(aliases) Read ~/.opam/aliases in 0.000s
00:00.018 046309 FILE(repo-config) Read ~/.opam/repo/default/config in 0.000s
00:00.058 046309 FILE(repo-index) Read ~/.opam/repo/package-index in 0.021s
@avsm
avsm / install-mirage.sh
Last active Aug 29, 2015
Install Mirage using opam-installext
View install-mirage.sh
#!/bin/sh -ex
opam remote add mirage git://github.com/mirage/mirage-dev
opam installext -j 3 mirage-www
eval `opam config env`
git clone git://github.com/mirage/mirage-skeleton
cd mirage-skeleton
make configure && make build