Skip to content

Instantly share code, notes, and snippets.

View taufikherjanto's full-sized avatar

Taufik Herjanto taufikherjanto

View GitHub Profile
@baatochan
baatochan / !README.md
Last active December 8, 2025 06:58 — forked from linderd/README.md
Linux (Manjaro [Arch]) on a Thinkpad P14s [T14] Gen2 with Intel

Linux (Manjaro [Arch]) on a Thinkpad P14s [T14] Gen2 with Intel

These are my installation-tricks and notes for running Linux on a 2021 Thinkpad P14s Gen2 with 11th gen Intel Core i7-1185G7. It should also be suitable for the Thinkpad T14 Gen2 with Intel as they are technically the same model.

Additionally you may find more AMD specific tips on the gist I've forked. I decided to keep this gist forked as I have used some of the tips they shared and because they inspired me to create my note in the first place.

Sadly there is no entry in the arch-wiki for Intel specific model, but some of the info from AMD one were useful for me. Other useful sources are mentioned in the document in their respective chapters.

Not everything in this doc may be 100% correct as I'm writing this note after having my PC set up and I might have forgotten some of the stuff. I will update it I ever decide to reinstall the OS on my PC.

@queky18
queky18 / Day 0: Hello, World.
Last active August 7, 2025 10:17
Hackerrank - 30 days of code in PHP
<?php
$_fp = fopen("php://stdin", "r");
$inputString = fgets($_fp); // get a line of input from stdin and save it to our variable
// Your first line of output goes here
print("Hello, World.\n");
// Write the second line of output
@leekelleher
leekelleher / backup-dev.bat
Created April 13, 2012 17:33
Personal batch script to quickly back-up my MSSQL database and wwwroot files, (typically for use with Umbraco).
:: ###### BACK-UP JOB ######
@ECHO OFF
:: Set the constants
SET BACKUP_DIR=C:\path\to\_backup
SET TEMP_DIR=%BACKUP_DIR%\TEMP
SET TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2%
SET ARCHIVE_DIR=%BACKUP_DIR%\%TODAY%
SET WWWROOT_NAME="ProjectName"
SET WWWROOT_SOURCE=C:\path\to\wwwroot