Skip to content

Instantly share code, notes, and snippets.

View Macmee's full-sized avatar
💭
🚀

Leah Macmee

💭
🚀
  • California, USA
View GitHub Profile
const emojiMap = {
"1": "🔄",
"2": "➡️1️⃣",
"3": "➡️1️⃣",
"4": "🔄2️⃣",
"5": "➡️2️⃣",
"6": "➡️2️⃣",
"7": "🔄2️⃣",
"8": "➡️2️⃣",
"9": "➡️2️⃣",
#!/bin/bash
# Perform a ping test
echo "Starting ping test to $SERVER_IP..."
ping -c 4 $SERVER_IP
if [ $? -eq 0 ]; then
echo "Ping test to $SERVER_IP: Success"
else
echo "Ping test to $SERVER_IP: Failed"
fi
@Macmee
Macmee / theme.css
Last active June 10, 2020 18:41
jenkins theme
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$="blue.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$="red.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjQ0MzM2IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtMmgydjJ6bTAtNGgtMlY3aDJ2NnoiLz48L3N2Zz4=)}[src$="yellow.png
@Macmee
Macmee / test
Last active June 5, 2020 02:34
{
"editor.lineNumbers": "relative",
"editor.minimap.enabled": false,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\wsl.exe",
"terminal.integrated.fontFamily": "monospace",
"files.eol": "\n",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"java.semanticHighlighting.enabled": true,
"vim.leader": "<space>",
@Macmee
Macmee / find-licenses.js
Created December 6, 2016 00:51
place this in a folder containing git repos (i.e. stick it in a node_modules folder or the parent folder for all your git repos) and run `node find-licenses` and it will be happy
const fs = require('fs'),
path = require('path');
function getDirectories(srcpath) {
return fs.readdirSync(srcpath).filter(function(file) {
return fs.statSync(path.join(srcpath, file)).isDirectory();
});
}
getDirectories('.').forEach(folder => {