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
program project1; | |
{$mode objfpc} | |
{$h+} | |
uses | |
strutils, | |
sysutils, | |
crc; |
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
/** | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* | |
* In jurisdictions that recognize copyright laws, the author or authors | |
* of this software dedicate any and all copyright interest in the |
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 <selinux/selinux.h> | |
extern int is_selinux_enabled(void) | |
{ | |
/* always return 0; this way we don't trigger any SELINUX calls */ | |
return 0; | |
} | |
/* this function gives failures when installing basic rpms in the root; | |
* so we fake it out as well */ |
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
--- a/lib/system.c | |
+++ b/lib/system.c | |
@@ -404,16 +404,19 @@ | |
r += ret; | |
#endif | |
-#ifdef DEFAULT_TRUST_STORE_FILE | |
- ret = | |
- gnutls_x509_trust_list_add_trust_file(list, | |
- DEFAULT_TRUST_STORE_FILE, |
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 | |
# tested on Debian 7 and Ubuntu 14.04 | |
set -e | |
set -x | |
export LANG=C | |
APP="VLC" | |
LOWERAPP="vlc" | |
JOBS=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
#!/bin/bash | |
# The purpose of this script is to provide lightweight desktop integration | |
# into the host system without special help from the host system. | |
# If you want to use it, then place this in usr/bin/$APPNAME.wrapper | |
# and set it as the Exec= line of the .desktop file in the AppImage. | |
# | |
# For example, to install the appropriate icons for Scribus, | |
# put them into the AppDir at the following locations: | |
# |
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
SRCS = md5.c md5cmp.c md5hl.c | |
OBJS = $(SRCS:%.c=%.o) | |
LD := g++ | |
CC := gcc | |
STRIP := strip | |
all: md5 |
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
/* | |
* Copyright (C) 2016 Sven Brauch <[email protected]> | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Library General Public | |
* License as published by the Free Software Foundation; either | |
* version 2 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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 <stdio.h> | |
#include <termios.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
int kbhit(void) | |
{ | |
struct termios oldt, newt; | |
int ch; | |
int oldf; |
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 bash | |
help="Relocate an MXE prefix\n\ | |
\n\ | |
Usage: $0 old_path new_path prefix\n\ | |
\n\ | |
old and new paths must be absolute\n\ | |
new path must not be longer than the old one\n\n" | |
if [ "x$3" = "x" ] || [ "x$2" = "x" ] || [ "x$1" = "x" ]; then |