Skip to content

Instantly share code, notes, and snippets.

Avatar
🌟
This is the way

Sethu Narayan Senthil SethuSenthil

🌟
This is the way
View GitHub Profile
@SethuSenthil
SethuSenthil / README.md
Last active Sep 22, 2019
AutoSSH for serevo.net
View README.md

autoServeo - AutoSSH for serevo.net

Why?

serveo.net does not support autossh and the serveralive flag will eventually fail, disconnecting you from the remote server

What does this do?

This script aims to reconnect immidieatly after your disconnected esseintaly autoSSH.

How to use

Grant permissions to the script (you will need to do this if it your first time running it) chmod +x PATH/TO/autoServeo.bash Run the script /path/to/autoServeo.bash port subdomain

@SethuSenthil
SethuSenthil / gamecontrols.js
Created Dec 22, 2018
Game Controls JS --> A simple game controls boiler plate using javascript event codes
View gamecontrols.js
window.addEventListener("keydown", function(event) {
let key = event.code;
if(key === 'ArrowUp' || key === 'KeyW' /*|| key === 'Space'*/){
//jump up
}else if(key === 'ArrowDown' || key === 'KeyS'){
//go down
}else if(key === 'ArrowRight' || key === 'KeyD'){
//move right
}else if(key === 'ArrowLeft' || key === 'KeyA'){
//move left
@SethuSenthil
SethuSenthil / sample.txt
Created Jun 8, 2018
Most fast and efficient way of loading WebP images
View sample.txt
<picture>
<source srcset="media/image.webp" type="image/webp">
<source srcset="media/image.png" type="image/jpeg">
<img src="media/bootstrap.png" height="138" width="138">
</picture>
View Hiding_Weebly_Footer.html
@SethuSenthil
SethuSenthil / apple-touch-icon.html
Last active Jul 31, 2017
Template and syntax for apple-touch-icon
View apple-touch-icon.html
<link rel="apple-touch-icon" href="LINK OF PNG IMAGE">
<link rel="apple-touch-icon" sizes="76x76" href="LINK OF PNG IMAGE">
<link rel="apple-touch-icon" sizes="120x120" href="LINK OF PNG IMAGE">
<link rel="apple-touch-icon" sizes="152x152" href="LINK OF PNG IMAGE">
@SethuSenthil
SethuSenthil / weeblyfavicon.txt
Last active Jul 30, 2017
Custom Favicon for Free Weebly Websites
View weeblyfavicon.txt
𝐇𝐚𝐫𝐝 𝐌𝐞𝐭𝐡𝐨𝐝:
<link rel="shortcut icon" href="http://<Your Site Name>.weebly.com/files/theme/<Image Name>.ico"/>
𝐄𝐚𝐬𝐲 𝐌𝐞𝐭𝐡𝐨𝐝:
<link rel="shortcut icon" href="Paste the link you copied"