Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am crabvk on github.
  • I am crabvk (https://keybase.io/crabvk) on keybase.
  • I have a public key whose fingerprint is 0491 551F A97A 5960 0D46 AEB0 C6C4 6476 220B 5552

To claim this, I am signing this object:

@crabvk
crabvk / [email protected]
Created July 21, 2020 17:59
OpenConnect systemd service file
[Unit]
Description=OpenConnect VPN tunnel for %I
After=syslog.target network-online.target
Wants=network-online.target
[Service]
Type=forking
PrivateTmp=true
WorkingDirectory=/etc/openconnect
EnvironmentFile=/etc/openconnect/%i.env
@crabvk
crabvk / PKGBUILD.patch
Last active March 15, 2020 12:04
Arch Linux AUR sendxmpp-rs 1.0.1 PKGBUILD patch
--- PKGBUILD.orig 2020-03-15 17:02:27.959857250 +0500
+++ PKGBUILD 2020-03-15 17:02:21.456492264 +0500
@@ -1,37 +1,27 @@
# Maintainer: moparisthebest <admin dot archlinux AT moparisthebest dot com>
-_pkgname=sendxmpp
+_commit=37b5efd4b62c416e6f47f44ab57a42b61ee3dbcb
pkgname=sendxmpp-rs
-pkgver=1.0.0
+pkgver=1.0.1
@crabvk
crabvk / PKGBUILD.patch
Last active February 22, 2020 00:50
ArchLinux fish PKGBUILD patch 3.0.2-3 -> 3.1.0-1
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 2ae4ddf..8a4c82d 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -6,41 +6,32 @@
# Contributor: Jan Fader <[email protected]>
pkgname=fish
-pkgver=3.0.2
-pkgrel=3
diff --git a/PKGBUILD b/PKGBUILD
index 15e9321..2f6d5f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,24 @@
# Maintainer: Sharky <[email protected]>
+
pkgname=surfshark-vpn
pkgver=1.0.0
pkgrel=1
@crabvk
crabvk / PKGBUILD
Created July 31, 2019 15:19
Arch Linux AUR megatools PKGBUILD
pkgname=megatools
pkgver=1.10.2
pkgrel=1
pkgdesc="Command line client application for Mega"
arch=('x86_64')
url="http://megatools.megous.com"
license=('GPLv2')
depends=('curl' 'glib2')
provides=('megatools')
conflicts=('megatools')
@crabvk
crabvk / timeout_middleware.rb
Last active November 6, 2015 08:36
Ruby event machine http request read timeout line Net::HTTP#read_timeout
require 'em-synchrony'
require 'em-synchrony/em-http'
require 'em-synchrony/fiber_iterator'
class TimeoutMiddleware
def request(client, head, body)
client.timeout(15)
[head, body]
end
end