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 / .travis-ci.sh
Created Sep 29, 2013
Sample Travis setup for OCaml projects
View .travis-ci.sh
# Edit this for your own project dependencies
OPAM_DEPENDS="ocamlfind ounit re"
case "$OCAML_VERSION,$OPAM_VERSION" in
3.12.1,1.0.0) ppa=avsm/ocaml312+opam10 ;;
3.12.1,1.1.0) ppa=avsm/ocaml312+opam11 ;;
4.00.1,1.0.0) ppa=avsm/ocaml40+opam10 ;;
4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;;
4.01.0,1.0.0) ppa=avsm/ocaml41+opam10 ;;
4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;;
View keybase.md

Keybase proof

I hereby claim:

  • I am avsm on github.
  • I am avsm (https://keybase.io/avsm) on keybase.
  • I have a public key whose fingerprint is 1544 531A 488B C857 42B1 BF59 2B83 0729 016D 8D09

To claim this, I am signing this object:

@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
@avsm
avsm / run_core_toplevel.ml
Created Jul 8, 2013
Script to run a toplevel script and output pretty html
View run_core_toplevel.ml
(* Syntax hightlight code and eval ocaml toplevel phrases.
* Based on http://github.com/ocaml/ocaml.org
* Modified by Anil Madhavapeddy for Real World OCaml and to use Core *)
open Printf
open Scanf
(* Run these phrases silently before any code *)
let initial_phrases = [
"#use \"topfind\"";
"#camlp4o";
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 / solver-error-29107-1.cudf
Created Jan 17, 2014
Solver error for opam/ocaml#1104
View solver-error-29107-1.cudf
#internal OPAM solver
preamble:
property: installed-root: bool = [false], reinstall: bool = [false], buildessential: bool = [false], essential: bool = [false], sourceversion: int = [1], sourcenumber: string = [""], source: string = [""], number: string, recommends: vpkgformula = [true!]
package: pa%5founit
version: 342
depends: type%5fconv = 342 , ocamlfind
conflicts: pa%5founit
number: 109.09.00
source: pa_ounit