Skip to content

Instantly share code, notes, and snippets.

View bellflower2015's full-sized avatar

Kikyou Akino bellflower2015

View GitHub Profile
@bellflower2015
bellflower2015 / wavid.service
Last active July 17, 2018 20:16
/etc/systemd/system/wavid.service
#
# /etc/systemd/system/wavid.service
# usage:
# systemctl daemon-reload
# systemctl enable wavid
# systemctl start wavid
#
[Unit]
Description=Wavi daemon
@bellflower2015
bellflower2015 / docker-compose-nginx-php-mysql-phpmyadmin.yml
Created August 4, 2018 08:12
docker-compose.yml (nginx/php/mysql/phpmyadmin)
version: '2'
services:
# mysql
mysql:
container_name: "mysql"
image: mysql:5.7
ports:
- '3306:3306' #デバッグ用
environment:
@bellflower2015
bellflower2015 / Dockerfile
Last active August 6, 2018 15:51
bitzenyplus-yespower-0.5:xenial Dockerfile
#
# docker build --tag bitzenyplus-yespower-0.5:xenial --cpuset-cpus="0,1" -f Dockerfile .
#
FROM ubuntu:xenial
RUN apt update -qq \
&& apt upgrade -qq -y \
&& apt install -qq -y \
build-essential \
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provider "virtualbox" do |vb|
vb.name = "wallet-builder"
vb.memory = 8192
vb.cpus = 4
vb.customize [
@bellflower2015
bellflower2015 / chainparams.cpp
Last active August 25, 2023 05:55
Calculating Genesis Block
// ... snip ...
#include <arith_uint256.h>
// ... snip ...
class CMainParams : public CChainParams {
public:
CMainParams() {
@bellflower2015
bellflower2015 / vagrant-provision-bionic-mingw64.bash
Created June 19, 2019 00:01
vagrant-provision-bionic-mingw64.bash
#!/bin/bash
#
# config.vm.provision "shell", :path => "vagrant-provision-bionic-mingw64.bash", :privileged => false
#
export DEBIAN_FRONTEND=noninteractive
SUDO='sudo -E'
@bellflower2015
bellflower2015 / SanDeGo-depends.patch
Last active June 20, 2019 13:14
SanDeGo-depends.patch
diff --git a/depends/packages/bdb.mk b/depends/packages/bdb.mk
index 6c9876c..2f62094 100644
--- a/depends/packages/bdb.mk
+++ b/depends/packages/bdb.mk
@@ -1,8 +1,8 @@
package=bdb
-$(package)_version=4.8.30
+$(package)_version=5.3.28
$(package)_download_path=http://download.oracle.com/berkeley-db
$(package)_file_name=db-$($(package)_version).NC.tar.gz
@bellflower2015
bellflower2015 / SanDeGo-qt.pro.patch
Last active July 14, 2019 10:25
SanDeGo-qt.pro.patch
diff --git a/SanDeGo-qt.pro b/SanDeGo-qt.pro
index 640f993..97fd98d 100644
--- a/SanDeGo-qt.pro
+++ b/SanDeGo-qt.pro
@@ -45,7 +45,7 @@ QMAKE_LFLAGS *= -fstack-protector-all --param ssp-buffer-size=1
}
# for extra security on Windows: enable ASLR and DEP via GCC linker flags
win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat
-win32:QMAKE_LFLAGS += -static-libgcc -static-libstdc++
+win32:QMAKE_LFLAGS += -static -static-libgcc -static-libstdc++
@bellflower2015
bellflower2015 / 20190704.Dockerfile
Created July 4, 2019 13:13
20190704: Apache2.4 + HTTPS(443) + mod_rewrite + PHP7.3 + MySQL5.5 + phpMyAdmin
FROM php:7.3-apache
RUN docker-php-ext-install pdo_mysql
RUN apt-get update && apt-get install -y \
libssl-dev \
openssl \
ssl-cert \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& a2enmod ssl \
&& a2enmod rewrite \
@bellflower2015
bellflower2015 / sandego-qt-win.bash
Created July 14, 2019 09:26
sandego-qt-win.bash
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -y update
sudo apt-get -y install build-essential libtool automake pkg-config mingw-w64
sudo update-alternatives --set i686-w64-mingw32-gcc \
$(update-alternatives --list i686-w64-mingw32-gcc | grep -- -posix)
sudo update-alternatives --set i686-w64-mingw32-g++ \
$(update-alternatives --list i686-w64-mingw32-g++ | grep -- -posix)