Skip to content

Instantly share code, notes, and snippets.

View westofer's full-sized avatar
😏
probably dead by now

Westofer: Archived Account westofer

😏
probably dead by now
View GitHub Profile
format = """
$username\
$shlvl\
$kubernetes\
${custom.dir}\
${custom.home_dir}\
$directory\
${custom.git_host}\
$git_branch\
$git_commit\
@salman-abedin
salman-abedin / launch.sh
Last active September 7, 2023 12:12
XDG Alternative
#!/bin/sh
#
# Launches files based on their mimetypes
# Usage: launch [FILE...]
# Dependencies: file
case $(file --mime-type "$@" -bL) in
# Check for the mimetype of your file (This is POSIX regex)
video/* | audio/* | image/gif)
# Launch using your favorite application
@ynakao
ynakao / init.el
Last active January 14, 2023 07:36
Circe to znc example
(use-package circe
:config
(setq circe-network-options
(quote
(("freenode-znc"
:host "znc.example.com"
:use-tls t
:port 6697
:user "zncusername/zncfreenode" ;; `zncfreenode` is freenode network name at your znc server
:pass "zncpassword")
@lunks
lunks / gruvbox-dark.conf
Last active November 28, 2024 00:18
gruvbox-dark theme for kitty - the fast, featureful, GPU based terminal emulator
# gruvbox-dark colorscheme for kitty
# snazzy theme used as base
foreground #ebdbb2
background #272727
selection_foreground #655b53
selection_background #ebdbb2
url_color #d65c0d
# black
@lucianposton
lucianposton / .muttrc
Last active May 7, 2024 08:27
mutt: muttrc settings for ProtonMail Bridge
set from="[email protected]"
set my_user="[email protected]"
set my_pass="pass"
set ssl_starttls=yes
set smtp_url="smtp://$my_user:[email protected]"
# workaround for https://github.com/neomutt/neomutt/issues/1211
set imap_authenticators=login
@diffficult
diffficult / installing_virt_manager.md
Last active May 3, 2025 09:38
Easy instructions to get virt-manager qemuv/kvm running on Arch

Easy instructions to get QEMU/KVM and virt-manager up and running on Arch

  1. Make sure your cpu support kvm with below command:

     grep -E "(vmx|svm)" --color=always /proc/cpuinfo
    
  2. Make sure BIOS have enable “Virtualization Technology”.

  3. User access to /dev/kvm so add your account into kvm(78) group:

@Che4ter
Che4ter / mozoptimize
Created March 17, 2017 08:39
Bulk mozjpeg optimizer on the current directory, works with spaces in filename
#!/bin/bash
# Compresses all .jpg/.jpeg and saves them to opt/
# works with spaces in filenames
# make sure you adjust the path to mozjpeg bin
# uses the mozilla mozjpeg encoder from https://github.com/mozilla/mozjpeg
# based on https://gist.github.com/sauramirez/e0ef5059ab637ed3e2cea090b504f385
# Che4ter - 2017
#Change to mozjpeg path
MOZJPEG='/opt/mozjpeg/bin/'
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active May 7, 2025 23:23
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@gokulkrishh
gokulkrishh / media-query.css
Last active May 7, 2025 06:24
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */