Skip to content

Instantly share code, notes, and snippets.

diff --git a/.SRCINFO b/.SRCINFO
index 62ca5ed..6babf89 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,14 @@
pkgbase = ttf-koruri
pkgdesc = Japanese TrueType font obtained by mixing M+ and Open Sans
- pkgver = 20180915
- pkgrel = 2
+ pkgver = 20210720
@nosada
nosada / pacmatic.PKGBUILD.patch
Created May 8, 2022 04:32
Patch for pacmatic package to support redirecting of Arch Linux news feed (use this on `asp checkout pacmatic`)
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 57c1eaa..397abac 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=pacmatic
pkgver=20150126
-pkgrel=3
+pkgrel=4
@nosada
nosada / update-makemkv-license-key
Created May 16, 2021 04:35
Update MakeMKV beta license key
#!/bin/bash
MAKEMKV_CONF=$HOME/.MakeMKV/settings.conf
LICENSE_PAGE_URL='https://forum.makemkv.com/forum/viewtopic.php?t=1053'
NEW_KEY=$(curl -sS "$LICENSE_PAGE_URL" | grep 'The current beta key' | sed -e 's/.*<code>\(.*\)<\/code>.*/\1/g')
sed -e '/app_Key/d' -i "$MAKEMKV_CONF"
echo "app_Key = \"$NEW_KEY\"" >> "$MAKEMKV_CONF"
@nosada
nosada / tor-browser.PKGBUILD.patch
Last active February 6, 2021 16:40
Add read permission to /usr/bin/tor-browser prorived by https://aur.archlinux.org/packages/tor-browser/ because it sometimes lacks read permission for others (i.e. equals to 0751 in chmod)
diff --git a/PKGBUILD b/PKGBUILD
index 71c3695..78682f3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -142,7 +142,7 @@ package() {
install -dm755 "${pkgdir}/usr/bin"
sed "${_sed_subst}" "${pkgname}.in" > "${pkgdir}/usr/bin/${pkgname}"
- chmod +x "${pkgdir}/usr/bin/${pkgname}"
+ chmod +rx "${pkgdir}/usr/bin/${pkgname}"
@nosada
nosada / 10-nopassword-machinectl.rules
Last active July 7, 2024 13:34
Polkit rule that allows members in 'wheel' to use `machinectl` without password authentication
/* Allow members in 'wheel' to use machinectl without password authentication
*
* Thanks to the followings:
* - https://unix.stackexchange.com/a/595725
* - https://wiki.archlinux.org/index.php/Polkit#For_specific_actions
*/
polkit.addRule(function(action, subject) {
if (
(
@nosada
nosada / otf-source-han-code-jp.patch
Created July 12, 2020 04:14
Remove xorg-font-utils from depends, as it's no longer exists in Arch repos because of https://www.archlinux.org/todo/removal-of-xorg-font-utils-transitional-package/
diff --git a/.SRCINFO b/.SRCINFO
index 9643c48..7e4009e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,13 @@
-# Generated by mksrcinfo v8
-# Thu Apr 19 11:47:16 UTC 2018
pkgbase = otf-source-han-code-jp
pkgdesc = Japanese OpenType font for developers. Made by mixing SourceHanSans and SourceCodePro
pkgver = 2.011
@nosada
nosada / ttf-koruri.patch
Last active July 12, 2020 04:10
Remove xorg-font-utils from depends, as it's no longer exists in Arch repos because of https://www.archlinux.org/todo/removal-of-xorg-font-utils-transitional-package/
diff --git a/.SRCINFO b/.SRCINFO
index 94a41e1..62ca5ed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
pkgbase = ttf-koruri
pkgdesc = Japanese TrueType font obtained by mixing M+ and Open Sans
pkgver = 20180915
- pkgrel = 1
+ pkgrel = 2
@nosada
nosada / download-artwork-from-wikiart-url.py
Last active March 7, 2020 13:25
Download original size artwork from https://wikiart.org
#!/bin/env python
"""
Usage:
download-artwork-from-wikiart-url.py URL
Arguments:
URL URL of artwork in wikiart.org
(ex.: https://www.wikiart.org/en/rene-magritte/gonconda-1953/)
"""
@nosada
nosada / fibo.py
Created May 2, 2019 12:54
Show Fibonacci numbers in oneline, keeping to refresh stdout (You are not expected to see this; there are much more useful examples in the Internet)
#!/bin/env python
from time import sleep
import sys
def yield_fibonacci_nums(n):
a = b = 1
if n < 2:
yield b
@nosada
nosada / fish.PKGBUILD.patch
Last active March 2, 2019 13:49
Update fish on Arch Linux to 3.0.2 and backport a commit to resolve https://bbs.archlinux.org/viewtopic.php?id=244420
diff --git a/fish/trunk/PKGBUILD b/fish/trunk/PKGBUILD
index 4b16fd36fdd..d276131e66d 100644
--- a/fish/trunk/PKGBUILD
+++ b/fish/trunk/PKGBUILD
@@ -6,7 +6,7 @@
# Contributor: Jan Fader <jan.fader@web.de>
pkgname=fish
-pkgver=3.0.1
+pkgver=3.0.2