Skip to content

Instantly share code, notes, and snippets.

View Mentioum's full-sized avatar
🎱

Jeremy Hindle Mentioum

🎱
View GitHub Profile
// ==UserScript==
// @name Posthog Hide Annotations
// @namespace http://tampermonkey.net/
// @version 2024-01-08
// @description Hides graph annotations when enabled
// @author Mentioum
// @match https://us.posthog.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=posthog.com
// @grant GM_addStyle
// ==/UserScript==
I am attesting that this GitHub handle Mentioum is linked to the Tezos account tz2ESqqKWtcRP6t1rnEMDD1G4KFc13K4ywgT for tzprofiles
sig:spsig1UueYmpMjH6ZH3LdbrnJc1GuarRFQjNWr3NS2L58NKcy3pi7VVg1fcfU4V7AnjKx6Zj7EWvJxz528szjV1EASL7rTVmSPe
// ==UserScript==
// @name Webflowshower
// @namespace http://tampermonkey.net/
// @version 0.12
// @description This is a simple tool to help enhance the Webflow Editor capabilities
// @author Mentioum
// @match https://cloudline-v2.webflow.io/*
// @updateURL https://gist.github.com/Mentioum/fcee6d376cfc7931f184554d35010825/raw/cloudlineapp.user.js
// @downloadURL https://gist.github.com/Mentioum/fcee6d376cfc7931f184554d35010825/raw/cloudlineapp.user.js
// @grant none
// ==UserScript==
// @name Hide Overlays in Webflow
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Mentioum
// @match https://www.custodian.club/*
// @grant none
// ==/UserScript==
@Mentioum
Mentioum / dgraph_upsert.go
Created November 15, 2019 16:14
Dgraph upsert exampe with dgo - Unknown best practices
// UpdateProposalCode takes a proposal code and updates it with the provided values
func (s *Storage) UpdateProposalCode(pc proposing.ProposalCode) error {
//Check if proposal code exists
//Update that propsal code to include the information in the passed propososalCode type
pc.UpdatedAt = time.Now()
q := fmt.Sprintf(`
query {
code as var(func: eq(code, %s))

Keybase proof

I hereby claim:

  • I am mentioum on github.
  • I am mentioum (https://keybase.io/mentioum) on keybase.
  • I have a public key ASBcAQ8T2_XbPFbeRpf3RzJYg1KwEELO-qFUuKKb0iTk0go

To claim this, I am signing this object:

call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-vinegar'
Plug 'mustache/vim-mustache-handlebars'
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/syntastic'
Plug 'scrooloose/nerdcommenter'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'vim-airline/vim-airline'
@Mentioum
Mentioum / select_df_by_value.md
Last active August 28, 2017 23:37
How to select rows in a data frame based on column values

To select rows whose column value equals a scalar, some_value, use ==:

df.loc[df['column_name'] == some_value]

To select rows whose column value is in an iterable, some_values, use isin:

df.loc[df['column_name'].isin(some_values)]
{
"_id": "xxxxxxxxxxxxxxxxxxxxxxx",
"grades": [Object_ID],
"awards": [Object_ID],
"projects": [Object_ID],
"activities": [Object_ID],
"qualifications": [
{
"_id": "xxxxxxxxxxxx",
"name": "Computer Science",
@Mentioum
Mentioum / update-local-mongodb.sh
Last active April 14, 2016 08:47
Easy mongodb download and update local database.
#! /bin/bash
TMPDIR='/Users/jeremy/code/backups/nidotmp/'
ARCHIVE="${TMPDIR}tmp.tgz"
EXTRACTED="${TMPDIR}db/"
DBNAME='nido-website'
rm -r $TMPDIR
rsync -avvP nido-webserver-db:/home/ubuntu/backups/mongodb/latest/ $TMPDIR
mv ${TMPDIR}*.tgz $ARCHIVE
mkdir $EXTRACTED