[...$0.children].map(s => s.children[1].children[0].children[0].children[0].href.split("&")[0]);
Account shivam010 - me - shivamrathore.com
Activation with option+space
ip - External IPv4 ip6 - External IPv4
# Download a single video
youtube-dl -o '%(title)s.%(ext)s' "https://www.youtube.com/watch?v=R1Pmcy74Kfs"
# Download whole playlist in a separate directory with videos indexed as the original order in playlist
youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' "https://www.youtube.com/playlist?list=PLkn0zold0m0gPVxbke9slzodvPt6wSRob"
# If only want audio files of the videos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File will download all the sounds used in donttap.com/ | |
package main | |
import ( | |
"bytes" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Package is used to download content from any link of any format | |
package main | |
import ( | |
"bytes" | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net/http" |
git filter-branch --tree-filter <command> -- --all
This allows you to edit the contents of the tree (the actual files and directories) for each commit.
It will run a command in a directory containing the entire tree, your command may edit files, add new files, delete files, move them, and so on. Git will then create a new commit object with all of the same metadata (commit message, date, and so on) as the previous one,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" prefix="og: http://ogp.me/ns#"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta property="og:type" content="article"> | |
<meta property="og:title" content="A Stupid Story !!"> | |
<meta property="og:description" content="Some Stupid Subtitle…"> | |
<title>Stupid Story</title> | |
<style> | |
@import url("https://fonts.googleapis.com/css?family=Georgia:400,700|Lora|Playfair+Display:700i,900"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
# It lists all the large files in your git history | |
# It shows you the largest objects in your repo's pack file. | |
# Written for osx. | |
# | |
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
# @author Antony Stubbs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap" | |
"go.uber.org/zap" | |
"log" | |
"net/http" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/mongodb/mongo-go-driver/bson" | |
"github.com/mongodb/mongo-go-driver/mongo" | |
"log" | |
) |
NewerOlder