Skip to content

Instantly share code, notes, and snippets.

@tetsuyainfra
tetsuyainfra / mingw.sh
Created January 9, 2023 17:33 — forked from jeroen/mingw.sh
mingw-w64 cross compile
# We use Ubuntu 14.04 to build a native gcc for win32 with multilib support
#
# Based on:
# http://sourceforge.net/p/mingw-w64/wiki2/Native%20Win64%20compiler/
# http://sourceforge.net/p/mingw-w64/code/HEAD/tree/stable/v3.x/mingw-w64-doc/howto-build/mingw-w64-howto-build.txt?format=raw
#
# Cross compiling notes:
# - The minor version of gcc must match that of our cross compiler (4.8 in this case)
# - Important parameters: http://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html
#
@tetsuyainfra
tetsuyainfra / virt-install-centos
Last active March 20, 2017 04:17 — forked from giovtorres/virt-install-centos
Install CentOS cloud images on KVM using cloud-init (noCloud) ※理解するために書き直し
#!/bin/bash
POOL=${POOL:-zfsimages}
POOL_PATH=${POOL_PATH:-"/ztank/libvirt/images"}
ORIGINAL_IMAGE=${ORIGINAL_IMAGE:-CentOS-7-x86_64-GenericCloud.qcow2}
VM_NAME=${1}
VM_RAM=1024
VM_CPU=1
VM_DISK=${1}.qcow2
@tetsuyainfra
tetsuyainfra / virt-install-centos
Created March 20, 2017 04:13 — forked from giovtorres/virt-install-centos
Install CentOS cloud images on KVM using cloud-init
#!/bin/bash
## **Updates to this file are now at https://github.com/giovtorres/virt-install-centos **
# Take one argument from the commandline: VM name
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
@tetsuyainfra
tetsuyainfra / build_nginx.sh
Created March 7, 2016 05:03 — forked from Belphemur/build_nginx.sh
Compiling Nginx with LibreSSL (and http2) & RTMP module & PageSpeed (optional)
#!/usr/bin/env bash
# names of latest versions of each package
export NGINX_VERSION=1.9.12
export VERSION_PCRE=pcre-8.38
export VERSION_LIBRESSL=libressl-2.3.2
export VERSION_NGINX=nginx-$NGINX_VERSION
#export NPS_VERSION=1.9.32.10
#export VERSION_PAGESPEED=v${NPS_VERSION}-beta