Skip to content

Instantly share code, notes, and snippets.

@z2z
z2z / testwe-vbox.bat
Last active November 14, 2022 09:59 — forked from keyboard-slayer/testwe-vbox.bat
Bypass for TestWE
@echo off
REM https://docs.oracle.com/en/virtualization/virtualbox/6.0/admin/changedmi.html
REM Change here if the VM name is different
SET /P VMname = Name of the VM:
REM If you want to play with values its here!
SET SYSven=Dell
SET SYSprod=Optiplex
SET SYSdate="01/01/2018"
SET vBox="%VBOX_MSI_INSTALL_PATH%VBoxManage.exe"
@z2z
z2z / mxq.md
Created November 10, 2022 13:57 — forked from probonopd/mxq.md

Linux on MXQ (PCB: S805Q_V2.0) m8b_m201_v1@23a35625

Seems to be also known as the HD18Q "black box". https://www.ebay.de/itm/153205410117 ("NEU MXQ S805 Smart 1GB+ 8GB Smart TV Box Android 4.4 Quad Core 1.5 G WIFI", seller "SILVESTRAS RUNTA Network Tech Co. Ltd"), EUR 14,99

I can boot with meson8b_m201d.dtb and wired Ethernet works.

U-boot thinks it is a 512 MB device. Linux does, too. The SDK used seems to be named "s805_0701_512M":

root@vegas805:~# strings /mnt/lib/hw/camera.amlogic.so | grep home/
@z2z
z2z / nginx.service
Created October 27, 2020 15:01 — forked from bes1002t/nginx.service
Start Nginx as non root user with systemd
# Stop dance for nginx
# =======================
#
# ExecStop sends SIGSTOP (graceful stop) to the nginx process.
# If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control
# and sends SIGTERM (fast shutdown) to the main process.
# After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends
# SIGKILL to all the remaining processes in the process group (KillMode=mixed).
#
# nginx signals reference doc:
Source: https://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html
This page collects hints how to improve the security of nginx web servers running on Linux or UNIX-like operating systems.
Default Config Files and Nginx Port
/usr/local/nginx/conf/ or /etc/nginx/– The nginx server configuration directory and /usr/local/nginx/conf/nginx.conf is main configuration file.
/usr/local/nginx/html/ or /var/www/html– The default document location.
/usr/local/nginx/logs/ or /var/log/nginx – The default log file location.
Nginx HTTP default port : TCP 80
# Instructions. Copy and paste the codes below:
cd /usr/local/src
# Download all needed archives, four(4) archives
# For PHP source
wget http://au1.php.net/get/php-5.6.21.tar.bz2/from/this/mirror -O php.tar.gz
# For curl. You can choose from any mirror site from https://curl.haxx.se/latest.cgi?curl=tar.gz&all=yes
wget https://dl.uxnr.de/mirror/curl/curl-7.48.0.tar.gz
# For libxml2
#!/bin/sh
# Some Notes About Free TDS
# #
# # TDS
# #
# SYBASE=$HOME/usr/lib
# LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$SYBASE/lib
#
@z2z
z2z / compile-redis-portable.sh
Created January 30, 2020 05:01 — forked from mitjafelicijan/compile-redis-portable.sh
Creates portable version of Redis (Linux)
#!/bin/sh
# http://download.redis.io/releases/
# Usage: sh compile-redis-portable.sh
VERSION="4.0.6"
INIT_PATH=`dirname "$0"`
INIT_PATH=`( cd "$INIT_PATH" && pwd )`
@z2z
z2z / install.html
Created February 2, 2019 10:02 — forked from RazorAnt/install.html
iOS Enterprise Deployment - for distribution with your IPA
<html>
<head>
<title>My app install</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<style>
body {
font: 13pt Helvetica, sans-serif;
}
</style>
</head>
@z2z
z2z / Compile apache 2.4 + php from source
Last active November 3, 2021 14:58 — forked from algotrader-dotcom/Compile apache 2.4 + php from source
Compile apache 2.4 + php from source
1. Requirements
yum install pcre*
yum install libxml*
yum install gdbm-devel
2. Download packages
# http://mirrors.wuchna.com/apachemirror//apr/apr-1.6.5.tar.bz2
# http://mirrors.wuchna.com/apachemirror//apr/apr-util-1.6.1.tar.bz2
@z2z
z2z / gist:3681123a11b14afb8f277ea809b375c3
Created November 28, 2018 07:21 — forked from sheikhwaqas/gist:5577119
Install Apache / MySQL & PHP on a freshly created Red Hat Enterprise Linux Amazon EC2 Instance
# Login to your Amazon EC2 Instance via SSH.
# If you are logged in as root, you don't need to use the sudo command in the commands below.
# Update the current packages installed on the system
sudo yum upgrade
# Install the required packages before installing Apache / MySQL and PHP
sudo yum install gcc gcc-c++ autoconf automake pcre-devel \
libxml2-devel bzip2-devel libcurl-devel freetype-devel \
openldap-clients cyrus-sasl-devel openldap-devel \