Skip to content

Instantly share code, notes, and snippets.

View vmaldosan's full-sized avatar
🍉

Victor Maldonado vmaldosan

🍉
View GitHub Profile
@vmaldosan
vmaldosan / Linux commands
Last active January 29, 2024 22:09
Useful commands for Linux and Windows (XP and above).
# Install maven wrapper
mvn -N io.takari:maven:wrapper
# Locate an installed package in the system
dpkg -l | grep <pkg_name>
# Ubuntu: move launcher to the bottom
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
# Process using a certain port
@vmaldosan
vmaldosan / git-prune-files.sh
Created February 6, 2018 15:18
Permanently remove files from git
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0
fi
@vmaldosan
vmaldosan / .bashrc
Created November 21, 2019 16:56
Aliases
alias ll='ls -l'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="13">
<profile kind="CodeFormatterProfile" name="GoogleStyle" version="13">
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>
@vmaldosan
vmaldosan / central-notas.md
Last active May 6, 2021 21:28
Notas sobre ODK

ODK Central en Windows

Requisitos

  • Docker Desktop instalado

Instalación

  1. Verifica en tu configuración de Git que la opción core.autocrlf tiene el valor input
  2. Clona Central desde https://github.com/getodk/central.git
Steps to run from within an EC2 instance in the free tier.
# Create EC2 instance (I chose t2.micro with Ubuntu 22.04)
# Add custom TCP inbound rule for port 8280 (or whatever port you prefer to use)
# (If created new RSA key) Make the private key read-only
chmod 400 <key_name.pem>