Skip to content

Instantly share code, notes, and snippets.

View lucasvr's full-sized avatar
🚲
I'm going deeper undergound

Lucas C. Villa Real lucasvr

🚲
I'm going deeper undergound
View GitHub Profile
@lucasvr
lucasvr / hdf5-parallel_io.dot
Created March 7, 2022 03:16
HDF5 io_ops path analysis
digraph G {
label = "Parallel I/O in HDF5"
forcelabels = true
rankdir = "TB"
compound = true
splines = true # true polyline curved
node [style=""]
subgraph cluster_h5dpkg_h {
label = "H5Dpkg.h"
@lucasvr
lucasvr / grub.cfg
Created May 20, 2020 18:28
GoboLinux Installer's grub.cfg
# Config file for GRUB2 - The GNU GRand Unified Bootloader
set menu_color_normal=white/black
set menu_color_highlight=black/white
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
@lucasvr
lucasvr / gobo-qemu.sh
Created April 23, 2020 19:49
gobolinux-devel-qemu.sh
qemu-system-x86_64 \
-enable-kvm \
-m 2048 \
-net nic,macaddr=E0:06:E6:CE:FF:FF,model=virtio -net tap,ifname=tap0,script=no \
-hda /Data/VMs/disk.img \
-cdrom work/gobolinux.iso \
-boot d \
-serial stdio \
-usb -device usb-mouse \
-show-cursor
@lucasvr
lucasvr / Runner-RemoteHost.patch
Created July 10, 2018 11:20
Mount remote dependencies
diff --git a/src/FindDependencies.c b/src/FindDependencies.c
index 257bfec1..6a7122ec 100644
--- a/src/FindDependencies.c
+++ b/src/FindDependencies.c
@@ -5,6 +5,7 @@
*
* Released under the GNU GPL version 2.
*/
+#define _GNU_SOURCE
#include <stdio.h>
diff -urp postgis-orig/postgis/lwgeom_sfcgal.c postgis-svn-trunk/postgis/lwgeom_sfcgal.c
--- postgis-orig/postgis/lwgeom_sfcgal.c 2018-01-10 13:27:48.000000000 -0600
+++ postgis-svn-trunk/postgis/lwgeom_sfcgal.c 2018-01-10 14:54:24.813750897 -0600
@@ -59,6 +59,7 @@ Datum sfcgal_tesselate(PG_FUNCTION_ARGS)
Datum sfcgal_minkowski_sum(PG_FUNCTION_ARGS);
Datum sfcgal_make_solid(PG_FUNCTION_ARGS);
Datum sfcgal_is_solid(PG_FUNCTION_ARGS);
+Datum sfcgal_noop(PG_FUNCTION_ARGS);
@lucasvr
lucasvr / qemu.sh
Created March 9, 2017 05:35
qemu.sh
#!/bin/bash
ISO=GoboLinux-016.01-x86_64.iso
IMG=sda.img
OUTIFACE=wlan0
NETWORK_OPTS="-net nic,macaddr=E0:06:E6:CE:FF:EE,model=virtio -net tap,ifname=tap1,script=no"
KVM_OPTS="-enable-kvm -cpu host -daemonize"
BOOT_DRIVE="$1"
@lucasvr
lucasvr / apulse-stream.patch
Created March 8, 2017 23:39
apulse-stream.patch
--- apulse-0.1.8.orig/src/apulse-stream.c 2017-03-08 13:38:10.000000000 -0300
+++ apulse-0.1.8/src/apulse-stream.c 2017-03-08 20:36:17.074256258 -0300
@@ -77,7 +77,7 @@ data_available_for_stream(pa_mainloop_ap
pa_stream *s = userdata;
snd_pcm_sframes_t frame_count;
size_t frame_size = pa_frame_size(&s->ss);
- char buf[16 * 1024];
+ char buf[8 * 1024];
const size_t buf_size = pa_find_multiple_of(sizeof(buf), frame_size);
int paused = g_atomic_int_get(&s->paused);
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
toolexeclibdir=${exec_prefix}/lib/../lib64
includedir=${prefix}/include
Name: libffi
Description: Library supporting Foreign Function Interfaces
Version: 3.2.1
Libs: -L${toolexeclibdir} -lffi
--- libffi.pc.orig 2016-11-27 16:42:31.000000000 -0200
+++ libffi.pc 2016-12-19 10:39:52.000000000 -0200
@@ -1,8 +1,8 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
-toolexeclibdir=${exec_prefix}/lib/../lib64
-includedir=${libdir}/libffi-3.2.1/include
+toolexeclibdir=${exec_prefix}/lib
+includedir=${prefix}/include
@lucasvr
lucasvr / awesome_2nd_monitor.patch
Created November 16, 2016 20:54
awesome 2nd monitor patch
--- share/awesome/lib/awful/mouse/init.lua.orig 2016-11-16 13:45:27.567205289 -0200
+++ share/awesome/lib/awful/mouse/init.lua 2016-11-16 13:47:37.239207722 -0200
@@ -257,7 +257,7 @@ mouse.resize.add_enter_callback(function
if c.floating then return end
local l = c.screen.selected_tag and c.screen.selected_tag.layout or nil
- if l == layout.suit.floating then return end
+ if l == layout.suit.floating or l == nil then return end
if l ~= layout.suit.floating and l.mouse_resize_handler then