This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local DEMO_GENNOTIFY = true | |
assert(minetest.register_mapgen_script) | |
minetest.register_mapgen_script(minetest.get_modpath(minetest.get_current_modname()) .. "/inner.lua") | |
minetest.set_mapgen_setting("mg_name", "singlenode", true) | |
minetest.register_on_respawnplayer(function(player) | |
player:set_pos(vector.new(0, 1.5, 0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: slirp | |
libvdeslirp: | |
@echo "Cloning libvdeslirp" | |
git clone https://github.com/virtualsquare/libvdeslirp | |
libvdeslirp/libvdeslirp.so: libvdeslirp | |
@echo "Building libvdeslirp" | |
@bash -e -c 'pushd libvdeslirp; \ | |
cmake .; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org> | |
# Contributor: Ionut Biru <ibiru@archlinux.org> | |
pkgname=networkmanager-openvpn | |
pkgver=1.10.0 | |
pkgrel=1 | |
pkgdesc="NetworkManager VPN plugin for OpenVPN" | |
url="https://wiki.gnome.org/Projects/NetworkManager" | |
arch=(x86_64) | |
license=(GPL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMAKE_VER=3.29.3 | |
QT_VER=6.7.0 | |
LIBTORRENT_VER=2.0.10 | |
QBITTORRENT_VER=4.6.4 | |
export LANG=C.UTF-8 | |
export CXXFLAGS="-std=c++17 -flto=auto" | |
export LDFLAGS="-flto=auto" | |
export MAKEFLAGS="-j12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
prefix=/opt/qemu | |
qemuver=7.2.1 | |
targets=('x86_64' 'i386') | |
# install dependencies | |
which apt-get &>/dev/null && apt-get install -y --no-install-recommends \ | |
gcc make python3 pkg-config bison flex ninja-build \ | |
lib{jpeg,png,aio,jemalloc,cap-ng,glib2.0,pixman-1}-dev | |
which pacman &>/dev/null && pacman -S --needed \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
LIBTORRENT_BRANCH=master | |
LIBTORRENT_CONFIG="--disable-debug" | |
RTORRENT_BRANCH=master | |
RTORRENT_CONFIG="--disable-debug --enable-ipv6" | |
# Dependencies on Debian/Ubuntu: | |
#sudo apt install \ | |
# g++ make autoconf libtool pkg-config \ | |
# zlib1g-dev libssl-dev libcurl4-openssl-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
finalpath=/var/tmp/final | |
msg () { | |
echo ":: $1" | |
} | |
noextract= | |
bfile=PKGBUILD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELIMITER // | |
CREATE PROCEDURE `ilbot_log_line2`(IN p_time TIMESTAMP, IN p_channel VARCHAR(30), IN p_nick VARCHAR(40), IN p_line mediumtext) | |
LANGUAGE SQL | |
NOT DETERMINISTIC | |
SQL SECURITY INVOKER | |
COMMENT 'Log a line from IRC with custom timestamp' | |
BEGIN | |
DECLARE channel_id, day_id INT(11); | |
DECLARE today CHAR(10); | |
START TRANSACTION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
from xml.dom.minidom import parseString | |
COLORS = { # TODO more colors | |
"white" : "FFFFFF", | |
"black" : "000000", | |
"yellow" : "FFFF00", | |
"green" : "00FF00", | |
"cyan" : "00FFFF", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# adjust as needed, leave encode_ext empty to keep the wav files | |
encode_ext="opus" | |
function encode_func() { | |
# $1: source file (wav) | |
# $2: destination file | |
opusenc --quiet --bitrate 64 "$1" "$2" | |
} |
NewerOlder