This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.JPG; do convert $f -resize 800 -quality 80 ${f%.*}.pdf ; done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Fira Code', 'ui-monospace', 'SFMono-Regular' , 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'monospace', 'Monospace','Courier New' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edit; | |
* postgresql.conf | |
* pg_hba.conf | |
cd /etc/postgresql/12/main (Linux) | |
### postgresql.conf | |
set listen_addresses = '*' | |
### pg_hba.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-------------------------------------------------------------------- | |
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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', |
NewerOlder