Skip to content

Instantly share code, notes, and snippets.

View stefandanaita's full-sized avatar
🦀
Rusting like there's no tomorrow

Stefan Danaita stefandanaita

🦀
Rusting like there's no tomorrow
View GitHub Profile
@stefandanaita
stefandanaita / .tmux.conf
Created May 16, 2016 15:56 — forked from zjrosen1/.tmux.conf
Tmux Configuration
# | |_ _ __ ___ _ ___ __ #
# | __| '_ ` _ \| | | \ \/ / #
# | |_| | | | | | |_| |> < #
# \__|_| |_| |_|\__,_/_/\_\ #
# 1 0 | VIM | 2:bash 20:04
# [ Reset Prefix ] {{{1
set -g prefix C-a
bind-key a send-prefix # for nested tmux sessions
@stefandanaita
stefandanaita / .tmux.conf
Created May 16, 2016 16:40
Default tmux config
assume-paste-time 1
base-index 0
bell-action any
bell-on-alert off
default-command ""
default-shell "/usr/bin/zsh"
destroy-unattached off
detach-on-destroy on
display-panes-active-colour red
display-panes-colour blue
@stefandanaita
stefandanaita / nightmarejs.sh
Last active September 23, 2020 13:56
Nightmare.js on Ubuntu - Dependencies
sudo apt-get install -y --allow-unauthenticated \
xvfb \
x11-xkb-utils \
xfonts-100dpi \
xfonts-75dpi \
xfonts-scalable \
xfonts-cyrillic \
x11-apps \
clang \
libdbus-1-dev \

Keybase proof

I hereby claim:

  • I am stefandanaita on github.
  • I am stefandanaita (https://keybase.io/stefandanaita) on keybase.
  • I have a public key ASAb-0auL-3He867obbOQ9f89e_6mW99ReZs4_ema6HVlwo

To claim this, I am signing this object:

@stefandanaita
stefandanaita / oh-my-zsh.sh
Created April 28, 2019 01:19
Oh-My-Zsh installer without running it
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
@stefandanaita
stefandanaita / cf-logpush-destination-worker.ts
Last active January 7, 2023 19:26
Code for a worker that can receive logpush http requests and parse the contents using streams
// SPDX-License-Identifier: MIT-0
export interface Env {
}
export default {
async fetch(
request: Request,
env: Env,