Skip to content

Instantly share code, notes, and snippets.

View couchemar's full-sized avatar

Andrey Pavlov couchemar

View GitHub Profile
@couchemar
couchemar / default.nix
Created December 24, 2019 20:09
Cross compile with toolchain
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
toolchain = stdenv.mkDerivation {
name = "toolchain";
src = fetchurl {
url = "https://toolchains.bootlin.com/downloads/releases/toolchains/armv5-eabi/tarballs/armv5-eabi--uclibc--stable-2018.11-1.tar.bz2";
$ nix-shell -p nodejs-8_x
$ npm config set prefix=`pwd`/node_modules
$ npm install -g reason-cli@3.1.0-linux
/home/andrey/develop/tmp/node_modules/bin/rtop -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/rtop
/home/andrey/develop/tmp/node_modules/bin/ocamlmerlin-reason -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/ocamlmerlin-reason
/home/andrey/develop/tmp/node_modules/bin/ocamlmerlin -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/ocamlmerlin
/home/andrey/develop/tmp/node_modules/bin/utop -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/utop
/home/andrey/develop/tmp/node_modules/bin/reopt -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/reopt
/home/andrey/develop/tmp/node_modules/bin/refmttype -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/refmttype
/home/andrey/develop/tmp/node_modules/bin/rebuild -> /home/andrey/develop/tmp/node_modules/lib/node_modul
#EXTM3U
#EXTINF:0,Luxury
http://192.168.0.1:4022/udp/239.239.3.27:5239
#EXTINF:0,Russian MusicBox HD
http://192.168.0.1:4022/udp/239.239.3.38:5239
#EXTINF:0,TVMChannel
http://192.168.0.1:4022/udp/239.239.3.32:5239
#EXTINF:0,Матч! ТВ HD
http://192.168.0.1:4022/udp/239.239.3.34:5239
#EXTINF:0,ТМВ
@couchemar
couchemar / nix-docker
Last active April 17, 2017 11:54 — forked from szobov/nix-docker
let
pkgs = import <nixpkgs> {};
in
{ }:
with pkgs;
let
urllib3_good = pkgs.pythonPackages.buildPythonPackage rec {
name = "urllib3-1.14";
{pkgs ? import <nixpkgs> {}, pypy? pkgs.pypy}:
pkgs.stdenv.mkDerivation {
name = "test";
buildInputs = [ pypy ];
}
$ tail -f nix-env.out
installing ‘python-2.7.9’
these derivations will be built:
/nix/store/3v5hknmci8mipwyrsnzp01imj034hzxj-binutils-2.23.1.drv
/nix/store/38hkdqpn6llzcbi88bhz3524m7258ahd-bootstrap-gcc-wrapper.drv
/nix/store/la97c4k0gykkvb1jsi4ffsb28k8g2wsy-stdenv-linux-boot.drv
/nix/store/clzcvf528yzkw0cd0k9vixb1wnmqvl9f-patchelf-0.8.drv
/nix/store/71i3cyw1y2h28chs7axs5f7n1ja7w29l-perl-5.20.1.drv
/nix/store/bbp6fd1glbn13j9l80rxmf4pchnyciqb-linux-headers-3.12.32.drv
/nix/store/fdv584xg1lsqgbfxwqhgn6rlf9b5f3xy-glibc-2.20.drv
@couchemar
couchemar / 0_reuse_code.js
Created June 24, 2014 07:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@couchemar
couchemar / gist:7823902
Created December 6, 2013 13:35
Swap in video ram
modprobe slram map=VRAM,0xd0400000,+0xfc00000
modprobe phram phram=VRAM,0xd0400000,0xfc00000
modprobe slram slram=mtd0,0xd0400000,+0xfc00000
modprobe mtdchar
mknod /dev/mtd0 c 90 0
modprobe mtdblock
mknod /dev/mtdblock0 b 31 0
mkswap /dev/mtdblock0
swapon /dev/mtdblock0 -p 10
import Data.List
import Control.Applicative
main = do
putStrLn $ intercalate " " $ (++) <$> [ "Happy Birthday"
, "С Днем Рождения"
, "Pen-blwydd Hapus" ]
<*> [ "!", "=)", ":)" ]
@couchemar
couchemar / xmonad.hs
Created June 8, 2012 09:16 — forked from myszek123/xmonad.hs
basic xmonad on ubuntu 11.10 oneiric ocelot, using gnome-classic
# Based off of http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Unity_2D
#
# /usr/share/xsessions/xmonad.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XMonad
Comment=Lightweight tiling window manager
Exec=xmonad
Icon=xmonad.png