Skip to content

Instantly share code, notes, and snippets.

@alexyvassili
alexyvassili / gist:ff201b5aa4e6401c9db0e81ab1d22822
Created October 29, 2023 00:36 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@killertofus
killertofus / roblox.sh
Last active November 9, 2023 19:09
roblox installer
#!/bin/bash
echo "Roblox Installer by blan.ks and proofread with cleaned up code by killertofus"
echo "Before the installation continues I heavily encourage you to read through the script and ensure it is not malicious"
sleep 5
if grep avx /proc/cpuinfo 1>/dev/null
then
echo "you computer meets the requirements to play roblox"
else
echo "Sadly your computer is too old to play ROBLOX! With the release of Hyperion/Byfron anticheat brought requirements that your computer does not meet. (Missing AVX)" && exit
@Lissy93
Lissy93 / Example 1 - Getting Started - conf.yml
Last active May 25, 2024 08:32
Example Config Files for Dashy
---
# Page meta info, like heading, footer text and nav links
pageInfo:
title: Dashy
description: Welcome to your new dashboard!
navLinks:
- title: GitHub
path: https://github.com/Lissy93/dashy
- title: Documentation
path: https://dashy.to/docs
@m-radzikowski
m-radzikowski / script-template.sh
Last active May 4, 2024 04:13
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@dahlsailrunner
dahlsailrunner / SSL-nginx-Docker.md
Last active May 31, 2024 00:54
SSL with Docker images using nginx as reverse proxy

Docker with SSL and an nginx reverse proxy

Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.

Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).

1. Create a conf file with information about the cert you'll be creating

It should look something like the content below; call it my-site.conf or something like that.

@new08
new08 / docker-stats.sh
Last active January 20, 2023 21:50
docker #docker
docker stats --format "table {{.Container}}\t{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t"
# docker stats formatting
# .Container Container name or ID (user input)
# .Name Container name
# .ID Container ID
# .CPUPerc CPU percentage
# .MemUsage Memory usage
# .NetIO Network IO
# .BlockIO Block IO
@elsauto
elsauto / Docker-Commands.md
Last active January 20, 2023 21:50
Docker Commands #Docker #Docker-Compose

Docker Command Cheatsheet

Build our own image:

docker build -t my-image .

Delete All Exited Containers (Linux):

docker rm $(docker ps -q -f status=exited)
@koop
koop / ensure-cert-macos.sh
Created November 28, 2017 20:27
Ensures a certificate is in the macOS system keychain.
#!/bin/bash
# Usage
# $ ./install-cert-macos.sh "/path/to/cert"
CERT_PATH="$1"
# First, grab the SHA-1 from the provided SSL cert.
CERT_SHA1=$(openssl x509 -in "$CERT_PATH" -sha1 -noout -fingerprint | cut -d "=" -f2 | sed "s/://g")
# Next, grab the SHA-1s of any standard.dev certs in the keychain.
# Don't return an error code if nothing is found.
@ironicbadger
ironicbadger / bash_aliases
Last active October 22, 2023 13:04
Lets Encrypt Reverse Proxy Files
alias dcp='docker-compose -f /opt/docker-compose.yml '
alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel'
alias dcplogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" '
alias df='df -h -x aufs -x tmpfs -x udev'
alias editle='sudo vi /opt/appdata/letsencrypt/nginx/site-confs/default'
@duluca
duluca / npm-scripts-for-docker.md
Last active April 8, 2024 09:52
npm scripts for Docker

These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.

How to Use

npm i -g mrm-task-npm-docker
npx mrm npm-docker

Contribute

Here's the code repository https://github.com/expertly-simple/mrm-task-npm-docker