Skip to content

Instantly share code, notes, and snippets.

@justineuro
justineuro / flush-iptables.sh
Last active August 7, 2021 00:57 — forked from mrclay/flush-iptables.sh
Flush IP tables and restart docker
#!/bin/bash
# From: https://gist.github.com/mrclay/da1a83380371ee15ae02b4bcc3db8da1
# * addedd '#' in line 1; source and comments in lines 3-4
# Script is needed because my default firewall rules are messed up and after
# every restart, docker containers can't make connections to the host, notably
# preventing debuggers like xdebug from attaching.
set -euo pipefail
@justineuro
justineuro / read-write-file.js
Created September 27, 2018 11:36
Read Write to file with javascript
/// write to file
var txtFile = "c:/test.txt";
var file = new File(txtFile);
var str = "My string of text";
file.open("w"); // open file with write access
file.writeln("First line of text");
file.writeln("Second line of text " + str);
file.write(str);
file.close();
@justineuro
justineuro / README.md
Created August 13, 2018 09:52 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@justineuro
justineuro / mdTable-ghp.md
Last active June 28, 2018 09:04
Markdown Tables on GitHub: Empty Cells

Creating Markdown Tables on GitHub: Empty Cells

Simply leave the cell empty if that cell is not the first cell of a row.
If the empty cell is the first cell of a row, render the cell empty by including an empty link, i.e., []() within the desired empty cell.
In the Table 1 example below, Cells 1,2 and 3,2 are left blank, hence, rendered empty. Cells 3,2, and 4,2 are rendered as empty cells with []() although we could have left Cell 4,2 empty.
In the Table 2 example, which has an error, note how leaving Cell 2,1 empty renders an incorrect table.

Hence the markup:

### Table 1
Header 1 | Header 2