Skip to content

Instantly share code, notes, and snippets.

View DeviNoles's full-sized avatar
πŸ“ˆ
Grinding

DEVIN DeviNoles

πŸ“ˆ
Grinding
View GitHub Profile
@charlesfrye
charlesfrye / wrapper.py
Last active February 24, 2025 16:16
Train GPT-2 in five minutes -- for free!
# Train GPT-2 in five minutes -- for free
#
# ```bash
# pip install modal
# modal setup
# modal run wrapper.py
# ```
#
# Note that the end-to-end latency the first time is more like 25 minutes:
# - five minutes to install Torch (rip)
@eoin-obrien
eoin-obrien / digital_covid_cert_decoder.py
Created January 12, 2022 04:42
Extract EU Digital COVID Certificate QR code data from images and PDFs
import argparse
import json
import pathlib
import sys
import zlib
import cbor2
from base45 import b45decode
from cose.messages import CoseMessage
from PIL import Image
@AgentRev
AgentRev / buildBridge.sqf
Last active April 1, 2020 17:22
Bridge-building script for Arma 3; https://imgur.com/a/eGhhF
/* Any copyright is dedicated to the Public Domain.
* https://creativecommons.org/publicdomain/zero/1.0/ */
// @file Name: buildBridge.sqf
// @file Author: AgentRev
// examples:
// [nil, nil, ["rampDown+","ramp+_4","rampUp+","flat","flat_75_270","flat","rampUp-","ramp-_4","rampDown-"], true] execVM "buildBridge.sqf";
// [nil, nil, ["rampDown+_lampR","ramp+_4_lampR","rampUp+_lampR","flat_10_lampR","rampUp-_lampR","ramp-_4_lampR","rampDown-_lampR"], true] execVM "buildBridge.sqf";
// [nil, nil, ["rampDown+_lampL","ramp+_4_lampL","rampUp+_lampL","flat_lampL","flat_75_-270_lampL","flat_lampL","rampUp-_lampL","ramp-_4_lampL","rampDown-_lampL"], true] execVM "buildBridge.sqf";

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@qfgaohao
qfgaohao / device_properties.cu
Last active November 18, 2024 16:06
List GPU Specs. The code is modified from the Udacity Parallel Computing Course.
#include <stdio.h>
void deviceQuery ()
{
cudaDeviceProp prop;
int nDevices=0, i;
cudaError_t ierr;
ierr = cudaGetDeviceCount(&nDevices);
@patleeman
patleeman / Template.vue
Created June 17, 2017 16:11
Empty .vue file template
<template>
</template>
<script>
export default {
components: {
},
props: [
@roccomuso
roccomuso / Client.js
Last active February 19, 2023 21:19
Node.js remote shell example
var net = require('net')
var readline = require('readline')
/**
* @class Client
* @param host {String} the host
* @param post {Integer} the port
*/
function Client (host, port) {
this.host = host
@lricoy
lricoy / App.js
Created August 3, 2016 18:20
Create React App App.js template
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
@rtt
rtt / tinder-api-documentation.md
Last active June 15, 2025 18:01
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@rxaviers
rxaviers / gist:7360908
Last active June 24, 2025 02:16
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: