Skip to content

Instantly share code, notes, and snippets.

@FalconIA
FalconIA / nginx-openssl-1.1.1l.el6.txt
Last active December 9, 2021 01:46 — forked from moneytoo/gist:ab3f34e4fddc2110675952f8280f49c5
nginx with OpenSSL 1.1.1l on CentOS 6 with CVE-2021-23017 fix
#useradd -m -U -s /bin/bash builder
#yum -y groupinstall 'Development Tools'
#yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel rpmdevtools pcre-devel libedit-devel
#rpm -Uvh rpm -ivh https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/GeoIP-devel-1.6.5-1.el6.x86_64.rpm https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/GeoIP-1.6.5-1.el6.x86_64.rpm https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/GeoIP-GeoLite-data-2018.04-1.el6.noarch.rpm https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/GeoIP-GeoLite-data-extra-2018.04-1.el6.noarch.rpm https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/g/geoipupdate-3.1.1-2.el6.x86_64.rpm
#useradd -U -m -r -s /sbin/nologin builder
OPENSSL="openssl-1.1.1l"
NGINX_VERSION="1.19.5-1"
NJS_VERSION="1.19.5+0.5.0-1"
MODULE_STICKY_VERSION="08a395c66e42" # master 2016-08-09
@FalconIA
FalconIA / vlmcsd.service
Last active November 2, 2022 10:02
vlmcsd boot script for systemd
[Unit]
Description=vlmcsd
Wants=network.target
After=syslog.target
[Service]
Type=forking
PIDFile=/var/run/vlmcsd.pid
ExecStart=/usr/local/vlmcsd/vlmcsd -l /var/log/vlmcsd.log -p /var/run/vlmcsd.pid
@FalconIA
FalconIA / tomcat-cors-web.xml
Created May 18, 2018 07:23
CORS filter in tomcat
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
echo -e "\033[32m download new package (version $1) \033[0m"
wget -O yapi.tgz http://registry.npm.taobao.org/yapi-vendor/download/yapi-vendor-$1.tgz
echo -e "\033[32m build new image \033[0m"
docker build -t registry.cn-beijing.aliyuncs.com/falconia/yapi:latest .
docker tag registry.cn-beijing.aliyuncs.com/falconia/yapi:latest registry.cn-beijing.aliyuncs.com/falconia/yapi:$1
docker push registry.cn-beijing.aliyuncs.com/falconia/yapi:latest
docker push registry.cn-beijing.aliyuncs.com/falconia/yapi:$1
#!/usr/bin/env bash
EXEC_PATH=docker-compose
DEFAULT_FILES="*.yml *.yaml"
ARGS=
FILES=
START=1
END=$#

BCLinux U8 Build OpenSSH 9.8p1 RPM package

Remove bclinux-license-manager

rpm -qa | grep bclinux-license-manager | xargs sudo rpm -evh

Build OpenSSH RPM

@FalconIA
FalconIA / upgrade-kernal-el7.md
Created July 13, 2024 11:39
Upgrade Kernel of CentOS 7 (RHEL 7)

Upgrade Kernel of CentOS 7 (RHEL 7)

  1. Install elrepo

    wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/elrepo-release-7.0-8.el7.elrepo.noarch.rpm
    sudo rpm -Uvh elrepo-release-7.0-8.el7.elrepo.noarch.rpm
    sudo vi -i 's|http://elrepo.org/linux|https://linux.cc.iitk.ac.in/mirror/centos|g' /etc/yum.repos.d/elrepo.repo