Skip to content

Instantly share code, notes, and snippets.

View tysonchamp's full-sized avatar
:octocat:
Nerd

Soumya Mondal tysonchamp

:octocat:
Nerd
View GitHub Profile
@tysonchamp
tysonchamp / tools.txt
Last active July 2, 2025 12:38
AI Tools
AudioX: https://github.com/ZeyueT/AudioX
Fantasy talking: https://fantasy-amap.github.io/fantasy-talking/
index-tts: https://github.com/index-tts/index-tts
Spark-TTS: https://github.com/SparkAudio/Spark-TTS
KokoroTTS: https://github.com/remsky/Kokoro-FastAPI
FramePack: https://github.com/lllyasviel/FramePack
Zonos: https://github.com/Zyphra/Zonos
Wan2GP: https://github.com/deepbeepmeep/Wan2GP
F5-TTS: https://github.com/SWivid/F5-TTS
fish-speech: https://github.com/fishaudio/fish-speech
ffmpeg -i video.mp4 -vcodec libx264 -crf 24 output.mp4
@tysonchamp
tysonchamp / loan-calculator.js
Created August 26, 2020 06:36
loan calculator js functions
function cal_eligibility() {
var e = 1e5,
r = document.getElementById("months_display").value / 12,
a = document.getElementById("interest_display").value / 100,
t = document.getElementById("income_display").value;
repay_max = 50, repay_min = 35;
var s = t * repay_max / 100,
n = t * repay_min / 100,
i = Math.pow(1 + a / 12, 12 * r),
o = parseFloat(e) / ((1 - 1 / i) / (a / 12)),
https://www.youtube.com/c/algobasket?sub_confirmation=1
@tysonchamp
tysonchamp / ci-routing
Created February 20, 2020 06:05
CI Routing htaccess and route config
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /letssub/
RewriteCond %{REQUEST_FILENAME} !-f
@tysonchamp
tysonchamp / .bashrc
Created January 12, 2020 15:36
cordova path
#android cordova code
export ANDROID_HOME=/home/gbyte/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
@tysonchamp
tysonchamp / vesta-issues.sh
Last active March 12, 2019 06:28
Linux Commands
# PHP CI Session Clean up Command
find /home/*/tmp -type f -name 'ci_session*' -delete
find /var/log/ -type f -regex '.*\.[0-9]+\.gz$' -delete
@tysonchamp
tysonchamp / gototop.html
Created September 8, 2018 19:54
go to top jquery button
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
}
@tysonchamp
tysonchamp / htaccess cache
Created October 7, 2017 23:02
htaccess cache
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
@tysonchamp
tysonchamp / gist:a13d62a75bcc65645d370604cc0f4720
Created October 1, 2016 10:58
add remove input using javascript
<html>
<head>
<title>jQuery add / remove textbox example</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<style type="text/css">
div{
padding:8px;
}