Skip to content

Instantly share code, notes, and snippets.

View autotrof's full-sized avatar
🏠
WFH

Agung Kurniawan autotrof

🏠
WFH
View GitHub Profile
@piotrekkr
piotrekkr / OCI8_PECL_PHP_FPM_instructions.md
Last active October 26, 2023 21:14
Installing OCI8 from PECL with multiple PHP FPM versions from Ondrej Sury repo in Ubuntu 16.04

Download instant client 12.2 basic and basic devel rpm from oracle

Convert rpm to deb using alien command

alien -kv oracle-instantclient12*.rpm

Install deb files

@xxblx
xxblx / nextcloud.conf
Last active April 8, 2024 16:20
nextcloud nginx config
upstream php-handler {
server unix:/run/php-fpm/www.sock;
}
server {
#listen 443 ssl;
listen 80;
server_name 192.168.1.8;
#ssl_certificate /etc/ssl/nginx/cloud.example.com.crt;
@9SQ
9SQ / esp8266_WiFiClientSecure.ino
Last active May 20, 2022 04:54
Arduino core for esp8266 WiFiClientSecure
#ifdef ESP8266
extern "C" {
#include "user_interface.h"
}
#endif
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
ADC_MODE(ADC_VCC);
@cs278
cs278 / is_serialized.php
Created October 23, 2009 18:25
PHP is_serialized() function.
<?php
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
/**