Skip to content

Instantly share code, notes, and snippets.

View Fiyin-Anne's full-sized avatar
💭

Fiyinfoluwa Akinsiku Fiyin-Anne

💭
  • flutterwave
  • Nigeria
  • 12:11 (UTC -12:00)
View GitHub Profile

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

@jonjack
jonjack / add-update-refresh-github-access-token-on-mac.md
Last active May 31, 2024 15:57
Adding & Updating GitHub Access Token on Mac

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@richwednesday
richwednesday / upload.js
Created December 28, 2017 19:46
Image Upload to S3 From Node.js
const http = require("http");
const https = require("https");
const AWS = require('aws-sdk');
const formidable = require("formidable");
const uuid = require("uuid");
let server = http.createServer(launch);
let s3 = new AWS.S3({
// s3 credentials
});