Skip to content

Instantly share code, notes, and snippets.

View ncouture's full-sized avatar
🌳
Continuously Growing

Nicolas Couture ncouture

🌳
Continuously Growing
View GitHub Profile
@ncouture
ncouture / init-react-js-jsx-ts-tsx-web-etc.el
Last active November 9, 2020 00:12
elisp all over my time
(require 'package)
(require 'init-packages)
(require-package 'tide)
(require-package 'ansi-color)
(require-package 'web-mode)
(require-package 'rjsx-mode)
(require-package 'js2-mode)
(require 'tide)
#!/usr/bin/env bash
# get-verified-crda-reg-data
# --------------------
# Get CRDA and REGDB tarball and cryptographically verify them,
# retrieving the PGP keys using the Web Key Directory (WKD)
# protocol if they are not already in the keyring.
#
# Configurable parameters
# -----------------------
# Where to download the tarball and verification data.
@ncouture
ncouture / get_chromecasts.sh
Last active May 21, 2025 19:43
Discover publicly exposed Chromecast devices on the Internet... ¯\_(ツ)_/¯
#!/bin/bash #
if [[ $# -ne 2 ]]; then
echo "Usage: "
echo -e "\t$(basename $0) <num-results> <filename>"
exit 1
fi # num-results is results from ZMAP--not--of chromecasts found from ZMAP results.
export results="$1"
export filename="$2"
<script src="http://octo.local/Dropbox/Projects/Google Demo/Development/closure-library/closure/goog/base.js"></script>
<script> goog.addDependency('../../../Main/static/scripts/gdocsdemo/collaboration.js', ['gdocsdemo.Collaboration'], ['gdocsdemo.Header', 'gdocsdemo.Playback', 'gdocsdemo.Tracking', 'goog.Uri', 'goog.array', 'goog.dom', 'goog.dom.query', 'goog.events', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.net.XhrIo', 'goog.style', 'goog.userAgent', 'goog.window']);
goog.addDependency('../../../Main/static/scripts/gdocsdemo/collaborator.js', ['gdocsdemo.Collaborator', 'gdocsdemo.Collaborator.EventType'], ['goog.array', 'goog.dom', 'goog.dom.query', 'goog.events', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.style']);
goog.addDependency('../../../Main/static/scripts/gdocsdemo/editor.js', ['gdocsdemo.Editor'], ['diff_match_patch', 'gdocsdemo.Collaborator', 'gdocsdemo.Header', 'gdocsdemo.Playback', 'gdocsdemo.ShareForm', 'gdocsdemo.Tracking', 'goog.Uri', 'goog.array', 'goog.dom',
@ncouture
ncouture / FirebaseToFirestore.js
Created May 6, 2018 15:35 — forked from JoeRoddy/FirebaseToFirestore.js
Convert Firebase Database JSON to Firestore Collections
var db = firebase.firestore();
var content = require("./sourceData.json");
content &&
Object.keys(content).forEach(contentKey => {
const nestedContent = content[contentKey];
if (typeof nestedContent === "object") {
Object.keys(nestedContent).forEach(docTitle => {
firebase
.firestore()
@ncouture
ncouture / compound-query.js
Created May 6, 2018 15:35 — forked from ademilter/compound-query.js
Firestore #firebase
var citiesRef = db.collection("cities");
var query = citiesRef.where("capital", "==", true);
citiesRef.where("state", "==", "CA")
citiesRef.where("population", "<", 100000)
citiesRef.where("name", ">=", "San Francisco")
citiesRef
.where("state", "==", "CA")
import subprocess
import argparse
import base64
import json
"""
Currently uses Google's cloud speech API
"""
from googleapiclient import discovery
@ncouture
ncouture / face_identification.ipynb
Created April 19, 2018 18:57 — forked from onidzelskyi/face_identification.ipynb
Simple Python app show you easy way to identify particular face among the other faces
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.