Skip to content

Instantly share code, notes, and snippets.

View CodenameCookie's full-sized avatar
🏠
Working from home

codenameCookie CodenameCookie

🏠
Working from home
View GitHub Profile
import firebase from 'firebase/app';
import 'firebase/auth';
import 'import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/firestore';
import 'firebase/storage';
export const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
databaseURL: process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL,
@lac5
lac5 / youtube-playlist-info.meta.js
Last active June 17, 2024 15:04
Utility for getting information about a playlist. Type `window[Symbol.for('userscript::PlaylistInfo')]` in your console to use the functions.
// ==UserScript==
// @name YouTube - Playlist Info
// @namespace larryc5
// @version 1.0
// @description Utility for getting information about a playlist. Type `window[Symbol.for('userscript::PlaylistInfo')]` in your console to use the functions.
// @author Larry Costigan
// @match http://www.youtube.com/*
// @match https://www.youtube.com/*
// @grant none
// @downloadURL https://gist.githubusercontent.com/larryc5/585b4bd176385894900a81d53a7dec7f/raw/youtube-playlist-info.user.js
@JakubOboza
JakubOboza / private-docker-regs-with-free-tiers.markdown
Created May 30, 2019 07:15
Private Docker registry with free tiers for Developers.

List of sites with free tier limits

  • Docker Hub - One private repo/image spot for free
  • Three Scale - Very generous free tier 50GB of space, 500 Pulls a month etc..
  • Canister - 20 private repos with almost no limits on free tier
  • Code Fresh - Free tier for developers

Setup your own private registry

function App() {
const [nickname, setNickname] = useState("");
const [email, setEmail] = useState("");
const [joined, setJoined] = useState(false);
const [msg, setMsg] = useState("");
const [messages, setMessages] = useState({});
const chatRoom = db.ref().child('chatrooms').child('global');
useEffect(() => {
@jwngr
jwngr / firebase-auth-tokens.tsv
Last active June 27, 2022 18:19
Firebase Auth Tokens
Token Type Lifetime Usage Generated By Format
Custom Token 1 hour Authenticate Firebase client SDKs You, via Firebase Admin SDK JWT
ID Token 1 hour Authenticate to Firebase services; validate server requests Firebase JWT
Refresh Token Long-lived (~1 year) Generate fresh ID tokens Firebase OAuth 2.0 refresh token
OAuth Access Token Varies by provider Authenticate to third-party identity provider APIs Third-party identity providers Varies by provider
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active July 14, 2024 18:28
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@Plazmaz
Plazmaz / all-chrome-extensions.txt
Last active March 18, 2022 21:05
Update: This file was limited by upload size! Please see https://github.com/Plazmaz/every-chrome-extension for the full list and scraping tool
https://chrome.google.com/webstore/detail/%D0%B0%D0%B2%D1%82%D0%BE%D1%80%D1%81%D0%BA%D0%B8%D0%B5-%D1%81%D1%82%D0%B8%D0%BA%D0%B5%D1%80%D1%8B-%D0%B1%D0%B5%D1%81%D0%BA%D0%BE%D0%BD%D0%B5/aoaagafllhniocophalnomgfmolofkko
https://chrome.google.com/webstore/detail/senscritique/nofmkkmhgjhhhilmilkcamnkbjhpkfen
https://chrome.google.com/webstore/detail/wambli-wiconi-tipi-db-sit/caldolanelnbbloogdldjcjcpeidfngc
https://chrome.google.com/webstore/detail/piscine-iasi/hgnfahakmadogmfpbmfmnonciegelngl
https://chrome.google.com/webstore/detail/chouti-enhance/pdllnllndjpgeklihnlgeloknebkepeb
https://chrome.google.com/webstore/detail/ezshopper/bnkdkedkdoaniknfocfonneflokdimcm
https://chrome.google.com/webstore/detail/ptysh/kpioedflaimmieepoconfikagbjclojh
https://chrome.google.com/webstore/detail/dussenberg-model-j-tab/dcaijaamhndclgifjelncejelokpcpdn
https://chrome.google.com/webstore/detail/balance/lflebgnjdhlmnedagbeildjbagfllhie
https://chrome.google.com/webstore/detail/mecha-khaxis/iepfbkljfaoegagfeeiklcdcennadiei
@p2or
p2or / Blender_Basic-UI-Template_27.py
Last active January 22, 2024 19:03
Basic-UI-Template for Blender 2.7+ #Blender #BSE
# -> For a Blender 2.8+ version, go to https://gist.github.com/p2or/2947b1aa89141caae182526a8fc2bc5a
# https://blender.stackexchange.com/q/57306/3710, https://blender.stackexchange.com/q/79779/3710
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
@CompuIves
CompuIves / codesandbox-editor.css
Created April 10, 2017 12:07
CodeSandbox Editor styles
.cm-s-oceanic.CodeMirror {
font-family: 'Source Code Pro', monospace;
background: #1C2022;
color: #e0e0e0;
height: 100%;
font-size: 14px;
font-weight: 500;
}
.cm-s-oceanic div.CodeMirror-selected { background: #374140; }
@batFINGER
batFINGER / process_files.py
Created November 24, 2016 13:05
Process multi files (ImportHelper) in blender.
import bpy
def process_files(context, directory, files):
import os
for file in files:
path = os.path.join(directory, file.name)
print("process %s" % path)
return {'FINISHED'}
# ImportHelper is a helper class, defines filename and