Skip to content

Instantly share code, notes, and snippets.

@arcmags
arcmags / PKGBUILD
Last active February 19, 2026 04:10
cropgui 0.9-3 PKGBUILD
# Maintainer: mags <c.magyar.ec@gmail.com>
pkgname=cropgui
arch=('any')
pkgver=0.9
pkgrel=3
pkgdesc="a simple tool for lossless jpeg cropping"
license=('GPL')
url="https://github.com/jepler/cropgui"
depends=('libjpeg' 'python-pillow' 'imagemagick' 'python-gobject' 'gtk3' 'perl-image-exiftool')
@arcmags
arcmags / BufList.vim
Last active April 14, 2022 06:29
colored vim buffer list
nnoremap <C-w>b :BufList<CR>:buffer<Space>
nnoremap <C-w>B :BufList!<CR>:buffer<Space>
command! -bang BufList call BufList(<q-bang>)
function! BufList(bang)
if a:bang == '!'
let bufs = filter(range(1,bufnr('$')),'bufexists(v:val)')
else
let bufs = filter(range(1,bufnr('$')),'buflisted(v:val)')
endif
@arcmags
arcmags / uvpn-nord
Created September 9, 2021 06:26
Establish tcp vpn connection with a random top-ranked nordvpn server.
#!/bin/bash
## uvpn ::
# Establish tcp vpn with a random top-ranked nordvpn server.
# settings:
auth="$HOME/.config/nordvpn/login.conf"
# internal control:
config=