Skip to content

Instantly share code, notes, and snippets.

View xet7's full-sized avatar

Lauri Ojansivu xet7

View GitHub Profile
@xet7
xet7 / smc-gnutls-builderror.txt
Last active August 29, 2015 14:06
SMC gnutls build error
~/smc-building/mxe $ make gnutls
[build] gnutls
make[1]: Siirrytään hakemistoon "/home/lauri/smc-building/mxe"
rm -rf '/home/lauri/smc-building/mxe/tmp-gnutls'
mkdir -p '/home/lauri/smc-building/mxe/tmp-gnutls'
cd '/home/lauri/smc-building/mxe/tmp-gnutls' && xz -dc '/home/lauri/smc-building/mxe/pkg/gnutls-3.1.10.tar.xz' | tar xf -
cd '/home/lauri/smc-building/mxe/tmp-gnutls/gnutls-3.1.10'
(cd '/home/lauri/smc-building/mxe/tmp-gnutls/gnutls-3.1.10' && patch -p1 -u) < ./src/gnutls-1-fixes.patch
patching file configure.ac
patching file lib/gnutls.pc.in
@xet7
xet7 / smc-crosscompile-error.txt
Created September 13, 2014 19:00
SMC crosscompile from Linux to Windows error
~/SMC/smc/crossbuild $ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/linux2mingw32.cmake -DCMAKE_INSTALL_PREFIX=$PWD/testinstall ..
----------------
-- Cross-compilation detected: i686-pc-mingw32
-- Found rake: /usr/bin/rake
-- Found gperf: /usr/bin/gperf
-- Found PkgConfig: /home/lauri/smc-building/mxe/usr/bin/pkg-config
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY)
Call Stack (most recent call first):
@xet7
xet7 / gist:bd92718992513b17aa00
Created September 28, 2014 20:19
Game translation strings choices: Are the fuzzy translated strings like "Name [action]" to be translated as "Name", "Actionname" or "Action" in another language?
Secret Maryo Chronicles.pot:
#. TRANS: Name of an action that can be bound to a key
#: ../../src/gui/menu_data.cpp:1512 ../../src/gui/menu_data.cpp:1630
msgctxt "action"
msgid "Name"
msgstr ""
#: ../../src/level/level_editor.cpp:271 ../../src/level/level_editor.cpp:298
#: ../../src/level/level_editor.cpp:302 ../../src/objects/level_entry.cpp:395
@xet7
xet7 / convert.rb
Created December 1, 2015 20:55
Converting ruby hash to another. Mainly to get Datavalues to destination places.
Source:
{"Level1"=>
[{"Level2"=>
[{"Level3"=>[{"Data1name"=>["Data1value"]}],
"Info1"=>
[{"Data4name"=>["Data4value"],
"Data3name"=>["Data3value"],
"Data5name"=>["Data5value"],
"Info2"=>
@xet7
xet7 / example_test.go
Created December 3, 2015 09:59
Golang import cycle not allowed
Source: https://github.com/go-fsnotify/fsnotify
Direct link: https://github.com/go-fsnotify/fsnotify/blob/master/example_test.go
Error:
~/gocode/src/github.com/go-fsnotify/fsnotify $ go build example_test.go
import cycle not allowed
package runtime
imports runtime/internal/atomic
imports runtime
@xet7
xet7 / server.go
Created December 9, 2015 08:56
Only one event detected
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !plan9,!solaris
package main
import (
"log"
@xet7
xet7 / php.ini
Created January 14, 2016 14:48
/etc/php5/apache2/php.ini on Linux Mint 17.3 64bit for wallabag
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@xet7
xet7 / gist:9e1e5ffa4480c9bbf375
Created January 14, 2016 14:51
/etc/php5/apache2/conf.d files on Linux Mint 64bit for wallabag
/etc/php5/apache2/conf.d $ ls
05-opcache.ini 10-pdo.ini 20-curl.ini 20-gd.ini 20-json.ini 20-mysqli.ini 20-mysql.ini 20-pdo_mysql.ini 20-tidy.ini
/etc/php5/apache2/conf.d $ cat *
; configuration for php ZendOpcache module
; priority=05
zend_extension=opcache.so
; configuration for php PDO module
; priority=10
extension=pdo.so
@xet7
xet7 / gist:1731b5e78ff2220aa7aa
Created January 14, 2016 15:00
/etc/apache2/apache2.conf on Linux Mint 64bit for wallabag
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
@xet7
xet7 / elinks-install.sh
Created January 15, 2016 18:20
Trying to install newest elinks with Javascript support, did not get Javascript working yet.