Skip to content

Instantly share code, notes, and snippets.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active June 13, 2024 10:27 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@hanssens
hanssens / app.html
Created January 26, 2017 22:24
Aurelia GistRun script, Javascript flavoured
<template>
<h3>${message}</h3>
</template>
@ayamflow
ayamflow / gist:b602ab436ac9f05660d9c15190f4fd7b
Created May 9, 2016 19:10
Safari border-radius + overflow: hidden + CSS transform fix
// Add on element with overflow
-webkit-mask-image: -webkit-radial-gradient(white, black);
@dtaalbers
dtaalbers / gist:32bf072e368262c2fdea
Last active October 2, 2015 10:22
Get all RavenDB documents from one document type (overcome 1024 limit)
public List<DocType> DoStuffForALotOfData()
{
var list = new List<DocType>();
using (var session = _DataContext.OpenSession())
{
var skip = 0;
var take = 50;
// Execute query
@squarism
squarism / iterm2.md
Last active June 13, 2024 10:17
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@hanssens
hanssens / SearchAllTables.sql
Created June 25, 2014 07:46
T-SQL Stored Procedure to search all columns of all tables for a given search string
CREATE PROC SearchAllTables
(
@SearchStr nvarchar(100)
)
AS
BEGIN
-- Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.
-- Purpose: To search all columns of all tables for a given search string
-- Written by: Narayana Vyas Kondreddi