Skip to content

Instantly share code, notes, and snippets.

@ssledz
ssledz / asus-bt400-linux-install.md
Last active March 10, 2024 11:13
Linux Installation guide for Asus USB-BT400

Download driver

curl 'https://dlcdnets.asus.com/pub/ASUS/wireless/USB-BT400/DR_USB_BT400_1201710_Windows.zip' \
  -o bt400-driver.zip

Driver & tools for bt400 can be found here

Find out what is a filename for your driver

Plug device and do

= Resources =
* zsh - http://www.zsh.org/
* ZSH-LOVERS - http://grml.org/zsh/zsh-lovers.html
* manual - http://zsh.sourceforge.net/Doc/Release/index.html
* oh-my-zsh - https://github.com/robbyrussell/oh-my-zsh
* prezo - https://github.com/sorin-ionescu/prezto
* zsh-users - https://github.com/zsh-users
= Functions =
@ssledz
ssledz / bash-cheat-sheet
Created May 21, 2016 14:36
BASH Cheat Sheet
B A S H C H E A T S H E E T
to page output forward (only): command filename | more
to page output forward & back: command filename | less
to print a dataset: lp datasetname (-d printerid) (-o landscape)
USE OF QUOTATION MARKS
echo "$varname" = echo The value of \$varname is \"$varname\"
= echo "The value of \$varname is \"$varname\"."
$fred='Four spaces between these words.'
@ssledz
ssledz / install-node.md
Last active March 4, 2023 20:00
Install node & npm

install nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

install node

nvm install v18.14.2
(use-package lsp-haskell
:config
(setq lsp-haskell-process-path-hie "haskell-language-server-wrapper")
;; xref backends don't compose. This creates one that first consults the
;; xref-lsp backend for the latest information from the language server,
;; and then falls through to etags for library definitions.
(defun my/xref-lsp-etags-backend () 'my/lsp-etags)
(cl-defmethod xref-backend-identifier-at-point ((_backend (eql my/lsp-etags)))
(xref-backend-identifier-at-point 'xref-lsp))
@ssledz
ssledz / spacemacs-keybindings.md
Created January 26, 2022 12:54 — forked from rnwolf/spacemacs-keybindings.md
spacemacs keybindings that i need to learn

Check cors origin policy

curl -v -X OPTIONS \
  --header 'Origin: http://some.origin.here' \
  --header 'Access-Control-Request-Method: GET' \
  http://localhost:8085/tokens 

Remove dangling images

docker image prune

Remove dangling volumes

docker volume prune

cabal

Installing library

cabal update && cabal new-install --lib codeworld-api

lists