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
<?php | |
$baseUrl = 'https://www.googleapis.com/youtube/v3/'; | |
// https://developers.google.com/youtube/v3/getting-started | |
$apiKey = 'API_KEY'; | |
// If you don't know the channel ID see below | |
$channelId = 'CHANNEL_ID'; | |
$params = [ | |
'id'=> $channelId, | |
'part'=> 'contentDetails', |
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
from datetime import datetime | |
from bs4 import BeautifulSoup | |
import requests | |
class Espoilertv: | |
BASE_URL = 'http://espoilertv.com/' | |
def __init__(self, email, password): |
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
function cdb() { | |
USAGE="Usage: cdb [-c|-d|-l] [bookmark]" ; | |
DIR="$HOME/.config/cd_bookmarks" | |
if [ ! -e $DIR ] ; then | |
mkdir $DIR | |
fi | |
case $1 in | |
-c | --create) shift | |
if [ ! -f $DIR/$1 ] ; then |
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
import json | |
import boto3 | |
from botocore.exceptions import ClientError | |
AMIS_FILE = "amis.json" | |
REFRESH_AMIS_FILE = False | |
DRY_RUN = True |