Skip to content

Instantly share code, notes, and snippets.

View stpe's full-sized avatar
👋
🏎💨

Stefan Pettersson stpe

👋
🏎💨
View GitHub Profile
@stpe
stpe / slack-export-emoji-statistics.js
Created March 10, 2016 09:54
Parse Slack export to show top list of most popular emojis
"use strict";
var fs = require("fs");
var path = require("path");
var dir = "./export";
let count = fs.readdirSync(dir)
// we only want channel sub-directories
.filter(file => fs.statSync(path.join(dir, file)).isDirectory())
@stpe
stpe / youtube_videoCategories.md
Last active November 15, 2016 10:22
YouTube Video Categories

Per regionCode.

US

  • Film & Animation
  • Autos & Vehicles
  • Music
  • Pets & Animals
  • Sports
  • Short Movies
@stpe
stpe / youtube_topicIDs.md
Last active April 23, 2025 02:23
YouTube Topic IDs

Music topics

  • /m/04rlf Music
  • /m/05fw6t Children's music
  • /m/02mscn Christian music
  • /m/0ggq0m Classical music
  • /m/01lyv Country
  • /m/02lkt Electronic music
  • /m/0glt670 Hip hop music
  • /m/05rwpb Independent music
@stpe
stpe / youtube_videoCategories.json
Last active October 15, 2021 06:20
YouTube Video Categories JSON array
[
{
"id": "1",
"title": "Film & Animation"
},
{
"id": "2",
"title": "Autos & Vehicles"
},
{
@stpe
stpe / youtube_audioLanguages.json
Created January 26, 2017 16:03
Youtube Audio Languages
{
"zxx": "Not applicable",
"ab": "Abkhazian",
"aa": "Afar",
"af": "Afrikaans",
"sq": "Albanian",
"ase": "American Sign Language",
"am": "Amharic",
"ar": "Arabic",
"arc": "Aramaic",
@stpe
stpe / youtube_countries.json
Created January 26, 2017 16:08
YouTube Countries
{
"AF": "Afghanistan",
"AX": "Aland Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
@stpe
stpe / bitly_get_access_token.sh
Last active September 4, 2023 19:11
Bitly Get Access Token
curl -u "[email protected]:xyz123mypassword" -X POST "https://api-ssl.bitly.com/oauth/access_token"
curl -X GET \
 https://api-ssl.bitly.com/v4/bitlinks/bit.ly%2F2Km4Nro/clicks/summary \
 -H 'Authorization: Bearer ad7ecf6cd10e8f072651f00cf90e2bc983a4a974'