Skip to content

Instantly share code, notes, and snippets.

Kakadu Kakadu

Block or report user

Report or block Kakadu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Kakadu
Kakadu / ExampleServer.ml
Created Dec 23, 2018
Part of issue for vscode-reasonm
View ExampleServer.ml
module Path = struct
type pathT
external join : string array -> string = "" [@@bs.module "path"] [@@bs.splice ]
end
module Express = struct
type expressT
external express : unit -> expressT = "" [@@bs.module ]
external use : expressT -> string -> unit = "use" [@@bs.send ]
external static : string -> string = "static" [@@bs.module "express"]
type responseT
View Expr.hs
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Prelude hiding (abs, const)
import Data.Char (digitToInt)
import Text.Parsec
import Text.Parsec.Expr
import Text.Parsec.Token (reservedOp)
import Text.Parsec.Combinator (between, sepBy1, chainr1)
import Data.List (elemIndex)
@Kakadu
Kakadu / test.ml
Created Jun 6, 2018
demo about generating types and CPS
View test.ml
open Ppxlib
let id x = x
let loc = Location.none
open Ast_builder.Default
let arrow1 = ptyp_arrow ~loc Nolabel
let arrow2 = pcty_arrow ~loc Nolabel
class c1 = object(self : 'self)
method fa1 : string -> ((core_type -> 'r) -> core_type -> 'r) -> (core_type -> 'r) =
View gist:8db2638edb91a08e2b423119abaa5622
➜ popcorn-dev git:(development) ✗ ./make_popcorn.sh
You appear to be inside of a Popcorn Time repository already, not cloning
Do you wish to install the required dependencies for Popcorn Time and setup for building? (yes/no) [yes] yes
Switched to /media/oldhome/kakadu/prog/popcorn-desktop/build/popcorn-dev
Installing global dependencies
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
@Kakadu
Kakadu / log.txt
Created May 15, 2018
Lablqt successful compilation log
View log.txt
➜ lablqml git:(master) ✗ ./configure
N.B. Don't forget to export right LD_LIBRARY_PATH and PKG_CONFIG_PATH for Qt5 before running this!
OCaml 4.06.1 found.
ocamlfind found.
qmake found for Qt 5.9.5
Compiling test C++&Qt application...
Test C++&Qt application is built successfully
/home/kakadu/.opam/4.06.1+fp+flambda/lib/lablqml
It seems that lablqml is already installed.
It may cause ocamlfind issues and/or annoying warnings. Please remove it!
View gist:28466ee496c090339ae94b6a69c156e6
kakadu ~$ sudo smartctl -a /dev/sda
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-20-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: WDC WDS120G2G0A-00JH30
Serial Number: 180358804938
LU WWN Device Id: 5 001b44 8b65603a8
Firmware Version: UE360000
User Capacity: 120 040 980 480 bytes [120 GB]
View gist:c4f6f91700498f96d9d408c79d9a7977
!song https://www.youtube.com/watch?v=SQ4a0vW0Y1o November Rain
!song https://www.youtube.com/watch?v=JAHA4Jh5jkw Girl, You'llbe a woman soon
!song https://www.youtube.com/watch?v=YOnb_rYejOc Gonna do bad things with you
!song https://www.youtube.com/watch?v=L0Ek7YAxAqQ Dreamer
!song https://www.youtube.com/watch?v=9joyOFEUVs8 Erase me
!song Delain April Rain
!song https://www.youtube.com/watch?v=L_NtCdMdGrg Rise of Sodom and Gomorra
!song https://www.youtube.com/watch?v=IZBlqcbpmxY Vodoo Child
!song https://www.youtube.com/watch?v=CFXvfBL4WkU John Petrucci - Glasgow Kiss
!song https://www.youtube.com/watch?v=zXeWOtjfVgw Rat salad (Black Sabbath)
View gist:df5a925e62bbc3ba38d7fc54f18a2e19
$ pactl list modules
Module #0
Name: module-device-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute state of devices"
module.version = "10.0"
@Kakadu
Kakadu / gist:11376c7cf78a2d168a590d1148b66e27
Created Dec 31, 2017
Arena Tracker log in a buggy network
View gist:11376c7cf78a2d168a590d1148b66e27
➜ ~ ~/bin/ArenaTracker
14:28:22 - MainWindow: Path Arena Tracker Dir: /home/kakadu/.local/share/Arena Tracker
14:28:22 - MainWindow: Platform: Linux Static
14:28:22 - MainWindow: Extra: Json Cards --> Trying: https://api.hearthstonejson.com/v1/latest/all/cards.json
14:28:22 - MainWindow: Extra: Json LightForge --> Download from: http://thelightforge.com/api/TierList/Latest?locale=enUS
14:28:22 - DeckHandler: Clear Draw List.
14:28:22 - DeckHandler: Deck list cleared.
14:28:22 - DeckHandler: New deck.
14:28:22 - DeckHandler: Loaded 1 decks from json file.
14:28:22 - LogLoader: Path Logs Dir: /home/kakadu/.wineWoW/drive_c/Program Files/Hearthstone/Logs - 60
View gist:8b0dc267fe1a6d5d916f94743da3a367
./ArenaTracker
22:51:18 - MainWindow: Path Arena Tracker Dir: /home/kakadu/.local/share/Arena Tracker
22:51:18 - MainWindow: Platform: Linux Static
22:51:18 - MainWindow: Extra: Json Cards --> Trying: https://api.hearthstonejson.com/v1/latest/all/cards.json
22:51:18 - MainWindow: Extra: Json LightForge --> Download from: http://thelightforge.com/api/TierList/Latest?locale=enUS
22:51:18 - DeckHandler: Clear Draw List.
22:51:18 - DeckHandler: Deck list cleared.
22:51:18 - DeckHandler: New deck.
22:51:18 - DeckHandler: Loaded 6 decks from json file.
You can’t perform that action at this time.