Skip to content

Instantly share code, notes, and snippets.

View druchoo's full-sized avatar

Andrew Choo druchoo

  • Vonage
  • NC
  • 10:26 (UTC -04:00)
View GitHub Profile
@seanh
seanh / html_tags_you_can_use_on_github.md
Last active May 3, 2024 14:57
HTML Tags You Can Use on GitHub

HTML Tags You Can Use on GitHub

Wherever HTML is rendered on GitHub (gists, README files in repos, comments on issues and pull requests, ...) you can use any of the HTML elements that GitHub Flavored Markdown (GFM) provides syntactic sugar for. You can either use the syntactic sugar that GFM (or other GitHub-supported markup language you're using) provides or, since Markdown can contain raw HTML, you can enter the HTML tags manually.

But GitHub also allows you to use a few HTML elements beyond what Markdown provides by entering the tags manually, and some of them are styled with CSS. Most raw HTML tags get stripped before rendering the HTML. Those tags that can be generated by GFM syntactic sugar, plus a few more, are whitelisted. These aren't documented anywhere that I can find. Here's what I've discovered so far:

<details> and <summary>

A `<detai

@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@colinvh
colinvh / aws.md
Last active April 23, 2024 09:15
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

@ferdnyc
ferdnyc / rar2zip.sh
Last active April 4, 2024 18:48
Conversion from rar to zip
#!/bin/bash
#
# rar2zip conversion script
# Based on: https://shkspr.mobi/blog/2016/12/converting-rar-to-zip-in-linux/
#
# Usage: rar2zip.sh file [file ...]
echo "Converting RARs to ZIPs"
# Use RAM disk for temporary files.
@ChrisTollefson
ChrisTollefson / 0 GitHub Markup Reference README.md
Last active February 12, 2024 20:21
GitHub Markup Reference

GitHub Markup Reference

GitHub supports a number of

@atyachin
atyachin / aws_regions.json
Created September 29, 2020 19:08
AWS Regions / Datacenters Geo Locations
[
{
"code": "us-east-1",
"region": "US East",
"city": "Virginia",
"lat": 38.9940541,
"long": -77.4524237,
"country": "US"
},
{
@anderiv
anderiv / pre-receive
Created February 20, 2012 23:04
nagios git pre-receive hook
#!/bin/bash
while read OLD_SHA1 NEW_SHA1 REFNAME; do
export GIT_WORK_TREE=/tmp/nagiosworkdir
/usr/bin/git checkout -f $NEW_SHA1
# sed -i "s|cfg_dir=CHANGEWITHGIT|cfg_dir=${GIT_WORK_TREE}\/config|g" $GIT_WORK_TREE/etc/nagios.cfg
sed -i "s|cfg_file=\/usr\/local\/nagios\/etc\/objects\/commands.cfg|cfg_file=${GIT_WORK_TREE}\/objects\/commands.cfg|g" $GIT_WORK_TREE/nagios.cfg
sed -i "s|cfg_file=\/usr\/local\/nagios\/etc\/objects\/contacts.cfg|cfg_file=${GIT_WORK_TREE}\/objects\/contacts.cfg|g" $GIT_WORK_TREE/nagios.cfg
sed -i "s|cfg_file=\/usr\/local\/nagios\/etc\/objects\/timeperiods.cfg|cfg_file=${GIT_WORK_TREE}\/objects\/timeperiods.cfg|g" $GIT_WORK_TREE/nagios.cfg
sed -i "s|cfg_file=\/usr\/local\/nagios\/etc\/objects\/templates.cfg|cfg_file=${GIT_WORK_TREE}\/objects\/templates.cfg|g" $GIT_WORK_TREE/nagios.cfg
sed -i "s|cfg_file=\/usr\/local\/nagios\/etc\/objects\/hosts.cfg|cfg_file=${GIT_WORK_TREE}\/objects\/hosts.cfg|g" $GIT_WORK_TREE/nagios.cfg
@Dreyer
Dreyer / perlbrew_libgcc_s.txt
Created January 20, 2017 11:27
[perlbrew] ld: library not found for -lgcc_s.10.4
$ cd /usr/local/lib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.4.dylib
@jirutka
jirutka / install_osx.md
Last active March 6, 2022 09:07
How to install Cabot on OS X for development

How to install Cabot on OS X

This manual describes a complete procedure how to install and run Cabot on OS X for development. It was tested on OS X 10.9.1 and Cabot version 2014-01-23.

Important notes

We’re using Homebrew to install the required dependencies on OS X. If you don’t have Homebrew yet (how is that possible? ;), see http://brew.sh/ for an installation script. Note: MacPorts can be probably used too, but we didn’t test it.

Although you can use Python and Ruby that comes with OS X, it’s better to use Python installed via Homebrew and use rbenv to manage Rubies. Then you don’t need to use sudo and mess up your system. If you’re already using rvm instead of rbenv, then stay with it and skip the rbenv installation steps.