Skip to content

Instantly share code, notes, and snippets.

View j1cs's full-sized avatar
😺
Im on #cat-v mostly

Juan Cuzmar j1cs

😺
Im on #cat-v mostly
View GitHub Profile
@j1cs
j1cs / how_to_bluetooth.md
Last active May 22, 2020 04:10 — forked from yejun/how_to_bluetooth.md
Use pulseaudio as bluetooth speaker on archlinux

Install packages

  • bluez
  • bluez-utils
  • pulseaudio-bluetooth

Enable bluetooth

Edit /etc/bluetooth/main.conf, uncomment following lines

adobe-source-sans-pro-fonts
adobe-source-serif-pro-fonts
artix-backgrounds
autoconf
automake
base
binutils
bison
brave-bin
blueman
adobe-source-sans-pro-fonts
adobe-source-serif-pro-fonts
artix-backgrounds
autoconf
automake
base
binutils
bison
brave-bin
connman-gtk
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
[
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
@j1cs
j1cs / main.go
Last active December 6, 2019 15:07 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@j1cs
j1cs / vimrc
Created October 15, 2019 01:27
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
@j1cs
j1cs / mailpile
Last active September 11, 2019 02:56
mailpile init with screen(pretty dirty)
#!/bin/bash
### BEGIN INIT INFO
# Provides: mailpile
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop mailpile daemon
### END INIT INFO
# ——————————————————————————
quiet loglevel=0 vga=current console=tty2 rd.udev.log_priority=0 vt.global_cursor_default=0 mitigations=off
@j1cs
j1cs / wetty
Last active September 11, 2019 02:55
#!/bin/sh
### BEGIN INIT INFO
# Provides: wetty
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start wetty daemon
# Description: Start/stop wetty
### END INIT INFO
log_format sniffing '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for" "$request_body" "$http_Authorization" "$http_x_duid" "$http_x_ver" "$upstream_http_x_rqid"';
upstream backend {
server server.local:7003;
server server.local:7003;
}
server {
listen 80;
server_name server2.local;