Skip to content

Instantly share code, notes, and snippets.

@opnchaudhary
opnchaudhary / post-install.sh
Last active July 19, 2022 08:51
Arch Post Installation script
sudo pacman -S --needed base-devel git wget yajl
# git config
ssh-keygen
git config --global user.email "opnchaudhary@gmail.com"
git config --global user.name "Paras Nath Chaudhary"
# yaourt installation
cd /tmp
git clone https://aur.archlinux.org/package-query.git
@opnchaudhary
opnchaudhary / fix-website-not-loading
Created September 9, 2020 08:23
Some website did not load on my Arch Linux machine. A few examples that did not load were duckduckgo.com, ipage.com. The fix was to run the following command.
sudo ip link set eno1 up mtu 1400

Roku Remote

Secret Screen:

home (5 times) FF (3x) REW (2x)
This menu will allow you to factory reset, run a USB test, and update the server or software. Use this one at your own risk.

Change Bitrate

Hit Home Button 5 times Hit Rewind Button 3 Times Hit Fast Forward Button 2 Times

@opnchaudhary
opnchaudhary / i3status.conf
Created May 26, 2020 14:57
/etc/i3status.conf
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@opnchaudhary
opnchaudhary / i3status.conf
Created May 26, 2020 14:57
/etc/i3status.conf
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@opnchaudhary
opnchaudhary / i3status.conf
Created May 26, 2020 14:57
/etc/i3status.conf
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@opnchaudhary
opnchaudhary / install_ruby
Created March 19, 2020 03:27 — forked from lemanchester/install_ruby
Installing Ruby 2.1.5 on Ubuntu
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz
tar -xvzf ruby-2.1.5.tar.gz
cd ruby-2.1.5/
./configure --prefix=/usr/local
make
make install
@opnchaudhary
opnchaudhary / force-install
Created February 13, 2020 09:31
Force Install in arch linux
sudo pacman -S npm --overwrite='*'
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@opnchaudhary
opnchaudhary / .htaccess
Created November 26, 2019 04:34
laravel 4
# Redirect if index.php is in the URL
RewriteRule ^index.php/(.+) /$1 [R=301,L]