Skip to content

Instantly share code, notes, and snippets.

View yalin's full-sized avatar
✴️

Yalin Aydin yalin

✴️
  • Kingston, ON, Canada
  • X @yalin
View GitHub Profile
@yalin
yalin / synaptics
Created February 23, 2021 05:00
Synaptics Touchpad default config
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (190): 1
Coordinate Transformation Matrix (192): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (319): 1
Device Accel Constant Deceleration (320): 2.500000
Device Accel Adaptive Deceleration (321): 1.000000
Device Accel Velocity Scaling (322): 6.158088
Synaptics Edges (323): 1574, 5370, 1407, 4443
Synaptics Finger (324): 25, 30, 0
Synaptics Tap Time (325): 180
@yalin
yalin / vscode_extension_list.txt
Last active October 19, 2023 03:15
VSCode extensions installed
aaron-bond.better-comments
abdelaziz18003.quasar-snippets
ahmadalli.vscode-nginx-conf
akamud.vscode-javascript-snippet-pack
akamud.vscode-theme-onedark
akamud.vscode-theme-onelight
alefragnani.project-manager
amlovey.shaderlabvscodefree
AndreyVolosovich.monokai-st3
Angular.ng-template
@yalin
yalin / scroll-mouse.sh
Created August 22, 2023 02:20
fix Synaptics touchpad scrolling speed
#!/bin/bash
# xinput set-prop 12 345 30
device_num=12 # default value if can not find
for i in $(xinput list | awk -F 'Synaptics' '{print $2}')
do
if [[ "$i" == *"id"* ]]; then
device_num=$(echo $i | awk -F 'id=' '{print $2}')
fi;
done;
@yalin
yalin / convertJPGtoPDF
Created May 10, 2023 12:04
convert jpg to pdf
for f in *.JPG; do convert $f -resize 800 -quality 80 ${f%.*}.pdf ; done;
import datetime
import os
import jwt
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
secret_key = os.getenv("TOKEN_SECRET_KEY")
@yalin
yalin / Pop OS VSCode Theme Colors
Created November 23, 2022 16:18
Pop OS VSCode Theme Colors
"workbench.colorCustomizations": {
"editor.background": "#4d4643",
"editor.foreground": "#d4d4d4",
"activityBar.background": "#272321",
"activityBar.foreground": "#d4d4d4",
"activityBarBadge.background": "#009688",
"sideBarTitle.foreground": "#bbbbbb",
"sideBar.background": "#443d3a",
"sideBarSectionHeader.foreground": "#faa41a",
"sideBarSectionHeader.background": "#272321",
'Fira Code', 'ui-monospace', 'SFMono-Regular' , 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'monospace', 'Monospace','Courier New'
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 470.57.01
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
edit;
* postgresql.conf
* pg_hba.conf
cd /etc/postgresql/12/main (Linux)
### postgresql.conf
set listen_addresses = '*'
### pg_hba.conf
@yalin
yalin / .env
Last active March 21, 2021 12:34
default Code Igniter 4 env file
#--------------------------------------------------------------------
# Example Environment Configuration file
#
# This file can be used as a starting point for your own
# custom .env files, and contains most of the possible settings
# available in a default install.
#
# By default, all of the settings are commented out. If you want
# to override the setting, you must un-comment it by removing the '#'
# at the beginning of the line.