build
: Build related changes (e.g npm related/ adding external dependencies)
chore
: A code change that external user won't see (eg: change to .gitignore file or .prettierrc file)
feat
: A new feature
fix
: A bug fix
docs
: Documentation related changes
refactor
: A code that neither fix bug nor adds a feature. (eg: You can use this when there is semantic changes like renaming a variable/ function name)
perf
: A code that improves performance
style
: A code that is related to styling
test
: Adding new test or making changes to existing test
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 db from "./index" | |
const seed = async () => { | |
// hashed password = password123 | |
const hashedPassword = | |
"JGFyZ29uMmlkJHY9MTkkbT02NTUzNix0PTIscD0xJCtCUmJlbXpWTnhRTCtnVUxwZThHNnckaHkySU15OGlVOHp4WEl4VXphbjZRR2JLSUhVNDI1eTQ3azc1WEhxSDE4SQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" | |
const existingUser = await db.user.findFirst({ | |
where: { | |
email: "[email protected]", |
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
0. sudo vim /etc/systemd/timesyncd.conf | |
0.1 set NTP=time.google.com | |
0.2 uncomment Fallback_NTP | |
0.3 save and run `systemctl restart systemd-timesyncd.service` | |
-- setting NTP will the time sync error if encountering | |
1. Before running archinstall make sure to be connected to the internet (if using Ethernet it should be automatic, if you only have Wi-Fi, connect via iwctl) | |
1.1 `iwctl` | |
1.2 `device list` run this command to check the device name | |
1.3 `station DEVICENAME connect-hidden SSID` use connect if the network is not hidden | |
2. Run `archinstall` |
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
Configure Monitor with XRANDR (resolution and monitor hz etc) | |
https://linuxconfig.org/how-to-configure-your-monitors-with-xrandr-in-linux |
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
{ | |
"lanes": [ | |
{ | |
"id": "bbee5a30-2543-11ed-bdb4-d9bfb75d740e", | |
"title": "To:Do", | |
"cards": [ | |
{ | |
"id": "c71e3ee0-2546-11ed-88d8-e9102625d80a", | |
"tags": [], | |
"createdAt": "2022-08-26T13:55:37.691Z", |
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
[ | |
{ | |
"id": 1661505036392, | |
"name": "Project 1", | |
"description": "Project Description 1", | |
"color": "#2196F3" | |
}, | |
{ | |
"id": 1661770079941, | |
"name": "Test 2", |
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
Announcent here, Announcent here, Announcent here, Announcent here, some <a href='https://google.com/'>link</a> |
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
/* Windows */ | |
{ | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "os", | |
"style": "plain" |
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
oh-my-posh --init --shell pwsh --config ~fullPathHere\justinbalaguer.omp.json | Invoke-Expression | |
#change fullPathHere to path of .omp.json file |
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
// - on the root of the project directory create a `myservice.js` | |
// - code: | |
const Service = require('node-windows').Service; | |
// Create a new service object | |
const svc = new Service({ | |
name:'My Service Name', | |
description: 'My service description', | |
script: 'C:\\Path\\to\\myservice.js', |
NewerOlder