Skip to content

Instantly share code, notes, and snippets.

View justinbalaguer's full-sized avatar
💻
:q!

Justin justinbalaguer

💻
:q!
View GitHub Profile
import db from "./index"
const seed = async () => {
// hashed password = password123
const hashedPassword =
"JGFyZ29uMmlkJHY9MTkkbT02NTUzNix0PTIscD0xJCtCUmJlbXpWTnhRTCtnVUxwZThHNnckaHkySU15OGlVOHp4WEl4VXphbjZRR2JLSUhVNDI1eTQ3azc1WEhxSDE4SQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
const existingUser = await db.user.findFirst({
where: {
email: "[email protected]",
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`
Configure Monitor with XRANDR (resolution and monitor hz etc)
https://linuxconfig.org/how-to-configure-your-monitors-with-xrandr-in-linux
@justinbalaguer
justinbalaguer / kanban.json
Created August 31, 2022 12:46
Kanban board JSON structure
{
"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",
@justinbalaguer
justinbalaguer / project.json
Created August 31, 2022 12:43
Projects JSON structure
[
{
"id": 1661505036392,
"name": "Project 1",
"description": "Project Description 1",
"color": "#2196F3"
},
{
"id": 1661770079941,
"name": "Test 2",
@justinbalaguer
justinbalaguer / git-commit-message-convention.md
Last active June 10, 2022 09:46
Git commit message convention

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

Announcent here, Announcent here, Announcent here, Announcent here, some <a href='https://google.com/'>link</a>
@justinbalaguer
justinbalaguer / justinbalaguer-windows.omp.json
Last active March 9, 2022 03:30
Oh My Posh theme for WSL and Windows
/* Windows */
{
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain"
@justinbalaguer
justinbalaguer / Microsoft.PowerShell_profile.ps1
Created November 7, 2021 06:05
PowerShell Profile for Oh My Posh
oh-my-posh --init --shell pwsh --config ~fullPathHere\justinbalaguer.omp.json | Invoke-Expression
#change fullPathHere to path of .omp.json file
@justinbalaguer
justinbalaguer / myservice.js
Last active August 7, 2020 02:45
Run a Node.js app as a windows service
// - 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',