Skip to content

Instantly share code, notes, and snippets.

View nakamuraos's full-sized avatar
🎯
Focusing

Thinh Hoang nakamuraos

🎯
Focusing
View GitHub Profile
@nakamuraos
nakamuraos / .htaccess
Last active April 25, 2024 04:23
PHP Boom Online
Deny From All
@nakamuraos
nakamuraos / down.sh
Last active August 23, 2023 05:31
Termux GUI: Volume control + Show current volume
#!/usr/bin/env bash
# vol down
pactl set-sink-volume @DEFAULT_SINK@ -5%
# get current vol
STATUS=$(pactl list sinks | grep '^[[:space:]]Volume:' | \
head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
# show current vol
@nakamuraos
nakamuraos / .xsessionrc
Last active March 4, 2023 18:07
Fix touchscreen position for Asus Dual Screen (UX8402ZE,...)
#!/bin/bash
# Fix touchscreen position, see
# https://forums.linuxmint.com/viewtopic.php?f=49&t=333354&p=1908272#p1908272
# https://askubuntu.com/questions/1061452/making-xinput-map-to-output-permanent/1285897#1285897
# Make sure you are running correctly in case of multiple OS usage
if [ $(uname -n) == 'Zenbook-UX8402ZE' ]
then
sleep 10
@nakamuraos
nakamuraos / clone-all-repository-github.sh
Last active February 9, 2022 01:20
Clone all repository on GitHub
#!/bin/bash
# Author: NakamuraOS
# https://github.com/nakamuraos
# Last update: 2021/24/11
# =================
# Default value
# Token string
TOKEN=''
@nakamuraos
nakamuraos / reset-trial-navicat.sh
Last active April 25, 2024 07:31
Reset trial Navicat 15, Navicat 16 on Linux
#!/bin/bash
# Author: NakamuraOS
# https://github.com/nakamuraos
# Latest update: 30/03/2022
# Tested on Navicat 15.x, 16.x on Linux
RED="\e[1;31m"
ENDCOLOR="\e[0m"