Skip to content

Instantly share code, notes, and snippets.

View j0sm3n's full-sized avatar

Jose Antonio Mendoza j0sm3n

View GitHub Profile
@j0sm3n
j0sm3n / KeyframeView.swift
Created May 7, 2024 09:30 — forked from davidsteppenbeck/KeyframeView.swift
Keyframe Animation Example in SwiftUI
import SwiftUI
struct KeyframeValues {
var scale = 1.0
var horizontalStretch = 1.0
var verticalStretch = 1.0
var translation = 0.0
var rotation = Angle.zero
}
@j0sm3n
j0sm3n / dev-env-basic-macos.md
Created September 12, 2021 08:42 — forked from xcession/dev-env-basic-macos.md
[dev env basic (macos)] macOS Basic Development Environment #coding #env #macos

macOS Basic Development Environment

     _                              
  __| | _____   __   ___ _ ____   __
 / _` |/ _ \ \ / /  / _ \ '_ \ \ / /
| (_| |  __/\ V /  |  __/ | | \ V / 
 \__,_|\___| \_/    \___|_| |_|\_/  
                         macOS Basic
@j0sm3n
j0sm3n / .tmux.conf
Created September 12, 2021 08:21 — forked from v-yarotsky/.tmux.conf
Mac OS X tmux config
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH
@j0sm3n
j0sm3n / iterm2-solarized.md
Created September 5, 2021 13:52 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@j0sm3n
j0sm3n / vimrc
Created February 3, 2021 04:22
This is a sample vimrc created in discussion with the ops and regulars of the #vim community.
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
@j0sm3n
j0sm3n / web-servers.md
Created January 17, 2021 10:31 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@j0sm3n
j0sm3n / AdGuardHome.docker
Last active April 8, 2021 06:28
Crea un contenedor docker con AdGuard Home en la Raspberry Pi
1. Descargar la imagen de Docker Hub
docker pull adguard/adguardhome
2. Creamos los directorios para la persistencia de datos, en mi caso
mkdir -p ~/Projects/docker/adguard/workdir
mkdir -p ~/Projects/docker/adguard/confdir
3. Arrancamos el contenedor
@j0sm3n
j0sm3n / locale-es.py
Created September 27, 2020 05:16
Código necesario para poder ver los nombres de los meses en español, entre otros usos.
import locale
locale.setlocale(locale.LC_ALL, "es_ES.UTF-8")