Skip to content

Instantly share code, notes, and snippets.

s4l1h /
Last active March 28, 2024 17:13
Kind and Istio ingress controller.
kind create cluster --config=./kind.yaml
s4l1h / config.yml
Created March 6, 2023 22:36
cloudflared config file for kubernetes api server.
tunnel: xxxxx
credentials-file: /root/.cloudflared/xxxxx.json
no-tls-verify: true
#micro kubernetes api server port: 16443 normally it is 6443
# we need to disable "certificate-authority-data" in .kube/config.
# when we use the kubectl port-forward we will get this error message "error: error upgrading connection: Upgrade request required"
s4l1h /
Last active May 13, 2022 15:28
Installing PHP 5.6 ZTS enabled & Composer
  1. Installing dependencies
dpkg-reconfigure tzdata
dpkg-reconfigure locales

apt-get update
apt-get install memcached ntp
apt-get install build-essential git libssl-dev libxml2-dev libcurl4-openssl-dev autoconf libicu-dev curl
s4l1h / Socks5ProxyCheck.php
Created May 28, 2012 10:01
Socks5 Proxy Checker: php ve curl ile ip:port şeklindeki listeden çalışan sock5 proxy adreslerini bulur.
s4l1h /
Created November 7, 2021 12:07
Raspbery pi Relay
import RPi.GPIO as GPIO
from time import sleep
GPIO.setup(17, GPIO.OUT) # It does Auto set LOW and Turn Relay ON
GPIO.output(17, GPIO.HIGH) # Off Relay
s4l1h /
Created October 29, 2011 12:28
Install XAMPP on 64 bit linux
echo "Download XAMPP"
echo "install ia32-libs"
sudo apt-get install ia32-libs
echo "Extrach XAMPP"
sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt
echo "install python-gtk2-dev with xampp controller panel"
sudo apt-get install python-gtk2-dev
echo "Start LAMP"
package menu
type Menu struct {
Name string `json:"Name" validate:"required,min=3,max=15" conform:"trim"`
//Desc string
URL string `json:"URL" conform:"trim"` //validate:"required"
Blank bool `json:"Blank"`
Root bool `json:"Root"`
s4l1h / nginx.conf
Created April 28, 2012 14:22
user www-data;
worker_processes 8;
worker_rlimit_nofile 5120000;
error_log /var/log/nginx/error.log;
pid /var/run/;
events {
worker_connections 1024;
# multi_accept on;
s4l1h / Dockerfile
Last active September 19, 2019 11:41
PHP 7 zts pthreads+mongodb+redis+pdo_mysql+pdo_pgsql+mysqli+curl+opcache+composer
FROM php:7-zts
RUN apt-get update
RUN apt-get install git libssl-dev libpq-dev libcurl4-openssl-dev -y
# Install mysqli+opcache+pdo
RUN docker-php-ext-install mysqli pdo pdo_mysql pdo_pgsql opcache curl
RUN docker-php-ext-enable mysqli pdo pdo_mysql pdo_pgsql opcache curl
# Install Redis
RUN pecl install redis
RUN docker-php-ext-enable redis
# Install mongodb
s4l1h /
Created February 28, 2017 13:39
Debian 8 (jessie) build php 5.3.29
mkdir /opt/php-5.3.29
mkdir /usr/local/src/php5-build
cd /usr/local/src/php5-build
wget -O php-5.3.29.tar.bz2
tar jxf php-5.3.29.tar.bz2
# Thanks
apt-get install libbz2-dev libxml2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libc-client2007e-dev libkrb5-dev libmcrypt-dev libpq-dev libmysqlclient-dev
mkdir /usr/include/freetype2/freetype