Skip to content

Instantly share code, notes, and snippets.

View brandaoplaster's full-sized avatar
🌎
Nomad

Lucus brandaoplaster

🌎
Nomad
View GitHub Profile
@brandaoplaster
brandaoplaster / Settings.json
Created June 3, 2021 18:17
Settings vscode Elixir
{
"workbench.colorTheme": "Omni",
"editor.fontSize": 17,
"editor.fontWeight": "500",
"editor.lineHeight": 24,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"terminal.integrated.fontSize": 14,
"editor.formatOnSave": true,
"workbench.iconTheme": "material-icon-theme",
@brandaoplaster
brandaoplaster / vscode_windwos.json
Last active June 3, 2021 18:14
vscode settings for python
{
"workbench.colorTheme": "Omni",
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "Fira Code",
"editor.fontSize": 18,
"editor.fontLigatures": true,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\git-bash.exe",
"json.schemas": [],
"workbench.editorAssociations": [
{
@theguuholi
theguuholi / configvscode.md
Last active June 29, 2021 00:10
Elixir and VsCodeConfig

Plugins: ElixirLinter ElixirLS Beautify Better Comments Bracket Pair Colorizer Docker HtmlSnippets

.DayPicker {
background: #28262e;
border-radius: 10px;
}
.DayPicker-wrapper {
padding-bottom: 0;
}
.DayPicker,
@ftes
ftes / _seating_plan.html.haml
Created November 20, 2019 21:26
Drag and drop in CSS grid with rails 6, stimulus and rails-ujs
-# https://johnbeatty.co/2018/03/09/stimulus-js-tutorial-how-do-i-drag-and-drop-items-in-a-list/
.grid--draggable{ 'data-controller': 'seating-plan',
'data-seating-plan-endpoint': endpoint,
'data-action': 'dragstart->seating-plan#onDragStart dragover->seating-plan#onDragOver dragenter->seating-plan#onDragEnter drop->seating-plan#onDrop dragend->seating-plan#onDragEnd' }
- seating_plan.each do |seat|
- if seat[:is_empty]
.grid__item.grid__item--empty{ 'data-row': seat[:row],
'data-col': seat[:col],
style: "grid-row: #{seat[:row]}; grid-column: #{seat[:col]};",
class: ('grid__item--border' if seat[:is_border]) }
@leopoldodonnell
leopoldodonnell / Readme.md
Last active October 20, 2025 08:54
Install and run Postgres with an extension using docker-compose

Local Postgres

This gist is an example of how you can simply install and run and extended Postgres using docker-compose. It assumes that you have docker and docker-compose installed and running on your workstation.

Install

  • Requires docker and docker-compose
  • Clone via http: git clone https://gist.github.com/b0b7e06943bd389560184d948bdc2d5b.git
  • Make load-extensions.sh executable
  • Build the image: docker-compose build
@sethbergman
sethbergman / install-docker.sh
Last active April 17, 2025 19:57 — forked from dweldon/install-docker.sh
Install Docker CE on Linux Mint 19
#!/usr/bin/env bash
set -e
# https://docs.docker.com/engine/install/ubuntu/
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 2>/dev/null
sudo echo "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') bionic stable" > /etc/apt/sources.list.d/docker.list
sudo apt-get -y update
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active March 16, 2026 18:53
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@gjbagrowski
gjbagrowski / .env-example
Created January 23, 2017 13:09
Django-environ example
# project-repo/app/settings/.env-example
#
# DJANGO
#
SITE_HOST=localhost:8000
USE_SSL=False
ALLOWED_HOSTS=localhost,127.0.0.1
SECRET_KEY=asdasd
DEBUG=true # never on production, will cause settings including api keys to leak
DJANGO_LOG_LEVEL=DEBUG
@paulpanezc
paulpanezc / httpd.conf
Last active May 22, 2021 14:55
Deploying Django with Apache in Windows
LoadModule wsgi_module modules/mod_wsgi.so
WSGIPythonHome "ruta_absoluta_entorno_virtual\\"
WSGIPythonPath "ruta_absoluta_apache\\htdocs\\mi_proyecto\\"
<VirtualHost *:*>
WSGIScriptAlias / "ruta_absoluta_apache\\htdocs\\mi_proyecto\\mi_proyecto\\wsgi.py"
Alias /static/ "ruta_absoluta_apache\\htdocs\\mi_proyecto\\deploy\\static\\"
Alias /media/ "ruta_absoluta_apache\\htdocs\\mi_proyecto\\deploy\\media\\"
<Directory "ruta_absoluta_apache\\htdocs\\mi_proyecto\\mi_proyecto\\" >