This file contains hidden or 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 | |
# Some kind of buildscript for x264 | |
# The stuff I used the last time: | |
# * CCCP's Nicholi's April 2010 msys/mingw package | |
# * Newest 7z file with the Msys/Mingw from xhmikosr found at: | |
# http://sourceforge.net/apps/trac/mpc-hc/wiki/How_to_compile_the_MPC | |
# * Your favourite mingw package (Komisar's or Alexis', both are fine) | |
# * Command-line SVN | |
# http://subversion.tigris.org/files/documents/15/47914/svn-win32-1.6.6.zip |
This file contains hidden or 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 | |
# Some kind of buildscript for x264 libs | |
P64B=`ls /mingw |grep x86_64` | |
echo Gotten prefix: ${P64B} | |
echo "" | |
cd lame-3.98.4 | |
# 32bit |
This file contains hidden or 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
# What you need to set up a msys/mingw environment: | |
# * CCCP's Nicholi's April 2010 msys/mingw package | |
# http://www.cccp-project.net/nichorai/msys.premade.2010.04.30.7z | |
# * Newest 7z file with the Msys/Mingw from xhmikosr found at: | |
# http://sourceforge.net/apps/trac/mpc-hc/wiki/How_to_compile_the_MPC | |
# * Your favourite mingw package (Komisar's or Alexis', both are fine) | |
# http://komisar.gin.by/mingw/ (4.5.x generally recommended) | |
# * Command-line SVN | |
# http://subversion.tigris.org/files/documents/15/47914/svn-win32-1.6.6.zip | |
# |
This file contains hidden or 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 | |
USER_OUTPUT_FOLDER="/home/hogehoge/backups/" | |
USER_WEBROOT="/var/www/" | |
USER_APACHE="/etc/apache2/" | |
USER_MUNIN="/etc/munin/" | |
USER_PHP="/etc/php5/" | |
DATE_PREFIX=`date +"%Y-%m-%d_%H-%M_"` |
This file contains hidden or 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 | |
# Get the date and compile folder | |
DATE_PREFIX=`date +"%Y-%m-%d_%H-%M_"` | |
FOLDERNAME="${DATE_PREFIX}compiles" | |
# Get the mingw prefixes | |
P32B=i686-w64-mingw32 | |
P64B=x86_64-w64-mingw32 |
This file contains hidden or 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
Index: include/ffmscompat.h | |
=================================================================== | |
--- include/ffmscompat.h (revision 712) | |
+++ include/ffmscompat.h (working copy) | |
@@ -39,7 +39,7 @@ | |
# define VERSION_CHECK(LIB, cmp, major, minor, micro, u1, u2, u3) ((LIB) cmp (AV_VERSION_INT(major, minor, micro))) | |
#endif | |
-#ifdef _WIN32 | |
+#if defined(_WIN32) && ! defined(__MINGW64_VERSION_MAJOR) |
This file contains hidden or 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 | |
################################################################################ | |
# MingGW-w64 Build Script 3.0.6 | |
################################################################################ | |
# Copyright (C) 2011-2012 Kyle Schwarz | |
# | |
# This program is free software: you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation, either version 3 of the License, or (at your option) any later |
This file contains hidden or 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 <math.h> | |
static double normalize(double input) { | |
if (input < 0.08145) | |
return input / 4.5; | |
else | |
return pow(((input + 0.0993) / 1.0993), (1.0/0.45)); | |
} |
This file contains hidden or 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
diff --git a/app/src/main/jni/main.cpp b/app/src/main/jni/main.cpp | |
index 7f536f0..d1d3ffe 100644 | |
--- a/app/src/main/jni/main.cpp | |
+++ b/app/src/main/jni/main.cpp | |
@@ -100,6 +100,8 @@ jni_func(void, create) { | |
mpv = mpv_create(); | |
if (!mpv) | |
die("context init failed"); | |
+ | |
+ mpv_request_log_messages(mpv, "v"); |
This file contains hidden or 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
SSH_ENV=$HOME/.ssh/environment | |
# start the ssh-agent | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
# spawn ssh-agent | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null |
OlderNewer