Skip to content

Instantly share code, notes, and snippets.

View diendh's full-sized avatar
🌴
On vacation

Tom diendh

🌴
On vacation
  • VietTS
  • Việt Nam
View GitHub Profile
@diendh
diendh / fluss.sh
Created November 10, 2023 04:38 — forked from Domin8-IPTV/fluss.sh
flussonic
#!/bin/bash
# cracked flussonic
wget -q -O - http://debian.erlyvideo.org/binary/gpg.key | apt-key add -;
echo "deb http://debian.erlyvideo.org binary/" > /etc/apt/sources.list.d/erlyvideo.list;
apt-get update;
apt-get -y install flussonic flussonic-transcoder;
echo 'l4|8Ku8ypPgOUySHysCdkFHW0|r6BzpmVPpjgKpn9IunpFp6lLbCZOp3' >> /etc/flussonic/license.txt
/etc/init.d/flussonic start
@diendh
diendh / cloudflare-ddns-update.sh
Created June 10, 2021 07:16 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
@diendh
diendh / googleusercontent.nginx.conf
Created March 9, 2021 11:01 — forked from mai1me/googleusercontent.nginx.conf
googleusercontent 反向代理
server {
listen 443 ssl http2;
listen 80;
ssl_certificate /usr/local/nginx/conf/gg.mai1.me.crt;
ssl_certificate_key /usr/local/nginx/conf/gg.mai1.me.key;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:RC4-SHA:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!DSS:!PKS;
ssl_session_cache builtin:1000 shared:SSL:10m;
@diendh
diendh / blogger.nginx.proxy.conf
Created March 9, 2021 11:01 — forked from mai1me/blogger.nginx.proxy.conf
Google Blogger Blogspot nginx 反向代理
location /
{
proxy_pass http://ghs.google.com;
proxy_set_header Host w.mai1.me;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Cookie "";
proxy_hide_header Set-Cookie;
proxy_hide_header Location;
@diendh
diendh / ExtensionTabBarController
Created December 26, 2018 02:52
TabBar Visible
extension UITabBarController {
private struct AssociatedKeys {
// Declare a global var to produce a unique address as the assoc object handle
static var orgFrameView: UInt8 = 0
static var movedFrameView: UInt8 = 1
}
var orgFrameView:CGRect? {
get { return objc_getAssociatedObject(self, &AssociatedKeys.orgFrameView) as? CGRect }