Skip to content

Instantly share code, notes, and snippets.

View sajithneyo's full-sized avatar
🎯
Focusing

Sajith Neyomal sajithneyo

🎯
Focusing
View GitHub Profile
--- MySQL with PHPMyAdmin ---
## MYSQL server
docker run --name MySQL -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -d -v ~/docker-volumes/mysql:/var/lib/mysql mysql:latest
## Create new user (DBA)
CREATE USER 'sajithneyo'@'%' IDENTIFIED BY 'sajithneyo';
GRANT ALL PRIVILEGES ON *.* TO 'sajithneyo'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Step 1 -> Import WSL image
wsl --import Ubuntu-Personal c:\WSL\data\Ubuntu-Personal C:\WSL\Ubuntu_2004.2020.424.0_x64\install.tar.gz --version 2 (https://winaero.com/export-import-wsl-linux-distro-windows-10/)
Step 2 -> Add a new user
https://www.digitalocean.com/community/tutorials/how-to-create-a-new-sudo-enabled-user-on-ubuntu-20-04-quickstart
Step 3 -> Start windows terminal with default user (last section of below article)
https://hfakhraei.github.io/Install-multiple-instance-of-same-Linux-Distribution-on-WSL
Step 4 -> Set default bash location
@sajithneyo
sajithneyo / main.yml
Last active May 25, 2020 21:18
GitHub actions cache config file for yarn locals and globals
name: dev release
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
configure-env:
@sajithneyo
sajithneyo / bracket-pair-colorizer-2-settings
Created June 25, 2019 14:23
Settings you need for bracket pair colorizer 2
{
"bracket-pair-colorizer-2.colors": [
"Gold",
"Orchid",
"LightSkyBlue",
"Salmon",
"LawnGreen",
"DarkOrange",
"Cornsilk"
],
@sajithneyo
sajithneyo / aria2.service
Created March 28, 2019 19:34
Aria2 systemd service
[Unit]
Description=Aria2c download manager
Requires=network.target
After=dhcpcd.service
[Service]
Type=forking
User=*USER*
RemainAfterExit=yes
ExecStart=/usr/bin/aria2c --conf-path=/user/aria2/conf/aria.conf
@sajithneyo
sajithneyo / aria.conf
Last active March 28, 2019 19:34
Aria2 configuration file
##files
dir=/user/downloads
file-allocation=falloc
continue=true
daemon=true
disk-cache=32M
##logging
log=/user/aria2/aria2.log
console-log-level=warn