Skip to content

Instantly share code, notes, and snippets.

View JacobGraham02's full-sized avatar
🏠
May take several hours to respond

jacobdamiangraham JacobGraham02

🏠
May take several hours to respond
View GitHub Profile
@JacobGraham02
JacobGraham02 / Github Webhook Tutorial.md
Created December 3, 2021 03:28 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
// # PugJs Cheat Sheet
// ## Syntax
doctype html
html
head
meta(name="Pugcupid", content="Wiggle with love")
body
main#page
@JacobGraham02
JacobGraham02 / phpunit-assertions.md
Created August 20, 2021 20:52 — forked from briankip/phpunit-assertions.md
A list of PHPUnit assertions
  • assertArrayHasKey
  • assertArrayNotHasKey
  • assertContains
  • assertAttributeContains
  • assertNotContains
  • assertAttributeNotContains
  • assertContainsOnly
  • assertAttributeContainsOnly
  • assertNotContainsOnly
  • assertAttributeNotContainsOnly
@JacobGraham02
JacobGraham02 / 1_phpunit-api.md
Created August 20, 2021 16:34 — forked from loonies/1_phpunit-api.md
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this->anything()

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "[email protected]"
@JacobGraham02
JacobGraham02 / README.md
Created August 13, 2021 02:23 — forked from developius/README.md
Setup SSH keys for use with GitHub/GitLab/BitBucket etc

Create a new repository, or reuse an existing one.

Generate a new SSH key:

ssh-keygen -t rsa -C "[email protected]"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings (https://github.com/settings/keys).

Test SSH key: