Skip to content

Instantly share code, notes, and snippets.

DrYak DrYak

Block or report user

Report or block DrYak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DrYak
DrYak / make_local_report.pl
Last active Sep 30, 2019
experimental local haplotype report
View make_local_report.pl
#!/usr/bin/env perl
use strict;
use Encode;
my $path = 'support';
my $report_html = <<'END_MESSAGE';
<!DOCTYPE html>
@DrYak
DrYak / shorah-tut.sh
Created Sep 10, 2019
testing recent shorah directly from github
View shorah-tut.sh
mkdir -p ~/shorah-test
cd ~/shorah-test
#
# install bioconda
#
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
@DrYak
DrYak / patch-system-img.sh
Created Jul 22, 2019
Patcher to add Mapsv1 into squashfs system.img for AlienDalvik on Sailfish OS'
View patch-system-img.sh
#!/bin/bash
echo -e "\e[34;1m=================================\e[37;1m"
echo "[**] 0. Check environment"
echo -e "\e[34;1m=================================\e[0m"
if [ -e /opt/alien/system.img ]; then
HAS_ALIEN_DALVIK=1
ALIEN_VERSION="$(rpm -qf '/opt/alien/system.img' --qf '%{version}')"
echo "AlienDalvik image version ${ALIEN_VERSION} found"
@DrYak
DrYak / gist:81f73fff0d572130ff9d
Created Apr 24, 2015
disphelper patch - for wine and byref support - split source
View gist:81f73fff0d572130ff9d
diff --git a/source/convert.c b/source/convert.c
index ae61fe4..0c85ef9 100644
--- a/source/convert.c
+++ b/source/convert.c
@@ -25,13 +25,13 @@
#include <math.h>
/* Number of 100 nannosecond units in a FILETIME day */
-static const LONGLONG FILE_TIME_ONE_DAY = 864000000000;
+static const LONGLONG FILE_TIME_ONE_DAY = 864000000000LL;
@DrYak
DrYak / gist:532c10720065d18e27bd
Created Apr 24, 2015
disphelper patch - for wine and byref support - single source
View gist:532c10720065d18e27bd
diff --git a/single_file_source/disphelper.c b/single_file_source/disphelper.c
index 80e2b89..0034d37 100644
--- a/single_file_source/disphelper.c
+++ b/single_file_source/disphelper.c
@@ -36,6 +36,14 @@
#include <math.h>
#include <assert.h>
+#ifdef __WINE__
+// Wine uses the system widechar string function which as C99 compliant ( swprintf is the wide equivalent of snprintf )
You can’t perform that action at this time.