Skip to content

Instantly share code, notes, and snippets.

View xcession's full-sized avatar
πŸ›΄
Social distancing

Tharawut P. (ΠŸΡΠΉΠ½Ρ‚) xcession

πŸ›΄
Social distancing
View GitHub Profile
@xcession
xcession / customizer.php
Created October 31, 2022 01:54
[Custom side menu] WordPress customizer page side menu
/* Custom side menu -------------------- */
/* Custom side menu section */
$wp_customize->add_section(
'side_menu_section',
array(
'title' => __('Side Menu'),
'description' => __('Customize page side menu.'),
'panel' => 'theme_settings',
)
@xcession
xcession / arch-linux-gnome-install.md
Last active November 26, 2022 13:44 — forked from thacoon/arch-linux-gnome-install
Install a minimal gnome setup and some more useful things
@xcession
xcession / libinput_natural_scroll.md
Last active September 12, 2021 16:24
[LibInput Natural Scrolling] Enable LibInput Natural Scrolling #libinput #x11 #xorg

Edit /usr/share/X11/xorg.conf.d/40-libinput.conf

Add Option "NaturalScrolling" "True"

For mouse:

Section "InputClass"
 Identifier "libinput pointer catchall"
@xcession
xcession / linux-partition-scheme.md
Created August 27, 2020 13:51
[Linux Partition Scheme] My Linux partition scheme #archlinux

Label type = DOS (for Legacy systems)

Label type = GPT (for UEFI systems)

swap (/dev/sdX1)

  • Size = RAM amount
  • Partition type = Linux swap

/boot (/dev/sdX2)

  • Size = 300MB
@xcession
xcession / sample
Created August 8, 2020 16:53 — forked from slavfox/sample
Cozette sample file
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ β™‘ Cozette β™‘ ┃
┑━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ A B C D E F G H I J K L M β”‚
β”‚ N O P Q R S T U V W X Y Z β”‚
β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•‘
β”‚ 1 2 3 4 5 6 7 8 9 0 β”‚
β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•‘
@xcession
xcession / archlinux-bluetooth.md
Last active October 23, 2020 12:14
[Arch Linux - Bluetooth] Setting up Bluetooth in Arch Linux #archlinux #bluetooth

Installation

  • Install the bluez package:
$ sudo pacman -S bluez
  • Install the bluez-utils package:
@xcession
xcession / AdbCommands
Created May 17, 2020 21:49 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@xcession
xcession / docker-ps-format.md
Last active December 16, 2020 10:06
[docker ps format] custom docker ps output formatting #docker

Format string:

"ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n"

Usage:

$ docker ps --format="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n"
@xcession
xcession / dev-env-basic-android.md
Last active April 20, 2020 17:40
[dev env basic (android)] Android Basic Development Environment #coding #env #android

Android Basic Development Environment

     _                              
  __| | _____   __   ___ _ ____   __
 / _` |/ _ \ \ / /  / _ \ '_ \ \ / /
| (_| |  __/\ V /  |  __/ | | \ V / 
 \__,_|\___| \_/    \___|_| |_|\_/  
                       Android Basic
@xcession
xcession / dev-env-react-windows.md
Last active April 21, 2020 13:10
[dev env react (windows)] macOS React/React Native Development Environment #env #react #react-native #windows

Windows React/React Native Development Environment

     _                              
  __| | _____   __   ___ _ ____   __
 / _` |/ _ \ \ / /  / _ \ '_ \ \ / /
| (_| |  __/\ V /  |  __/ | | \ V / 
 \__,_|\___| \_/    \___|_| |_|\_/  
          Windows React/React Native