Skip to content

Instantly share code, notes, and snippets.

@ordoghl
ordoghl / interactive_window_station.txt
Created September 21, 2022 20:23
Windows 11 Sound Blaster Omni 5.1 installation "This operation requires an interactive window station"
Windows 11 Sound Blaster Omni 5.1 installation "This operation requires an interactive window station"
In my case the ESET's Host Intrusion Prevention System (HIPS) caused the problem.
Disable that feature in ESET settings, reboot and try installing sb omni driver again.
@ordoghl
ordoghl / .tmux.conf
Last active April 13, 2019 09:03
Tmux configuration
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set-option -g mouse on
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
@ordoghl
ordoghl / fold_implementation.hs
Created October 17, 2018 08:53
Haskell foldl and foldr implementation
foldl' :: (a -> b -> a) -> a -> [b] -> a
foldl' fn acc [] = acc
foldl' fn acc (x:xs) = foldl' fn (fn acc x) xs
foldr' :: (a -> b -> b) -> b -> [a] -> b
foldr' fn acc [] = acc
foldr' fn acc (x:xs) = fn x (foldr' fn acc xs)
f :: Double -> Double -> Double
f = \acc x -> acc / x + 1
const f1 = x => x + 1
const f2 = x => x - 2
const f3 = x => x * 3
const f4 = x => x / 2
const add = (x, y) => x + y
// const g = x => f2(f3(f1(x)))
// Array.prototype.get = function() {
// return this[0]
@ordoghl
ordoghl / .psqlrc
Created July 23, 2018 06:36
psql settings
\set ON_ERROR_ROLLBACK interactive
\set COMP_KEYWORD_CASE upper
\set HISTFILE ~/.psql/history- :DBNAME
\set HISTSIZE -1
\set PROMPT1 '%[%033[33;1m%]%x%[%033[0m%]%[%033[1m%]%/%[%033[0m%]%R%# '
\x auto
\timing
\pset pager off
\pset null '¤'
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">

Keybase proof

I hereby claim:

  • I am ordoghl on github.
  • I am ordoghl (https://keybase.io/ordoghl) on keybase.
  • I have a public key ASBWX9tlKdL6M2-aK29Dgn0tSB9TSa0UIYTw4fu2MTTsKAo

To claim this, I am signing this object: