Skip to content

Instantly share code, notes, and snippets.

View pavanjadhaw's full-sized avatar

Pavan Jadhaw pavanjadhaw

View GitHub Profile
@pavanjadhaw
pavanjadhaw / arch-linux-install
Created November 12, 2017 05:36 — forked from mattiaslundberg/arch-linux-install
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
1 : List your machines NICs
-> ifconfig
2 : Check internet connectivity, you dont want to format all your partitions
and wonder why internet isnt working.
-> ping -c2 google.com
3 : If using wifi then connect using wifi-menu
-> wifi-menu # repeat step 2 to check internet
@pavanjadhaw
pavanjadhaw / config
Created December 6, 2017 03:28 — forked from Calvein/config
Polybar config
[colors]
background = #1b2b34
foreground = #d8dee9
transparent = #00ffffff
base08 = #ec5f67
red = #ec5f67
base09 = #f99157
orange = #f99157
base0a = #fac863
[~] rofi -dump-xresources
The script command 'window' has 1 options, but needs 2: <name>:<script>.
Invalid script switcher: window
! Enabled modi
rofi.modi: window,run,ssh
! Window opacity
rofi.opacity: 100
! Window width
rofi.width: 50
! Number of lines
@pavanjadhaw
pavanjadhaw / .travis.yml
Created January 1, 2018 17:11 — forked from willprice/.travis.yml
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@pavanjadhaw
pavanjadhaw / custom_archlinux_live_USB.md
Created January 14, 2018 07:15 — forked from satreix/custom_archlinux_live_USB.md
Custom Arch Linux live USB

Custom Arch Linux live USB

Setup

Install the dependencies for the archiso package:

(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git

I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below. So, grab the most recent version from git and install it:

(user): git clone git://projects.archlinux.org/archiso.git && cd archiso

;--------------------------------------------
; colors ;
;--------------------------------------------
[colors]
bar_bg = #1d1f21
bar_fg = #c5c8c6
border_col = #1d1f21
;--------------------------------------------
; colors ;
;--------------------------------------------
[colors]
bar_bg = #1d1f21
bar_fg = #c5c8c6
border_col = #1d1f21
#!/bin/bash
# a system info script written by yours truly
# it's hardcoded stuff, lulz
red="\e[31m"
grn="\e[32m"
ylw="\e[33m"
cyn="\e[36m"
blu="\e[34m"
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then