Skip to content

Instantly share code, notes, and snippets.

View RupGautam's full-sized avatar

Rup Gautam RupGautam

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rupgautam on github.
  • I am rupgautam (https://keybase.io/rupgautam) on keybase.
  • I have a public key ASCkEBfKOZeIliSvurVLscQ3_DES3aLHmZtCL4Tfdb9RBwo

To claim this, I am signing this object:

@RupGautam
RupGautam / rclone+filebot.md
Last active May 10, 2020 11:47
Rclone Script

Filebot

Tv Shows

filebot -script fn:amc "/home/docker/transmission/downloads/complete" --db TheTVDB --action move --conflict override -non-strict -r --output "/home/docker/transmission/downloads/media" --format "{episode.special ? 'Specials' : 'Season '+s}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}{ext=='srt' ? ".en" : ''}" --log all --def unsorted=y music=y artwork=y

Movies

filebot -script fn:amc "/root/Media/" --db TheMovieDB --action move --conflict override -non-strict -r --output "/root/Downloads/movies" --format "{n} ({y})/{n} ({y}){ext=='srt' ? ".en" : ''}" --log all --def unsorted=y music=y artwork=y
/**
* Created by RupGautam on 7/25/17.
*/
/**
* Counts vowels from given string
*/
import java.util.Scanner;
public class CountVowels {
@RupGautam
RupGautam / gist:1d99256acc74cc0d5e5081314fd7b4f8
Last active June 28, 2017 01:58
youtube id to video embed on wordpress post
// Get the video URL and put it in the $video variable
if (isset($_GET['v'])) $videoid = $_GET['v'];
// Check if there is in fact a video URL
if ($videoid) {
	echo '<div class="videoContainer">';
	// Echo the embed code via oEmbed
	echo wp_oembed_get( 'http://www.youtube.com/watch?v=' . $videoid ); 
	echo '</div>';
}
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@RupGautam
RupGautam / index.html
Created May 3, 2017 06:54
Flappy Bird build in complete JavaScript
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title> Flappy Bird Clone </title>
<script type="text/javascript" src="phaser.min.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body>

Image of Yaktocat

fullscreen

Img

sidebar + content view

Img

@RupGautam
RupGautam / Grid_Table_Markdown.md
Last active April 23, 2017 22:03
grid styled markdown table
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Blog | Rup Gautam
subtitle: Computer Science Student
description:
author: Rup Gautam
language: en
# Theme Version | 当前版本
Yelee: "3.5"
# >>> Basic Setup | 基础设置 <<<
# Header | 主菜单
## About Page: `hexo new page about`
## Tags Cloud Page: `hexo new page tags`
menu:
Home: /