Skip to content

Instantly share code, notes, and snippets.

@jeffersonmartin
jeffersonmartin / composer-private-package-github-token.md
Last active September 18, 2025 14:41
Generate a GitHub Personal Access Token for Private Composer Packages

Generate a GitHub Personal Access Token for Private Composer Packages

If you're trying to load a private repository with Composer/Laravel, we'll need to generate a GitHub Personal Access Token (similar to OAuth token) to access the repository during a composer install without entering credentials.

If you have used other Github packages from {my-org} before, you may be able to skip this step.

  1. Visit https://github.com/settings/tokens.

  2. Click Generate new token.

@koenkarsten
koenkarsten / Server.scala
Last active April 24, 2024 13:37
A simple TCP Socket Server made with Scala + Akka IO
import java.net.InetSocketAddress
import akka.actor.{ActorSystem, Props, Actor}
import akka.io.{Tcp, IO}
import akka.io.Tcp._
import akka.util.ByteString
class TCPConnectionManager(address: String, port: Int) extends Actor {
import context.system
IO(Tcp) ! Bind(self, new InetSocketAddress(address, port))
@kottenator
kottenator / simple-pagination.js
Created July 13, 2015 20:44
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
@digitaljhelms
digitaljhelms / gist:4287848
Last active October 30, 2025 16:39
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch