Skip to content

Instantly share code, notes, and snippets.

View motin's full-sized avatar

Motin motin

View GitHub Profile
@franklinokech
franklinokech / SheetSizeAudit.gs
Last active October 17, 2020 06:29
use this simple script to audit the google sheet sizes and cells audit. sample dashboard is in the link https://docs.google.com/spreadsheets/d/1myUQEsA9oBNqigG8VdQnsoAnKoohFrl_wG5S7znHjAk/edit?usp=sharing use the sheet size auditor UI menu to Interact with the Tool
/**
* Google Sheets Performance Auditor tool
* Built by Franklin Okech, 2019
* http://www.franklinokech.com
*/
/**
* Custom menu
*/
@motin
motin / openwpm-fork-on-mac.md
Last active May 3, 2019 12:47
Running a fork of OpenWPM on your Mac

Running a fork of OpenWPM on your Mac Natively

OpenWPM is a brilliant piece of software for running large-scale website crawls using a remotely controlled browser (Firefox) instead of utilizing a classic web scraping tool. It can easily be extended to collect any sort of data that a browser can collect and comes pre-configured to collect information regarding fingerprinting-related Javascript executions and first/third-party website traffic. The resulting data ends up in a SQLite database (for smaller data collections) or stored in JSON format in the cloud (for large scale data collections).

This document has moved to https://github.com/mozilla/OpenWPM/wiki/Running-OpenWPM-natively-on-macOS

@shaunkane
shaunkane / bear-backup.py
Created January 9, 2017 17:38
Script for automating Bear note backups. Note that you must fill in the BEAR_DB and EXPORT_DIR variables for this to work.
# export notes from the Bear db to markdown files
import sqlite3
BEAR_DB = '/Users/<your username>/Library/Containers/net.shinyfrog.bear/Data/Library/Application Support/net.shinyfrog.bear/database.sqlite'
EXPORT_DIR = '<set an export directory>'
conn = sqlite3.connect(BEAR_DB)
c = conn.cursor()
for row in c.execute('SELECT ZTITLE, ZTEXT FROM ZSFNOTE'):
@thoop
thoop / nginx.conf
Last active December 8, 2023 21:55
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
@jrom
jrom / nginx.conf
Created February 7, 2012 17:14
nginx hack for multiple conditions
if ($request_uri = /) {
set $test A;
}
if ($host ~* teambox.com) {
set $test "${test}B";
}
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
@karmi
karmi / .gitignore
Created May 19, 2010 05:33
Script to generate PDF cards suitable for planning poker from Pivotal Tracker [http://www.pivotaltracker.com/] CSV export. Inspired by Bryan Helmkamp's http://github.com/brynary/features2cards/
.DS_Store
*.csv
*.pdf