Skip to content

Instantly share code, notes, and snippets.

@luke-h1
luke-h1 / azure-self-hosted-runners
Created April 10, 2023 16:54
azure self hosted CI runners
To investigate:
Will need its own infra deploying, needs to scale up and down quickly + meet the demands of multiple CI jobs running.
Need to think about costs too
https://github.com/TheCloudScout/ACI-Self-hosted-agents
https://moimhossain.com/2022/11/17/self-hosted-github-runner-on-azure-container-apps/
https://github.com/CharleneMcKeown/github-runner-aci
https://dev.to/pwd9000/run-docker-based-github-runner-containers-on-azure-container-apps-aca-1n13
@luke-h1
luke-h1 / node_nginx_ssl.md
Created March 20, 2021 12:26 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

name: Nightly unit tests
on:
schedule:
- cron: '0 19 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
@luke-h1
luke-h1 / license-badges.md
Created September 23, 2020 09:35 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  

Translations: (No guarantee that the translations are up-to-date)

@luke-h1
luke-h1 / mongodb commands
Created August 9, 2020 18:54
mongodb commands
create user & add role:
```db.createUser({ user: "username", pwd "password", roles:[role: "userAdminAnyDatabase", db: "admin" }]}) ```
create db:
```use <db name here> ```
show collections:
```show collections ```
create collection:
node-sass -w scss/ -o dist/css/ --recursive"
@luke-h1
luke-h1 / css-btn-skel
Created June 12, 2020 10:30
css-btn-skel
.btn {
background-color: ;
color: ;
display: inline-block ;
padding: 20px 20px ;
text-decoration: none ;
font-weight: 800 ;
}
@luke-h1
luke-h1 / shorthand-css
Last active June 12, 2020 10:23
shorthand-css
Padding shorthand:
```
selector {
padding: AllSides;
}
selector {
padding: TopAndBottom RightAndLeft;
}
selector {
padding: Top RightAndLeft Bottom;
@luke-h1
luke-h1 / Linux stuff
Created June 12, 2020 10:09
Linux stuff
Cron:
minute (0-59)
hour (0-23)
day (1-31)
month (1-12)
day of week (0-6)
ssh-agent bash