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
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <alloca.h> | |
int main() { | |
char path[] = "tmp"; | |
int r; |
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/sh | |
prepend_path() { | |
local _pname _pname_prepend="${1}" IFS=":" | |
for _pname in ${PATH}; do | |
if [ "${_pname}" = "${_pname_prepend}" ]; then | |
return | |
fi | |
done | |
export PATH="${_pname_prepend}${PATH:+:${PATH}}" |
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
crash/abort | |
??? | |
smallprint.cc:337 __small_vsprintf(...) | |
else if (sys_wcstombs (tmp, NT_MAX_PATH, us->Buffer, | |
us->Length / sizeof (WCHAR))) | |
... |
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
/* gcc -ggdb -Wall -Wextra -pedantic "lld.c" -o "lld.exe" */ | |
#define __USE_MINGW_ANSI_STDIO 1 | |
#include <stdio.h> | |
int main() { | |
long long int answer = 42; | |
printf("The answer is: %lld\n", answer); | |
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
Windows Registry Editor Version 5.00 | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS here] | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW64 here] | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW32 here] |
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
pkgname=boo | |
pkgver=0 | |
pkgrel=1 | |
arch=('any') | |
package() { | |
echo --with-arch=${_arch} | |
} |
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
<?php | |
/* | |
* Custom PHP unserializer with better error reporting | |
* | |
* Does not support objects. | |
*/ | |
class Unserializer { | |
private $serialized; | |
private $len; |
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
pkgname=finch | |
pkgver=2.10.11 | |
pkgrel=1 | |
pkgdesc="To help recreate my issue" | |
arch=('i686' 'x86_64') | |
url="http://pidgin.im" | |
license=('GPL') | |
depends=('libgnutls') | |
makedepends=('libgnutls-devel') | |
source=("http://downloads.sourceforge.net/pidgin/pidgin-2.10.11.tar.bz2") |
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
From f7a540110b276fd4380ceaa72f42c0119d8d8610 Mon Sep 17 00:00:00 2001 | |
From: David Macek <[email protected]> | |
Date: Tue, 12 May 2015 00:08:11 +0200 | |
Subject: [PATCH] Remove FILE_OPEN_FOR_BACKUP_INTENT | |
--- | |
winsup/cygwin/exceptions.cc | 6 +++--- | |
winsup/cygwin/fhandler.cc | 2 +- | |
winsup/cygwin/fhandler_disk_file.cc | 32 ++++++++++++++++---------------- | |
winsup/cygwin/fhandler_procsys.cc | 4 ++-- |
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/bash | |
scrape_db() { | |
local var=$1 | |
local file=$2 | |
local url=$3 | |
[ "$DB_UPDATE" != 'no' ] && wget -nv -O /tmp/$file $url >&2 | |
while read pkg ver; do |