Skip to content

Instantly share code, notes, and snippets.

View chrisemoulton's full-sized avatar
🎯
Focusing

Chris Moulton chrisemoulton

🎯
Focusing
View GitHub Profile
@chrisemoulton
chrisemoulton / private_fork.md
Created March 6, 2025 16:00 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@chrisemoulton
chrisemoulton / cohere_embed_v3.py
Created November 2, 2023 19:53 — forked from nreimers/cohere_embed_v3.py
Cohere Embed V3
# This snippet shows and example how to use the Cohere Embed V3 models for semantic search.
# Make sure to have the Cohere SDK in at least v4.30 install: pip install -U cohere
# Get your API key from: www.cohere.com
import cohere
import numpy as np
cohere_key = "{YOUR_COHERE_API_KEY}" #Get your API key from www.cohere.com
co = cohere.Client(cohere_key)
docs = ["The capital of France is Paris",
@chrisemoulton
chrisemoulton / .blocks.json
Created July 27, 2023 00:43 — forked from vasturiano/.blocks.json
3D Force-Directed Graph (ThreeJS)
{"nodes":[{"id":"4062045","user":"mbostock","description":"Force-Directed Graph"},{"id":"1341021","user":"mbostock","description":"Parallel Coordinates"},{"id":"1341281","user":"jasondavies","description":"Parallel Coordinates"},{"id":"b3ff6ae1c120eea654b5","user":"d3noob","description":"Simple d3.js Graph"},{"id":"4963004","user":"calvinmetcalf","description":"Quadtree Madness Round 2"},{"id":"4962892","user":"calvinmetcalf","description":"Quadtree Madness Round 2"},{"id":"4963273","user":"calvinmetcalf","description":"Quadtree Madness Round 2"},{"id":"4967213","user":"calvinmetcalf","description":"Rtree Madness"},{"id":"4060606","user":"mbostock","description":"Choropleth"},{"id":"4686432","user":"dwtkns","description":"Faux-3d Shaded Globe"},{"id":"3757101","user":"mbostock","description":"Lambert Azimuthal Equal-Area"},{"id":"5028304","user":"d3noob","description":"Sankey diagram with horizontal and vertical node movement"},{"id":"4343214","user":"mbostock","description":"Quadtree"},{"id":"1346410","user"
@chrisemoulton
chrisemoulton / _Stay_standalone.md
Created July 26, 2023 19:43 — forked from irae/_Stay_standalone.md
Stay Standalone: Prevent links in standalone web apps opening Mobile Safari

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@chrisemoulton
chrisemoulton / kernelfuntalk.md
Created May 1, 2018 20:52 — forked from jvns/kernelfuntalk.md
You can be a kernel hacker

Hello!

Did you see my talk at CUSEC? If you're interested in hacking on the Linux kernel, here are some more resources! If you have suggestions for learning about OS X or Windows, or you're interested in learning about BSD, let me know!

Reading kernel code:

@chrisemoulton
chrisemoulton / kernelfuntalk.md
Created May 1, 2018 20:52 — forked from jvns/kernelfuntalk.md
You can be a kernel hacker

Hello!

Did you see my talk at CUSEC? If you're interested in hacking on the Linux kernel, here are some more resources! If you have suggestions for learning about OS X or Windows, or you're interested in learning about BSD, let me know!

Reading kernel code:

from "ubuntu"
myuser = "erikh"
homedir = "/home/#{myuser}"
packages = %w[
man
ack-grep
zsh
tmux
build-essential
@chrisemoulton
chrisemoulton / hack.sh
Created April 29, 2018 14:48 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@chrisemoulton
chrisemoulton / hack.sh
Created April 1, 2018 20:25 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@chrisemoulton
chrisemoulton / hack.sh
Created April 1, 2018 20:25 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions: