Skip to content

Instantly share code, notes, and snippets.

View trajano's full-sized avatar
🖖
https://t.me/s/tracer_needs_a_buff

Archimedes Trajano trajano

🖖
https://t.me/s/tracer_needs_a_buff
View GitHub Profile
@robwierzbowski
robwierzbowski / switch_to_npm_registry.sh
Last active September 28, 2024 20:24
Configure yarn to use the npm registry directly
#!/bin/bash
# Remove all settings in the .npmrc except the required auth token setting.
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
# Create a new .yarnrc that specifies the npm registry, or append to an existing one.
echo 'registry: https://registry.npmjs.org/' >> .yarnrc
# Remove and regenerate the yarn.lock. This should be identical to running `yarn upgrade`.
# If you are uncomfortable regenerating the yarn.lock file, you can comment out the next
@shanewholloway
shanewholloway / docker-stackfile.yml
Last active August 4, 2022 03:44
Example Docker Stack Deploy with Node/Service/Task values
## docker stack deploy -c docker-stackfile.yml gist_demo
version: "3.8"
services:
playground:
image: node:alpine
hostname: '{{.Task.Name}}'
environment:
SWARM_TASK: '{{.Task.Name}}'
SWARM_PEERS: "tasks.{{.Service.Name}}"