Skip to content

Instantly share code, notes, and snippets.

View Yeshwanthyk's full-sized avatar
💾

Yesh Yendamuri Yeshwanthyk

💾
View GitHub Profile
@Yeshwanthyk
Yeshwanthyk / config
Last active December 11, 2015 17:39 — forked from dlo/config
Pianobar settings for LastFM Scrobble. Gist contains following files: 1) config 2) scrobble.py 3) pylast.py (For sake of completeness)
# Move this file to ~/.config/pianobar/config
# User
user = PANDORA_USERNAME
password = PANDORA_PASSWORD
# Change this to where your scrobble.py file is
event_command = ~/.config/pianobar/scrobble.py
@Yeshwanthyk
Yeshwanthyk / webchecker.py
Last active December 24, 2015 22:19
websucker
#! /usr/bin/env python
# Original code by Guido van Rossum; extensive changes by Sam Bayer,
# including code to check URL fragments.
"""Web tree checker.
This utility is handy to check a subweb of the world-wide web for
errors. A subweb is specified by giving one or more ``root URLs''; a
page belongs to the subweb if one of the root URLs is an initial
#!/bin/sh
# All the things I can install from the command line when I set up a new Mac
# This can be executed by copying and pasting the following at a shell prompt
# curl https://raw.github.com/gist/2993226/initial_setup.sh | sh
# Install Homebrew
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
# Tap Homebrew versions (needed for older versions of Python)
brew tap homebrew/versions

yesh

Keybase proof

I hereby claim:

  • I am yeshwanthyk on github.
  • I am yesh (https://keybase.io/yesh) on keybase.
  • I have a public key ASAK9oEzaZoOiIth5utIsVGVVZdCxKlecP7GzoMY4Xh45Qo

To claim this, I am signing this object:

@Yeshwanthyk
Yeshwanthyk / trim.sh
Created April 14, 2020 21:01
Instantly Trim Videos
INFILE="video.mp4"
OUTFILE="shortenedclip.mp4"
START="00:00:12.35" # Start Time in hh:mm:ss.msec format
DURATION="00:01:05.4" # Duration in hh:mm:ss.msec format
################## Alternative format ##################
# START="12.35" # Start time in s.msec format #
# DURATION="65.4" # Duration time in s.msec format #
########################################################
# Path to your oh-my-zsh installation.
export ZSH=/Users/Yesh/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="junkfood"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'soft-aesthetic/soft-era-vim'
Plug 'ctrlpvim/ctrlp.vim' " fuzzy find files
Plug 'scrooloose/nerdcommenter'
Plug 'mattn/emmet-vim'
Plug 'ap/vim-css-color'
Plug 'pangloss/vim-javascript'
@Yeshwanthyk
Yeshwanthyk / giffer.sh
Last active February 15, 2021 05:10
Youtube to Gif using youtubedl and ffmpeg
# brew install youtube-dl (or) my preferred way is to set it up using pip in a virtualenv
# brew install ffmpeg
youtube-dl -g "URL"
# START TIME/END TIME HH:MM:SS
ffmpeg -i "FIRST URL FROM ABOVE" -r 15 -vf scale=512:-1 -ss <START TIME> -to <END TIME> <the name you want>.gif
@Yeshwanthyk
Yeshwanthyk / resources.txt
Created June 23, 2020 17:22
List of design resources
https://uxplanet.org/my-looong-list-of-design-resources-3771d2273e71
colorhunt.co
webgradients.com
gradient.shapefactory.co
pigment.shapefactory.co
webkul.github.io
colourco.de
gradientsguru.com
picular.co