Skip to content

Instantly share code, notes, and snippets.

View Bugaddr's full-sized avatar

Pranay Pawar Bugaddr

View GitHub Profile
#!/usr/bin/env bash
# File to store previously printed commands
printed_commands_file=~/.local/share/daily-whatis/databases/printed_commands_db.txt
# Check if the file exists, if not create it
if [ ! -f "$printed_commands_file" ]; then
mkdir -p "$(dirname "$printed_commands_file")" # Ensure directory exists
touch "$printed_commands_file" # Create the file
fi
@Bugaddr
Bugaddr / arch-linux-install
Last active October 10, 2021 21:25 — 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
@Bugaddr
Bugaddr / PushBigGitCommitByCommit.sh
Last active August 26, 2021 19:35 — forked from mezorian/PushBigGitCommitByCommit.sh
Push big git repository commit by commit to not run into timeouts
#!/usr/bin/env bash
#
# push a big git repository commit by commit to not run into timeouts
# this is for example needed if you have some bigger binary files inside the repository and
# run into timeouts while pushing the repo into a new remote url.
#
# to run this script please ensure that:
# 1. you are able to push to your remote url via ssh (without password authentication)
# 2. you put this file into the directory above your git repo and open a bash inside your repo's directory
# 3. this file is executable, if you are unsure about this run:

TO disable a key in xfce-desktop-env

  • To disable up key
xmodmap -e 'keycode 98='
  • To enable up key
xmodmap -e 'keycode 98=Up'
@Bugaddr
Bugaddr / byobuCommands
Created August 3, 2021 07:21 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@Bugaddr
Bugaddr / mi12debloat.sh
Last active August 6, 2021 08:36
miui 12.5 debloater For GRAM [Poco]
#!/bin/bash
# MIaccount will not work
# Stock ROM Samsung MIUI 12.5
apps=(
'com.miui.analytics' # Mi-anal
'com.xiaomi.glgm' # Migames
'com.xiaomi.mipicks' # Miappstore
'com.miui.compass' # MICompass
'com.miui.yellowpage' # Yellowpagevirus
'com.android.stk' # SimToolkit
@Bugaddr
Bugaddr / addextension.md
Last active June 21, 2021 09:52
Download and install chromium extensions automatically just save this as bookmark and press on this bookmark on chromium extension store

2021 WORKING

javascript:location.href='https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion='+(navigator.appVersion.match(/Chrome\/(\S+)/)[1])+'&x=id%'+'3D'+(document.querySelector('a[href^="https://chrome.google.com/webstore/report/"]').pathname.match(/[^\/]+\/*$/)[0])+'%'+'26installsource%'+'3Dondemand%'+'26uc';

2020 WORKING

javascript:(function()%7Bwindow.location.href%3D%22https%3A%2F%2Fclients2.google.com%2Fservice%2Fupdate2%2Fcrx%3Fresponse%3Dredirect%26acceptformat%3Dcrx2%2Ccrx3%26prodversion%3D%22%2B%2FChrome%5C%2F(%5B0-9.%5D%2B)%2F.exec(navigator.userAgent)%5B1%5D%2B%22%26x%3Did%253D%22%2B%2F%5Ehttps%3A%5C%2F%5C%2Fchrome.google.com%5C%2Fwebstore%5C%2Fdetail%5C%2F.%2B%5C%2F(%5Ba-z%5D%2B)%2F.exec(window.location.href)%5B1%5D%2B%22%2526installsource%253Dondemand%2526uc%22%7D)()
// =======Options START=======
var authConfig = {
siteName : "My Site" , // site name
version : "1.1.2" , // program version
theme: "acrou",
// It is strongly recommended to use your own client_id and client_secret
client_id: "58094879805-4654k2k5nqdid5bavft7fvea5u9po0t1.apps.googleusercontent.com",
client_secret: "ZNPZ-vS6N9Zjsyb_sNMZmXHL",
refresh_token : "" , // authorized token
/**