Skip to content

Instantly share code, notes, and snippets.

View tansautn's full-sized avatar
๐Ÿš€
Flying

Zuko tansautn

๐Ÿš€
Flying
View GitHub Profile
@tansautn
tansautn / .htaccess
Last active May 25, 2017 14:47
global.php - dpd
<IfModule mod_rewrite.c>
RewriteEngine On
#Base template URL reslove
RewriteCond %{REQUEST_URI} public/frontend/skin/([^/]*)/(.*)$ [OR]
RewriteCond %{REQUEST_URI} frontend/skin/([^/]*)/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^public/frontend/skin/([^/]*)/(.*)$ public/frontend/skin/default/$2 [L,NC]
# IMPORTANT : The three lines bellow is using for enforce a no-trailing-slash.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} /(.*)/$
@tansautn
tansautn / .htaccess
Last active April 29, 2018 05:52
No "public" in the url .htaccess rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^public/ - [NC,L]
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
@tansautn
tansautn / composer.json
Last active June 9, 2020 09:07
SPYPRO Bot Fake Referer
{
"name": "zuko/fkr",
"type": "project",
"require": {
"symfony/panther": "^1.0@dev"
},
"authors": [
{
"name": "Zuko",
"email": "[email protected]"
@tansautn
tansautn / json_to_srt.py
Created September 15, 2020 00:45
Python convert IBM Watson Speech To Text JSON Response to SRT
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. http://www.gnu.org/licenses/
@tansautn
tansautn / README.md
Last active June 4, 2021 05:08
Windows 10 - Sync time at computer startup

Windows 10 Timesync VBS Script

  • Feature : Update local clock synced with http webserver
  • Requirements: Working windows with VBS Host, Administrator right access

Usage

  • Run .vbs script driectly or setup a task to run at every startup
  • Or you can import xml file to "Task Scheduler" management windows
  • With startup task. Please import xml file to task scheduler management.
  • Run test once when imported.
  • If the task fail. Run secpol.msc /s and add Logon as batch script for user SYSTEM
@tansautn
tansautn / musicDownWallBypasser.userscript.js
Last active July 31, 2024 12:27
musicDownWallBypasser | by Zukoยฎ
// ==UserScript==
// @name musicDownWallBypasser | Hypeddit, PumpYourSound | by fan1200, Zukoยฎ
// @namespace https://zuko.pro
// @version 1.1
// @description auto download from hypeddit, auto download from pumpyoursound, auto connect soundcloud. Thank for fan1200
// @description-org Bypass the fangates. Soundcloud and Spotify accounts are mandatory! Please make sure to log them on first before running the script!
// @author fan1200, Zuko <[email protected]>
// @match https://hypeddit.com/*
// @match https://pumpyoursound.com/*
// @match https://secure.soundcloud.com/connect*
@tansautn
tansautn / README.md
Created November 27, 2024 01:17
Jet Brains IDEA plugins list exporter/importer

JetBrains IDEA Plugins Export/Import

These scripts can help you on export installed plugins. Or Install list of exported plugins to target IDEA.

Author: Zuko

Exporter

// Get non-bundled plugins
        import com.intellij.ide.plugins.PluginManagerCore
@tansautn
tansautn / .README.md
Last active April 8, 2025 04:46
AV1 fast encoding in FFMPEG.

AV1 Codec in FFMPEG

AV1 is good codec while it's provide higher video quality at smaller size (compared to most porpular x264 codec).

But the first time i tried simple encoding though ffmpeg. That speed is too low, a bit more then it's can slowly like i did 2 pass x264 Mini-HD encoding before.

Today wasn't exactly a great day. I was browsing the internet and stumbled upon this "youngster" - libstav1. He seems to run incredibly fastโ€”so fast, in fact, that he gave my CPU quite a surprise. Want to try racing against him?

@tansautn
tansautn / build.py
Last active March 17, 2025 11:01
Concat multiple video file to one file
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Build script for V-CONCAT
This script builds a standalone executable for the V-CONCAT tool using PyInstaller.
"""
import os
@tansautn
tansautn / TrustProxiesMiddleware.php
Last active February 18, 2025 10:33
Laravel cloudflare trust proxy middleware. Single class does everythings !
<?php
/**
* --------------------------------------------------------------------------
*
* --------------------------------------------------------------------------
* @PROJECT : Lalita
* @AUTHOR : Zuko <https://github.com/tansautn>
* @LINK : https://www.zuko.pro/
* @FILE : TrustProxiesMiddleware.php
* @CREATED : 18:33 , 13/Nov/2024