Skip to content

Instantly share code, notes, and snippets.

View blue-bird1's full-sized avatar
🏠
fish touching

青鸟 blue-bird1

🏠
fish touching
View GitHub Profile
https://f.ws59.cn/f/dwctwj11fcl 复制链接到浏览器打开
@blue-bird1
blue-bird1 / filter
Last active November 27, 2023 18:22
adguard
//data.bilibili.com
log-reporter.js|
//douban.com##iframe:last-child
@blue-bird1
blue-bird1 / crash
Created January 19, 2020 14:32
example
����
@blue-bird1
blue-bird1 / read.json
Last active May 5, 2019 14:33
simple read json
{
"sites" : [{
"name": "freebuf",
"url": "https://www.freebuf.com/*/*.html",
"title" : "[[{$('.title:eq(0)>h2').text()}]]",
"desc" : "",
"include" : "<div class='article-wrap panel panel-default'>",
"exclude" : [
]
}]
@blue-bird1
blue-bird1 / buildphp.sh
Created March 7, 2019 10:54
I php build config
curl -SL "http://php.net/get/php-7.3.0.tar.xz/from/this/mirror" -o php.tar.xz
tar -xf php.tar.xz
cd php-7.3.0/
apt-get install -y libmcrypt-dev libicu-dev ca-certificates curl librecode0 libsqlite3-0 libxml2 autoconf file g++ gcc libc-dev make pkg-config re2c libpcre3-dev libcurl4-openssl-dev libreadline6-dev librecode-dev libsqlite3-dev libssl-dev libxml2-dev xz-utils bison libcurl-openssl1.0-dev
./configure --prefix /opt/php --with-config-file-path=/etc/php --with-config-file-scan-dir=/etc/php/conf.d --enable-pdo=shared --enable-mysqlnd --with-pdo-sqlite=shared --with-sqlite3=shared --with-pdo-mysql=shared,mysqlnd --enable-intl=shared --sysconfdir=/etc --datadir=/usr/share/php --with-openssl --with-zlib --enable-bcmath --enable-calendar --enable-exif \
--enable-ftp \
--with-gettext \
--enable-mbstring \
--enable-pcntl \
@blue-bird1
blue-bird1 / php7-build.sh
Last active March 7, 2019 09:52 — forked from matthiasbayer/php7-build.sh
Build PHP7 from source
#!/usr/bin/env bash
set -e
PHP_DIR=${PHP_DIR:-/etc/php7/cli}
FPM_DIR=${FPM_DIR:-/etc/php7/fpm}
PHP_VERSION=${PHP_VERSION:-7.0.0}
MODS_DIR=${MODS_DIR:-/etc/php7/mods-available}
BUILD_DIR=/usr/src/php
#!/usr/bin/env bash
git clone https://github.com/vim/vim && cd vim
./configure --prefix /opt/vim --with-features=huge --with-python3-config-dir=/opt/python3/lib/python3.8/config-3.8m-x86_64-linux-gnu/ --enable-pythoninterp --enable-python3interp vi_cv_path_python3=/opt/python3/bin/python3.8
make && make install
#!/usr/bin/env bash
git clone https://github.com/fish-shell/fish-shell && cd fish-shell
mkdir build; cd build
sudo apt-get install -y cmake libreadline-dev libeditline-dev libbz2-dev libcurses-ocaml-dev
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/fish
make
sudo make install
chsh -s /opt/fish/bin/fish
#!/usr/bin/env bash
curl https://sh.rustup.rs -sSf | sh
#!/usr/bin/env bash
wget https://github.com/python/cpython/archive/v3.8.0a2.zip && unzip *.zip && cd cpython*
apt-get install libsqlite3-dev libssl-dev libzip-dev libffi-dev
./configure --prefix /opt/python3 --enable-shared && make && make install