Skip to content

Instantly share code, notes, and snippets.

View isDipesh's full-sized avatar

Dipesh Acharya isDipesh

View GitHub Profile
@isDipesh
isDipesh / tray-app-indicators-gnome.sh
Created January 21, 2025 07:44
Tray Icons (App Indicators) extension for Gnome on Arch
sudo pacman -S meson jq
git clone https://github.com/ubuntu/gnome-shell-extension-appindicator.git
meson gnome-shell-extension-appindicator /tmp/g-s-appindicators-build
ninja -C /tmp/g-s-appindicators-build install
gnome-extensions enable [email protected]
@isDipesh
isDipesh / guake.md
Created January 21, 2025 06:22
Guake Configuration

Install

sudo pacman -S guake

Enable Toggle

Open Settings app
Keyboard => Keyboard Shortcuts => View and Customize Shortcuts => Custom Shortcuts => +:
Name: Guake Toggle

@isDipesh
isDipesh / dev.sh
Last active January 20, 2025 14:25
Development Environment Setup on Arch Linux
# Install common applications
sudo paman -S zsh guake zellij libreoffice-still gimp inkscape calibre vscode postgresql redis
yay -S anydesk-bin google-chrome telegram-desktop
# Oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# zsh plugins
sudo pacman -S zsh-syntax-highlighting
echo "source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
@isDipesh
isDipesh / gnome-clipboard.sh
Created October 6, 2024 07:13
Install Clipboard Indicator for Gnome
#!/bin/bash
rm -rf ~/.local/share/gnome-shell/extensions/[email protected]
git clone https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator.git ~/.local/share/gnome-shell/extensions/[email protected]
gnome-extensions enable [email protected]
@isDipesh
isDipesh / scm-breeze-vared-zle-fix.md
Created September 28, 2024 07:03
SCM breeze: Fix `vared:8: ZLE not enabled`

Issue

~/p/pdf-sum ❯❯❯ gca
Committing all files (9)
git_commit_prompt:vared:8: ZLE not enabled
Aborting commit due to empty commit message.

Fix

@isDipesh
isDipesh / pacman-keyring-fix.md
Created August 8, 2022 07:00
Pacman Fix: error: key "..." could not be imported | error: required key missing from keyring

One of the common errors after running updates on your Arch Linux system:

error: key "..." could not be imported
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Fix:

@isDipesh
isDipesh / fonepay_verification.py
Created April 26, 2022 11:01
Fonepay transaction verification
import requests
import hashlib
import hmac
import base64
import json
from django.conf import settings
def base64(st):
return base64.b64encode(st.encode('utf-8')).decode('utf-8')
@isDipesh
isDipesh / provinces_districts.json
Created April 10, 2018 09:03
Provinces and Districts of Nepal [WIP]
[
{
"province": "1",
"name": "Sagarmatha",
"districts": [
"Bhojpur",
"Dhankuta",
"Ilam",
"Jhapa",
"Khotang",
@isDipesh
isDipesh / pass.ods
Last active April 22, 2024 08:45
LibreOffice Calc random password generator
=CONCAT(INT(RAND()*10), CHAR(48+RAND()*10), INT(RAND()*10),CHAR(65+RAND()*26),INT(RAND()*1000),CHAR(97+RAND()*26),INT(RAND()*1000))
@isDipesh
isDipesh / saleor_wysiwyg_trumbowyg.md
Last active October 25, 2017 07:27
Saleor: Adding WYSIWYG to Product Description form in Dashboard

Install trumbowyg

yarn add trumbowyg

Edit saleor/static/dashboard/js/dashboard.js

import 'trumbowyg/dist/trumbowyg.min.js';
import 'trumbowyg/dist/ui/trumbowyg.min.css';
import icons from 'trumbowyg/dist/ui/icons.svg';