Skip to content

Instantly share code, notes, and snippets.

@psibi
psibi / namespace_telemetry.yaml
Created December 6, 2022 04:56
Telemetry for specific namespace
apiVersion: telemetry.istio.io/v1alpha1
kind: Telemetry
metadata:
name: base-app-logging
namespace: base-app
spec:
accessLogging:
- disabled: false
- providers:
- name: envoy
@psibi
psibi / dtruss_log3.txt
Created June 17, 2022 03:22
dtruss_log3
dtrace: system integrity protection is on, some features will not be available
PID/THRD SYSCALL(args) = return
Initiating Stack integration test running
Using stack located at /Users/ec2-user/.local/bin/stack
Version 2.7.6, Git revision 2ca42d14d5f699dd9fe1cf13c66bf95cfb6b7c0e (8605 commits) RELEASE-CANDIDATE x86_64
Compiled with:
- Cabal-3.6.3.0
- Cabal-syntax-3.6.0.0
- Glob-0.10.2
@psibi
psibi / dtruss_log2.txt
Created June 16, 2022 15:57
Dtruss log 2
dtrace: system integrity protection is on, some features will not be available
PID/THRD SYSCALL(args) = return
Initiating Stack integration test running
stack-integration-test: Executable named runghc not found on path: ["/usr/local/bin","/usr/bin","/bin","/usr/sbin","/sbin"]
7508/0x2f6ce2: fork() = 0 2
7508/0x2f6ce2: open("/dev/dtracehelper\0", 0x2, 0x0) = 3 0
7508/0x2f6ce2: ioctl(0x3, 0x80086804, 0x7FFEE88D7A40) = 0 0
7508/0x2f6ce2: close(0x3) = 0 0
7508/0x2f6ce2: mprotect(0x10752B000, 0x14000, 0x1) = 0 0
7508/0x2f6ce2: access("/AppleInternal/XBS/.isChrooted\0", 0x0, 0x0) = -1 2
@psibi
psibi / dtruss.txt
Created June 16, 2022 13:18
dtruss_process_log
dtrace: system integrity protection is on, some features will not be available
SYSCALL(args) = return
Initiating Stack integration test running
Using stack located at /Users/ec2-user/.local/bin/stack
Version 2.7.6, Git revision 2ca42d14d5f699dd9fe1cf13c66bf95cfb6b7c0e (8605 commits) RELEASE-CANDIDATE x86_64
Compiled with:
- Cabal-3.6.3.0
- Cabal-syntax-3.6.0.0
- Glob-0.10.2
- OneTuple-0.3.1
@psibi
psibi / records.sml
Created January 31, 2013 11:10
Pattern Matching Records in SML
(* Pattern Matching in Records
Let us pattern match {first:string,second:string,third:string}
*)
(*You should not code like this.
This code will produce a type of val test = fn : {a:'a, b:'b, c:'c} -> {first:'a, second:'b, third:'c}
So, it creates actually records with fields of a, b and c. This is not what you want.
*)
fun test e =
@psibi
psibi / xmobar.org
Last active June 9, 2020 17:50
ZuriHac 2020 Xmobar ideas

You could pick up any tasks in the issue tracker. But I’m putting some tasks here on this gist for easy accessibility:

Intermediate/Advanced tasks

@psibi
psibi / log.txt
Created April 20, 2020 16:56
xmobar strace log
recvmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\16\0\323\0\3\0\200\2\0\0>\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 64
futex(0x197b7ec, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x197b7f0, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigprocmask(SIG_BLOCK, [INT QUIT USR1 USR2 TERM], [], 8) = 0
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {tv_sec=0, tv_nsec=25686386}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x197bb0c, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x197bb10, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x6b8948, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x197b7e8, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
@psibi
psibi / index.html
Created October 22, 2012 16:02
OpenLayer Popup Working Code
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers map preview</title>
<!-- Import OL CSS, auto import does not work with our minified OL.js build -->
<link rel="stylesheet" type="text/css" href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>
<!-- Basic CSS definitions -->
<style type="text/css">
@psibi
psibi / lineage_install.md
Last active November 11, 2019 09:28
Lineage os
@psibi
psibi / repo.hs
Created July 6, 2019 19:54
repo.hs
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Pantry.Repo
( fetchReposRaw
, fetchRepos
, getRepo
, getRepoKey
, createRepoArchive
, withRepoArchive