Skip to content

Instantly share code, notes, and snippets.

@sahya
sahya / better_new_tweetdeck.css
Last active December 10, 2023 16:53
Improve new tweetdeck with stylus
::-webkit-scrollbar{
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track{
background-color: #ccc;
border-radius: 5px;
}
::-webkit-scrollbar-thumb{
background-color: #667785;
@sahya
sahya / .prompt.bash
Created November 9, 2022 04:30
change prompt appearance
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$(parse_git_branch) \d \A \n\\$ \[\033[00m\]
@sahya
sahya / docker-compose.yaml
Created April 30, 2021 09:17
https-keycloak (docker-compose)
version: '3'
volumes:
postgres_data:
driver: local
certs:
networks:
backend:
internal: true
# coding: utf-8
def synthesize_text(text, path):
import os
from google.cloud import texttospeech
from pydub import AudioSegment
import pathlib
client = texttospeech.TextToSpeechClient()
@sahya
sahya / rsyslog-omhttp_build-cmd.bash
Created March 2, 2019 02:09
how to build command that omhttp module of rsyslog.
# how to command ofbuilding rsyslog.
# env: Ubuntu, 4.15.0-1027-gcp #28~16.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
# date: Fri Jan 18 10:10:51 UTC 2019
# cloning repo rsyslog
git clone https://github.com/rsyslog/rsyslog
cd ./rsyslog
sudo apt update
sudo apt install autoconf automake libtool
@sahya
sahya / docker-compose.yml
Last active August 16, 2018 05:22
keycloak-docker-compose (multi service)
# please : git clone https://github.com/weseek/growi-docker-compose.git
# special thanks : inductor
#------------------------------------
version: '3'
services:
nginx:
container_name: nginx
image: jwilder/nginx-proxy
restart: always
ports: