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 / Gerrit-vs-Github.org
Created June 26, 2022 17:12
About Gerrit and Github

About Gerrit

Gerrit is a code review tool that was originally developed by Google.

It is based on the Perforce code review tool Mondrian.

Gerrit is open source, and it is used by many open-source projects.

It is similar to Rietveld, but it is not tied to the use of Perforce or to any Google-only services.

@ncouture
ncouture / install-deb-requirements.sh
Last active April 20, 2021 22:15
Install LSP Emacs packages on Windows 10 in WSL Debian
#!/bin/bash
#
# Run this before the install lsp requirements script.
#
sudo apt-get install -y apt-file bash-completion curl dnsutils elpa-company elpa-company-lsp elpa-dired-quick-sort elpa-flycheck elpa-flycheck-package elpa-flycheck-rtags elpa-helm elpa-helm-ag elpa-hydra elpa-ivy-rtags elpa-jedi elpa-lsp-mode elpa-lua-mode elpa-magit elpa-markdown-mode elpa-markdown-toc elpa-org elpa-pkg-info elpa-systemd emacs25-nox flycheck-doc git gnutls-bin gnutls-doc ivy man silversearcher-ag whois
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
@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.