Skip to content

Instantly share code, notes, and snippets.

View tun's full-sized avatar
🌊
learning

Ricardo Tun tun

🌊
learning
View GitHub Profile
@mxgrn
mxgrn / lv_modal_close_confirm.md
Last active June 15, 2024 14:18
LiveView modal close confirmation on dirty form
@IanColdwater
IanColdwater / twittermute.txt
Last active July 2, 2024 02:25
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@VernonGrant
VernonGrant / .vimrc
Last active March 19, 2021 03:09
Project specific vimrc file
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" PROJECT SPECIFIC VIMRC "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if !exists("*LoadProjectVimrc")
function! LoadProjectVimrc()
let vimrcFile = findfile(".vimrc", ".;")
if !empty(l:vimrcFile)
execute ":so" l:vimrcFile
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active June 9, 2024 19:08
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@pastleo
pastleo / asdf-erlang-openssl-not-found-arch.md
Last active December 24, 2023 12:09
asdf erlang openssl not found issue in archlinux

asdf erlang openssl not found issue in archlinux

using asdf to install erlang:

asdf install erlang 19.3

but I got:

@meskarune
meskarune / vimrc
Last active November 3, 2023 07:58
simple functional vim status line - jellybeans theme colors
" status bar colors
au InsertEnter * hi statusline guifg=black guibg=#d7afff ctermfg=black ctermbg=magenta
au InsertLeave * hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
" Status line
" default: set statusline=%f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%)
" Status Line Custom
let g:currentmode={
@ZeroDragon
ZeroDragon / RETAGGER.md
Last active October 11, 2017 21:05
Git retagger

Rettager

This file will help you to create tags in your git repository.
Also you can use it to move a tag from commit to commit (for build tags).

Usage

Just add retagger.sh to anyplace you want (bin maybe) and add execution permissions.
Also you can just leave it in your Documents or Downloads and just add an alias in your .bashrc file

#!/usr/bin/env bash
set -e
main() {
previous_file="$1"
file_to_edit=`select_file $previous_file`
if [ -n "$file_to_edit" ] ; then
"$EDITOR" "$file_to_edit"
main "$file_to_edit"