Skip to content

Instantly share code, notes, and snippets.

View NK-Nikunj's full-sized avatar

Nikunj Gupta NK-Nikunj

View GitHub Profile
@NK-Nikunj
NK-Nikunj / AW_fan_control.sh
Created August 8, 2020 01:36 — forked from codexetreme/AW_fan_control.sh
Alienware Fan Control Script for Ubuntu
#!/bin/bash
# Script to turn on fans, tested only for dell alienware 15 laptop
# Works on Ubuntu 18.04, causes issues with other drivers on earlier verisons
# Requires i8kutils, lm_sensors and fancontrol packages
sudo modprobe dell-smm-hwmon force=1
sudo pwmconfig
@mandiwise
mandiwise / Count lines in Git repo
Last active July 4, 2024 16:56
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l
@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active May 26, 2024 17:26
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap