Skip to content

Instantly share code, notes, and snippets.

Alejandro Javier Schwoykoski chaicko

Block or report user

Report or block chaicko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chaicko / .gitattributes
Created Feb 8, 2018 — forked from bsmith89/.gitattributes
Example files for, a default makefile for computational research projects
View .gitattributes
*.ipynb filter=dropoutput_jupyter
*.[tc]sv diff=daff-csv
*.[tc]sv merge=daff-csv
chaicko / boxstarter.ps1
Last active Nov 26, 2017 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <>
# Last Updated: 2017-09-11
# Install boxstarter:
# . { iwr -useb } | iex; get-boxstarter -Force
# You might need to set: Set-ExecutionPolicy RemoteSigned
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# Rename a bunch of files by removing the last 2 characters of the filename (not the extension)
for f in *.*; do fname=${f%.*}; extension=${f##*.}; mv $f ${fname%??}.${extension}; done
# How? use bash substituions
chaicko / gist:3ba9296ab41cb245ed0861965272daec
Created Oct 19, 2017 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
View gist:3ba9296ab41cb245ed0861965272daec
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
chaicko / Makefile
Created Mar 28, 2017 — forked from 17twenty/Makefile
Simple Misc Driver Example
View Makefile
# Simple Makefile to build a simple misc driver
# Nick Glynn <>
obj-m += misc_example.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
chaicko /
Last active Feb 22, 2017
Useful shell commands to do specific tasks

Mounting a remote Filesystem locally

Sometimes you need to mount a remote file system locally in order to share files, do some work or deploy a program remotelly. There are several protocols to do this like NFS, Samba, SSHFS and others. Here are some recipes.


Provided you have a user and password (or ssh keys loaded in the remote host) and an ssh server is running on the remote host, you can mount the remote filesystem through an SSH connection.

First, install sshd:

[ -d /usr/share/fonts/opentype ] || sudo mkdir /usr/share/fonts/opentype
sudo git clone --depth 1 --branch release /usr/share/fonts/opentype/scp
sudo fc-cache -f -v
chaicko /
Created Oct 3, 2016 — forked from tsabat/
Getting oh-my-zsh to work in Ubuntu


apt-get install zsh
apt-get install git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget -O - | zsh
#! /usr/bin/awk -f
# A script to extract the actual suppression info from the output of (for example) valgrind --leak-check=full --show-reachable=yes --error-limit=no --gen-suppressions=all ./minimal
# The desired bits are between ^{ and ^} (including the braces themselves).
# The combined output should either be appended to /usr/lib/valgrind/default.supp, or placed in a .supp of its own
# If the latter, either tell valgrind about it each time with --suppressions=<filename>, or add that line to ~/.valgrindrc
# NB This script uses the |& operator, which I believe is gawk-specific. In case of failure, check that you're using gawk rather than some other awk
# The script looks for suppressions. When it finds one it stores it temporarily in an array,
# and also feeds it line by line to the external app 'md5sum' which generates a unique checksum for it.
chaicko / disallow-new.js
Created Apr 15, 2016 — forked from mattdesl/disallow-new.js
avoiding new in classes
View disallow-new.js
// Allows:
// funkyParser()
module.exports = function createFunkyParser(opt) {
return new FunkyParser(opt)
function FunkyParser(opt) {
// make params optional
opt = opt || {}
You can’t perform that action at this time.