Skip to content

Instantly share code, notes, and snippets.

View cristianoliveira's full-sized avatar
🎶
Eu sou apenas um rapaz Latino-americano, sem dinheiro no banco...

Cristian Oliveira cristianoliveira

🎶
Eu sou apenas um rapaz Latino-americano, sem dinheiro no banco...
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Express checkout example</title>
<script charset="utf-8">
// API Key from https://me.sumup.com/pt-br/developers section OAuth
// That should be a publishable key
// With this API key we can identify the merchant
https://archive.ph/XeZO5
It's 2024! Please avoid writing SSH commands like that.
Instead, configure your ~/.ssh/config with LocalForward, RemoteForward, and ProxyJump. This can save you a significant amount of time, especially when using ssh, scp, or rsync to transfer data from a remote server that requires multiple intermediate SSH connections.
e.g:
Host jump-host-1
HostName jump1.example.com
User your_username
@cristianoliveira
cristianoliveira / nix-generate-hash.sh
Created October 5, 2024 18:53
bash script generate nix package hashes
#!/usr/bin/env bash
# First get version from the latest git tag
VERSION="$(git describe --tags --abbrev=0)"
NIX_FILE="nix/package.nix"
echo "Bumping version to $VERSION"
# replace version = "local-2024-09-16"; within "$NIX_FILE"
sed -i "s/version = \".*\";/version = \"$VERSION\";/" "$NIX_FILE"
sed -i 's/sha256-.*=//g' "$NIX_FILE"
@cristianoliveira
cristianoliveira / aerospace.toml
Last active May 14, 2025 12:02
aerospace config productivity tip
# Place a copy of this config to ~/.aerospace.toml
# After that, you can edit ~/.aerospace.toml to your liking
# You can use it to add commands that run after login to macOS user session.
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
# Available commands: https://nikitabobko.github.io/AeroSpace/commands
after-login-command = []
# You can use it to add commands that run after AeroSpace startup.
# 'after-startup-command' is run after 'after-login-command'