Skip to content

Instantly share code, notes, and snippets.

@displague
displague / README.md
Last active December 4, 2019 09:34
Linode APIv4 ID and Detail for Instance Types, Kernels, Regions, and Images

In response to https://github.com/terraform-providers/terraform-provider-linode/issues/7 , this gist offers a one-time static list of Linode Regions, Types, Images, and Kernels.

This list will go stale. Consider using the means discussed in that issue or use the Linode CLI to generate fresh results.

linode-cli --text regions list  | tr '\t' '|' > regions.md
linode-cli --text images list  | tr '\t' '|' > images.md
linode-cli --text kernels list  | tr '\t' '|' > kernels.md
linode-cli --text linodes types  | tr '\t' '|' > linode-types.md
@dweldon
dweldon / install-docker.sh
Last active April 8, 2022 11:18
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
@magnetikonline
magnetikonline / README.md
Last active February 4, 2024 07:45
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
@andrewluetgers
andrewluetgers / App.js
Last active March 10, 2021 17:39
Image loading with react-konva
import React, { Component } from 'react';
import DevTools from 'mobx-react-devtools';
import Konva from 'konva';
import {Stage, Layer, Rect, Line, Image} from 'react-konva';
import Img from './Img/Img.js';
import './App.css';
import pg from '../assets/scribo-doc-dia-00008061.json'
console.log(pg);
@jasny
jasny / mysql_splitdump.sh
Last active February 15, 2024 16:13
Split MySQL dump SQL file into one file per table or extract a single table
#!/bin/bash
####
# Split MySQL dump SQL file into one file per table
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump
####
if [ $# -lt 1 ] ; then
echo "USAGE $0 DUMP_FILE [TABLE]"
exit