Skip to content

Instantly share code, notes, and snippets.

View quangtt-rks's full-sized avatar
🎸
Rocking

Quang Tran quangtt-rks

🎸
Rocking
View GitHub Profile
@quangtt-rks
quangtt-rks / downgrade.sh
Created January 31, 2018 03:58 — forked from 1v/downgrade.sh
Apache 2.2.22 + PHP 5.3.10 on Ubuntu 14.04
cat <<EOF >> /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu precise main restricted universe
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
EOF
apt-get update
apt-get remove \
apache2 \
/*
################################################################
# Nhân quả không nợ chúng ta thứ gì, cho nên xin đừng oán giận #
# _ #
# _ooOoo_ #
# o8888888o #
# 88" . "88 #
# (| -_- |) #
# O\ = /O #
@quangtt-rks
quangtt-rks / pre-commit
Last active May 22, 2023 10:21
just a pre-commit hook
#!/bin/sh
rejected_message()
{
echo "COMMIT REJECTED! Please fix your diff.\n\
If you must, run 'git commit --no-verify' to skip this check." && \
exit 1
}
#== 1. Check forbidden keywords within modified files, except commented out sections