Skip to content

Instantly share code, notes, and snippets.

View youaresourcecode's full-sized avatar
📺
https://www.twitch.tv/youaresourcecode

You are source code youaresourcecode

📺
https://www.twitch.tv/youaresourcecode
View GitHub Profile
@youaresourcecode
youaresourcecode / auto_git_file.md
Created March 26, 2022 04:15 — forked from darencard/auto_git_file.md
Automatic file git commit/push upon change

Please see the most up-to-date version of this protocol on my blog at https://darencard.net/blog/.

Automatically push an updated file whenever it is changed

Linux

  1. Make sure inotify-tools is installed (https://github.com/rvoicilas/inotify-tools)
  2. Configure git as usual
  3. Clone the git repository of interest from github and, if necessary, add file you want to monitor
  4. Allow username/password to be cached so you aren't asked everytime
#!/bin/bash
# This script prints each word in $dict_file, one per line.
# $dict_file is a file from http://www.csse.monash.edu.au/~jwb/edict_doc.html.
# See http://www.csse.monash.edu.au/~jwb/jmdict_dtd_h.html to understand why
# <keb> and </keb> are used.
start_marker="<keb>"
end_marker="</keb>"
dict_file=JMdict_e
@youaresourcecode
youaresourcecode / ddg.sh
Created March 21, 2022 06:54 — forked from masonicboom/ddg.sh
DuckDuckGo from the command line, using w3m.
#!/bin/bash
query=$(echo "$@" | sed 's/ /%20/')
w3m -no-cookie "https://duckduckgo.com/?q=$query"
#!/usr/bin/env bash
#
# see: https://gist.github.com/gregorynicholas/2160046ec6946a2ce0fa
# src: https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# updated: 2015-06-06
#
# ask for the administrator password upfront
sudo -v
@youaresourcecode
youaresourcecode / vim basics
Created March 20, 2022 05:40 — forked from auwsom/vim basics
vim basics
https://spin.atomicobject.com/2016/04/19/vim-commands-cheat-sheet/
http://i.imgur.com/YLInLlY.png
https://vim.rtorr.com/
:q, :wq, :q!, ZZ # quit, write quit, quit force, write quit
i, Esc, v # insert mode, exit mode, visual mode
dd, dw, x, u, U, ctrl+r # cut line, cut word, delete char, undo, undo line, redo
yy, pp, Y, o # copy line, paste line, open line
a, A, # insert at end, or after end
H, M, L, gg, G, 1G, 0, $, ^, {, }, # move to: top, mid, bottom, start/end doc, line 1, start/end line, start non-empty line, paragraph
## These lines for importing these command aliases and functions into .bash_aliases (or .bashrc), the settings file for bash
# `wget https://gist.github.com/auwsom/57c4f7c9db585b3f67065f13055986cc/raw -O ~/.bash_aliases && source ~/.bashrc`
# `wget https://bit.ly/3o2fy8S -O ~/.bash_aliases && source ~/.bashrc`
# `cp -f ~/.bash_aliases /home/user/.bash_aliases && chown user:user /home/user/.bash_aliases`
#shellcheck "$0" # `apt install shellcheck` to check for any errors
# see further down for more general Linux tips and learning sites
## basic .bashrc settings
HISTCONTROL=ignorespace:ignoredups:erasedups # no duplicate entries
Estas son etiquetas que se aplican muy frecuentemente a productos de Steam, ordenadas para destacar las que se aplican más frecuentemente.
Indie
Acción
Aventura
Casual
Simuladores
Estrategia
Rol
Acceso temprano
Free to Play
@youaresourcecode
youaresourcecode / gist:0c6782bbdbe661689048ea74aa9ef470
Created March 9, 2020 08:18
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@youaresourcecode
youaresourcecode / Parsing JSON from terminal
Created March 9, 2020 08:18
Parsing JSON from terminal
grep -Po '"following":.*?[^\\],' twitch
nodejs -p "JSON.parse(process.argv[1]).foo" '{"foo":"bar"}'
INSTALADO
Plug 'neoclide/coc.nvim', {'branch': 'release'}
AUTORELLENADO CON:
https://github.com/neoclide/coc.nvim/wiki/Completion-with-sources