Skip to content

Instantly share code, notes, and snippets.

View JudahSan's full-sized avatar
🎯
Focusing

Judah JudahSan

🎯
Focusing
View GitHub Profile
@JudahSan
JudahSan / README.md
Created December 7, 2024 07:18
Troubleshooting Guide: Windows Pop-Ups on Lenovo T470 (Windows 10)

Troubleshooting Guide: Windows Pop-Ups on Lenovo T470 (Windows 10)

When turned on, the Lenovo T470 running Windows 10 sometimes shows pop-ups that disappear quickly. This guide outlines detailed steps to diagnose and fix the issue.


Step 1: Check Startup Programs

  1. Open Task Manager:
  • Press Ctrl + Shift + Esc.
@JudahSan
JudahSan / FA.md
Created October 6, 2024 22:28
Applying for Coursera FA
  1. Go to course page
  2. Click on Financial aid available

image

  1. Select course from the specialization

image

  1. Continue to application
@JudahSan
JudahSan / README.md
Created October 4, 2024 00:58
Laptop Settings for Battery Longevity Using TLP

Machine: thinkpad t480
OS: ubuntu 24.04 LTS


  1. Change charge threshold: Keep the lithium-ion batteries between 40%-80% for regular use, as charging to 100% constantly can degrade the battery.
  2. For dual battery setup, you might want to configure separate charging thresholds for both.
@JudahSan
JudahSan / README.md
Created October 2, 2024 20:37
How to check battery health linux
  1. List available power sources
upower -e

output

/org/freedesktop/UPower/devices/battery_BAT0
@JudahSan
JudahSan / ubuntu.md
Created September 10, 2024 13:45 — forked from hmasila/ubuntu.md

Create deploy user

$ sudo adduser deploy

Privileges

Sudoer

add "deploy" user to sudo group if you want deploy to be a sudoer

$ sudo usermod -aG sudo deploy

Install nginx

$ sudo apt-get install nginx

$ sudo apt-get install -y dirmngr gnupg apt-transport-https ca-certificates curl

$ curl https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/phusion.gpg >/dev/null

Add APT repository

$ sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger jammy main > /etc/apt/sources.list.d/passenger.list'

Add puma to you Gemfile:

gem "puma"

Install Puma Gem

change to project directory
bundle install
@JudahSan
JudahSan / README.md
Created August 26, 2024 06:38
Chrome not starting after changing hostname

Chrome version: Version 127.0.6533.119 (Official Build) (64-bit)

OS: Ubuntu 22.04

Steps to reproduce the problem

  1. Change the hostname of the machine
  2. Reboot
  3. Start chrome
@JudahSan
JudahSan / README.md
Created June 28, 2024 15:47
Unix Threads in C notes

Processes and threads

  • A process represents an instance of a running program
  • Threads are individual units of execution within a process.

Process

  • A process is an active program, ie, a program that is under execution. It includes the program code, program counter, process stack, registers, etc
@JudahSan
JudahSan / Makefile
Created May 21, 2024 20:16
Error running golang backend
DATABASE_URL:=postgres://postgres:foobarbaz@localhost:5432/postgres
.PHONY: run-postgres
run-postgres:
@echo Starting postgres container
-docker run \
-e POSTGRES_PASSWORD=foobarbaz \
-v pgdata:/var/lib/postgresql/data \
-p 5432:5432 \
postgres:15.1-alpine