Skip to content

Instantly share code, notes, and snippets.

View bellflower2015's full-sized avatar

Kikyou Akino bellflower2015

View GitHub Profile
@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() {
From eb989be4081cf996bd7e7eb6a529bbc1dc483a59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= <ondra@mistotebe.net>
Date: Mon, 1 Nov 2021 17:12:35 +0000
Subject: [PATCH] ITS#9733 Only use libltdl when SLAPD_MODULES is defined
---
servers/slapd/overlays/ppolicy.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c
@bellflower2015
bellflower2015 / sakura-setup.bash
Last active June 18, 2021 11:36
install script ( GNU Core Utilities, Git, Vim 7.4 + Lua, Tig, tmux ) for 'さくらのレンタルサーバ スタンダード'
#!/usr/local/bin/bash
#======================================
# sakura-setup.bash
#
# Date: 2015-09-07
# Author: Kikyou Akino <bellflower@web4u.jp>
#======================================
export LD_LIBRARY_PATH=$HOME/local/lib:/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH
@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 / 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)
@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-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 / 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'
# -*- 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 / 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 \