This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case "${TERM}" in | |
| cons25*|linux) # plain BSD/Linux console | |
| bindkey '\e[H' beginning-of-line # home | |
| bindkey '\e[F' end-of-line # end | |
| bindkey '\e[5~' delete-char # delete | |
| bindkey '[D' emacs-backward-word # esc left | |
| bindkey '[C' emacs-forward-word # esc right | |
| ;; | |
| *rxvt*) # rxvt derivatives | |
| bindkey '\e[3~' delete-char # delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| #===========================================================================================# | |
| # This script is a workaround for compiling Erlang with crypto below version 20 via kerl # | |
| # # | |
| # The need for this script came about because newer versions of OpenSSL are not # | |
| # properly detected by the compiler when choosing an Erlang version under 20; # | |
| # most distros have an openssl 1.0 compatibility package in their package managers, # | |
| # but I have found them unreliable at best, when it comes to compiling Erlang # | |
| # # | |
| # The script will download the OpenSSL source code for version 1.0.2 to $HOME/openssl, # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # | |
| # setup_proxy_script.sh | |
| # Copyright (C) 2019 Ender Veiga Bueno <enderveigabueno@pm.me> | |
| # | |
| # Distributed under terms of the MIT license. | |
| # | |
| # Check that the script is being run as root (sudo ./setup_proxy_script.sh) | |
| if [ "$EUID" -ne 0 ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Save as $HOME/.config/nvim/init.vim | |
| " Dependencies | |
| " vim-plug: https://github.com/junegunn/vim-plug | |
| " Specify a directory for plugins | |
| " - For Neovim: ~/.local/share/nvim/plugged | |
| " - Avoid using standard Vim directory names like 'plugin' | |
| call plug#begin('~/.local/share/nvim/plugged') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Checks if a string is contained inside the given array of strings | |
| * If the second variable is a string, it just compares them | |
| * If the second variable is neither string or array, it returns false */ | |
| function checkIfStringInArray(str, arr) { | |
| if (typeof arr === 'string') | |
| return str === arr; | |
| if (arr.constructor && arr.constructor === Array) | |
| for (var i in arr) { | |
| if (str === arr[i]) { | |
| return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /(?!-,)(?!^,)(^-?\d*,?\d{0,2}$)/ //Number, positive or negative, with up to two decimals |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import csv | |
| import re | |
| import os | |
| topdir=r'folderToScan' | |
| output=r'outputFile.csv' | |
| exten='.extension' | |
| def parsesource(firstfolder,filepath,filename,sourcefile): |
NewerOlder