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 / 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'
edit;
* postgresql.conf
* pg_hba.conf
cd /etc/postgresql/12/main (Linux)
### postgresql.conf
set listen_addresses = '*'
### pg_hba.conf
# 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
@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.
@yalin
yalin / argparser.py
Last active March 13, 2021 14:29
Python argparser init
# argprase library that will help us to deal with arguments
import argparse
import sys
myParser = argparse.ArgumentParser(description='Definition of the python file')
myParser.add_argument('mandatory',
type=str,
help='Mandatory argument')
myParser.add_argument('--optional', '-o',