Skip to content

Instantly share code, notes, and snippets.

View lmansur's full-sized avatar

Lucas Mansur lmansur

View GitHub Profile
@luukvbaal
luukvbaal / cacheremove.hook
Last active June 23, 2024 15:17
yay paccache hooks
[Trigger]
Operation = Remove
Type = Package
Target = *
[Action]
Description = Clearing cache...
When = PostTransaction
Exec = /home/<user>/.local/bin/tools/removehook
@sdogruyol
sdogruyol / arch_linux_prax.md
Created March 22, 2018 08:59
Prax setup on Arch Linux

Prax Installation on Arch Linux

1 - Install dnsmasq

sudo pacman -Syu
sudo pacman -S dnsmasq

2 - Configure dnsmasq to resolve .test domains to localhost via creating /etc/NetworkManager/dnsmasq.d/prax:

@satendra02
satendra02 / app.DockerFile
Last active August 3, 2024 13:23
docker+rails+puma+nginx+postgres (Production ready)
FROM ruby:2.3.1
# Install dependencies
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
# Set an environment variable where the Rails app is installed to inside of Docker image:
ENV RAILS_ROOT /var/www/app_name
RUN mkdir -p $RAILS_ROOT
# Set working directory, where the commands will be ran:
@dleske
dleske / k8s-update-secret.md
Last active January 29, 2024 17:12
k8s: Updating a Secret

Hopefully helped another k8s newbie with the following. The question was, how do you update a single key in a secret in k8s? I don't know anything about secrets but I will probably want to know this in the future, so here we go.

First, to create a dummy secret:

apiVersion: v1
kind: Secret
metadata:
  name: test-secret
data:
@lmansur
lmansur / fixes.md
Last active October 26, 2016 09:09
Hello!

Bugs / Not Implemented

Messages

  • Deletar mensagem não impede de acessar o url dela
  • Procurar o user em New Message não funciona

Trades

  • Não permitir valor negativo na hora de trocar Money
  • O valor de Money não faz diferença na trade, não tem nada mostrando.
  • End Trade
    • Tem uma opção blank. Ela não é aceita pelo sistema.
@davidderus
davidderus / .dockerignore
Last active March 3, 2024 10:15
Docker + Rails + Puma + Postgres + Nginx
.git
.gitignore
/doc
.yardoc
coverage
jsdoc
/tmp
/log
Dockerfile
Dockerfile.prod
@joekr
joekr / Dockerfile-Nginx
Last active September 25, 2024 11:48
Kubernetes + Rails (NGINX & Unicorn) on GCE
# Set nginx base image
FROM nginx
# Copy custom configuration file from the current directory
COPY nginx.conf /etc/nginx/nginx.conf
@kingbin
kingbin / polldaddy_v2.rb
Created January 29, 2012 16:33
automate testing a web project :)
# Using the web automation driver (watir-webdriver) through the tor network
# Automates webpage actions & bypasses the voting limit on polldaddy
# Casts a vote every 3 seconds for a total of 1000 votes
require 'watir-webdriver'
profile = Selenium::WebDriver::Firefox::Profile.new
profile.proxy = Selenium::WebDriver::Proxy.new :http => '127.0.0.1:8118'
b = Watir::Browser.new :firefox, :profile => profile
#b = Watir::Browser.new :firefox
b.goto 'speakimge.wordpress.com/2012/01/25/under-the-covers/'