This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL=/bin/bash | |
DOWNLOADS=~/Downloads | |
NOTO_URL=https://noto-website-2.storage.googleapis.com/pkgs/Noto-hinted.zip | |
NOTO_ZIP=noto-font.zip | |
NOTO_DIR=/usr/share/fonts/opentype/noto | |
all: download install | |
download: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
install --mode 0751 --owner root --group root ipcheck.py /usr/local/sbin/ipcheck.py | |
install --mode 0751 --owner root --group root ipcheck-wrapper /usr/local/sbin/ipcheck-wrapper | |
install --mode 0644 --owner root --group root ipcheck-cron.d /etc/cron.d/ipcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL=/bin/bash | |
SURY_REPO=/etc/apt/sources.list.d/sury.list | |
.PHONY: deploy | |
deploy: repo install configure restart check | |
repo: | |
ifeq (,$(wildcard ${SURY_REPO})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
void tangananica(int sig) {asm("nop;");} | |
void tanganana(int sig) {__asm__ ("nop;");} | |
int main(void) | |
{ | |
printf("%s\n","La mejor señal es SIGTERM,"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . | |
RANDFILE = $ENV::HOME/.rnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -vx | |
# = ^ . ^ = | |
# iptables-apache.sh | |
# Check for spurious @apache connections via iptables -j LOG | |
# Andres Hernandez - tonejito | |
# Released under the BSD 3-clause license | |
APACHE_USER=www-data | |
APACHE_UID=$(getent passwd ${APACHE_USER} | awk -F : '{print $3}') | |
APACHE_CHAIN=APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check the following URL for the | |
# Cache Directory Tagging Standard | |
# http://brynosaurus.com/cachedir/spec.html | |
DATE=$(date '+%Y%m%d-%H%M%S') | |
EXCLUDED_DIRS="rails/.git rails/vendor" | |
for DIR in ${EXCLUDED_DIRS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 0644 root:root ~/.bash_aliases | |
alias fix-apache-selinux='/usr/bin/sudo /usr/local/sbin/fix-apache-selinux' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://openwrt.org/docs/guide-developer/quickstart-build-images | |
SHELL=/bin/bash | |
DATE=$(shell date '+%s') | |
SRC_REPO=https://git.openwrt.org/openwrt/openwrt.git | |
SRC_DIR=openwrt | |
DEPS=\ | |
subversion g++ zlib1g-dev build-essential git python rsync man-db \ | |
libncurses5-dev gawk gettext unzip file libssl-dev wget zip time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://perishablepress.com/wordpress-discussion-management-enable-or-disable-comments-and-pingbacks-via-sql/ | |
UPDATE posts SET comment_status = 'closed' , ping_status = 'closed' ; |