Skip to content

Instantly share code, notes, and snippets.

@nntrn
nntrn / espn-api-list.md
Last active May 21, 2025 23:08
List of nfl api endpoints from espn

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

@dsmith73
dsmith73 / brew-wsl.md
Last active May 21, 2025 23:07
install homebrew on wsl

Installing homebrew / Linuxbrew on Ubuntu-18.04 wsl for Windows 10


open wsl command line

type -

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"  
@candycode
candycode / image-arraybuffer.js
Created March 7, 2014 15:24
Create a jpg image from ArrayBuffer data
// Simulate a call to Dropbox or other service that can
// return an image as an ArrayBuffer.
var xhr = new XMLHttpRequest();
// Use JSFiddle logo as a sample image to avoid complicating
// this example with cross-domain issues.
xhr.open( "GET", "http://fiddle.jshell.net/img/logo.png", true );
// Ask for the result as an ArrayBuffer.
xhr.responseType = "arraybuffer";
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active May 21, 2025 23:02
Make Firefox fast again
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active May 21, 2025 22:52
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@w-e-w
w-e-w / sd-webui-txt2img-img2img-api-example.py
Last active May 21, 2025 22:51
Stable Diffusion web UI txt2img img2img api example script
from datetime import datetime
import urllib.request
import base64
import json
import time
import os
webui_server_url = 'http://127.0.0.1:7860'
out_dir = 'api_out'
@TDSSEC
TDSSEC / google-dorks.txt
Created March 5, 2018 11:53
list of google dorks
inurl:".php?author="
inurl:".php?cat="
inurl:".php?cmd="
inurl:".php?feedback="
inurl:".php?feedback­="
inurl:".php?file="
inurl:".php?from="
inurl:".php?keyword="
inurl:".php?keyword=­"
inurl:".php?mail="
@jamesgpearce
jamesgpearce / App.js
Last active May 21, 2025 22:47
Modified version of TinyBase Expo example to demonstrate synchronization. This updates https://github.com/expo/examples/tree/master/with-tinybase
import { useCallback, useState } from 'react';
import * as SQLite from 'expo-sqlite';
import {
FlatList,
Platform,
StyleSheet,
Text,
TextInput,
TouchableOpacity,
} from 'react-native';
@alexlee-gk
alexlee-gk / configure_cuda_p70.md
Last active May 21, 2025 22:43
Use integrated graphics for display and NVIDIA GPU for CUDA on Ubuntu 14.04

This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:

lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)

A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly. In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers. This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.