Skip to content

Instantly share code, notes, and snippets.

@sahya
sahya / twitter-x-style.user.js
Created November 8, 2025 03:17
twitter-x-style user script for min browser
// ==UserScript==
// @name Custom CSS for Twitter and X
// @version 1.0
// @description Inject custom CSS styles to adjust scrollbar and element dimensions on pro.twitter.com and pro.x.com.
// @match https://pro.twitter.com/*
// @match https://pro.x.com/*
// @run-at document-start
// ==/UserScript==
(function() {
@sahya
sahya / better_new_tweetdeck.css
Last active November 8, 2024 21:19
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
Last active March 7, 2025 18:35
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: