Skip to content

Instantly share code, notes, and snippets.

@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@tgrushka
tgrushka / resume.json
Last active April 28, 2024 11:43
JSON Resume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Thomas (Tom) Grushka, M.S., CPWA",
"label": "Leading Software and Data Engineering Wizard",
"image": "",
"email": "tom@grushka.com",
"phone": "+1 720 495 7323",
"url": "https://linkedin.com/in/tgrushka",
"summary": "I’m a full-stack mobile and web engineer who architects apps and their infrastructures from the ground up. Having worked for both small and large companies, I am well-versed in a variety of programming frameworks and development processes. My expertise in accessibility is an advantage that adds unique value to my projects.",
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 28, 2024 11:42
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@g-monroe
g-monroe / api-service.ts
Last active April 28, 2024 11:42
Decorators Routes | App Router with NextJS 14
import 'reflect-metadata';
import { NextRequest, NextResponse } from "next/server";
export const GetMethodSymbol = Symbol('GetMethod');
export const PostMethodSymbol = Symbol('PostMethod');
export const BodyMetadataKey = Symbol('Body');
export const BodyTypeMetadataKey = Symbol('BodyType');
interface NextRequestWithParams extends NextRequest {
params: { [key: string]: string };
}
@SuperstrongBE
SuperstrongBE / apiService.decorator.ts
Created November 20, 2023 12:52
Research around decorator and api route
import { NextResponse } from "next/server";
import { PostMethodSymbol } from "./http-methods/post";
import { GetMethodSymbol } from "./http-methods/get";
export interface APIService {
GET:()=>void,
POST:()=>void,
}
// How can i fix the return type to avoid type check issue ?
@brianclements
brianclements / Commit Formatting.md
Last active April 28, 2024 11:35
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@fideloper
fideloper / certbot.sh
Last active April 28, 2024 11:35
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here: https://certbot.eff.org/instructions
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok
@mattio
mattio / App-re-signing.md
Last active April 28, 2024 11:30
Re-signing an .ipa file for iOS distribution

Re-signing an .ipa file for iOS distribution

There are several apps I currently have to re-sign. They are apps built by various outside vendors who do not want to share the source code, but we want the apps published from our account and we do not want to give them our certificate or access to publish the apps on our behalf. ¯\_(ツ)_/¯ These are the steps I use to re-sign them. I've decided to keep the steps manual because, frankly, it's an error-prone process, something done infrequently, and a moving target. Some detail always seems to shift with every major Xcode release or App Store change.

These steps are current as of iOS 14 and Xcode 12. They assume you already have your Distribution Certificate installed in Keychain.


I'm going to use an example named "Matt's App.ipa". If you need to provide instructions to a vendor to deliver this file to you properly, I've included what I use below.

@tormath1
tormath1 / README.md
Last active April 28, 2024 11:30
Cluster API OpenStack using Flatcar