Skip to content

Instantly share code, notes, and snippets.

View jcstr's full-sized avatar

Jesús Castro jcstr

View GitHub Profile
@orhun
orhun / arch_linux_installation.md
Last active April 20, 2024 02:56
Notes on my Arch Linux installation: UEFI/Secure Boot + systemd-boot, LUKS-encrypted root (XFS), LUKS-encrypted swap (with hibernate & unlocked via TPM)
@troyfontaine
troyfontaine / PythonAndPowerShell.md
Last active March 4, 2024 14:20
Setting up Aliases for Python on Windows PowerShell

Getting Your Python (Development) On!

Python for Windows is really easy to install-but what if you had started in the world of MacOS/*nix OSes and miss that single command to call Python or Pip? What if you don't have access to modify your environment PATH?

Windows PowerShell has a feature called "Profiles" which allows you to configure your PowerShell in a similar fashion as you could with Bash, Zsh, etc.

Pretty cool huh?

Create a Profile

@combattardigrade
combattardigrade / Token.sol
Created December 9, 2020 03:09
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.6+commit.6c089d02.js&optimize=false&runs=200&gist=
pragma solidity >=0.6.0 <0.8.0;
// SPDX-License-Identifier: MIT"
contract Token {
mapping (address => uint256) private _balances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint256 private _decimals;
uint256 private theTotalSupply;
@ojoanalogo
ojoanalogo / TechTalks-codigo-de-conducta.md
Last active August 6, 2020 02:32 — forked from jcstr/TechTalks-codigo-de-conducta.md
📑 Código de conducta Tech Talks

Tech Talks: Club de conversación en inglés 💬🇺🇸

🎯 Propósito

Tech Talks tiene como proposito reunir a entusiastas e inexpertos con muchas ganas de aprender a hablar inglés de forma fluida y de esta forma mejorar nuestras oportunidades laborales y personales. Nuestra forma de aprender es mediante el aprendizaje colaborativo, ya que consideramos que cada miembro es una parte importante del club y puede aportar de su conocimiento dentro de un espacio seguro sin prejuicios. 🙋🙍

Esperemos que todos los integrantes del club sigan estos lineamientos para poder tener un club en donde todos tengan la confianza de formar parte.

👀 Comportamiento a esperar

@gimenete
gimenete / readme.md
Last active March 9, 2024 16:36
Notas para orientación profesional como programador

Tras este tweet que publiqué

He sido freelance, emprendedor y trabajo desde hace años para empresas USA de diversos tamaños en remoto como programador fullstack. Ahora en GitHub. Si puedo ayudar a alguien en orientar su carrera, mis DMs están abiertos. Ask me anything.

he recibido muchos mensajes y escribo aquí algunos de los consejos que he dado en resumen. Nota: algunas cosas son concretas de trabajar en España. Si vas a trabajar desde Sudamérica sólo una nota: tienes la ventaja de la zona horaria para trabajar con EEUU.

Inglés

Tener un buen nivel de inglés es fundamental para poder trabajar con clientes extranjeros. El conocimiento del idioma tiene que mantenerse en el tiempo. Es como mantenerse en forma física; si lo dejas, lo pierdes. Personalmente aunque trabajo 100% en inglés desde hace bastantes años, intento crearme un entorno diario con el idioma para no perderlo:

@t-8ch
t-8ch / Makefile
Created January 31, 2018 22:10
minimal mutter application with window management
CFLAGS=$(shell pkg-config --cflags libmutter-1) -Wl,-rpath,/usr/lib/mutter
LDLIBS=$(shell pkg-config --libs libmutter-1)
all: main
@jarun
jarun / memusage.sh
Last active August 8, 2020 21:20
Log memory usage by process name or PID with custom delay
#!/usr/bin/env bash
## Function to show error and exit
errexit()
{
echo "process not found.";
exit 1;
}
## Check number of arguments passed
@troyfontaine
troyfontaine / 1-setup.md
Last active May 12, 2024 15:17
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@artheus
artheus / pacman-mirrors-replace.vim
Last active June 22, 2020 18:48
Vim Country Substitution for pacman.d/mirrorlist
" This is a substitution command for VIM where you can replace the word´Sweden´ with the country you want to keep.
" Whenever I install Arch linux on my machines, I usually only keep the mirrors from my country. If you do the
" same thing, you can use this to do it fast!
:%s/^##\s\(Sweden\)\@!\(.*\)\nServer = .*\n//
" Do you have any suggestions on making it better? Please comment!