Skip to content

Instantly share code, notes, and snippets.

@dinolupo
dinolupo / .bashrc
Created May 16, 2015 18:09
.BASHRC improved command prompt for OSX, CENTOS, UBUNTU, etc,
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac

MacOS BigSur my development machine configuration

enable comments in interactive shell

sudo vi /etc/zshrc
setopt interactivecomments

some enhancements to MacOS experience

@dinolupo
dinolupo / intel-edison.md
Last active May 19, 2021 22:22
Intel Edison notes

Intel Edison

Procedure to Autostart the Arduino Sketch on Edison

There are many ways to do this, but on Intel Edison I found that the easiest way is using the /etc/init.d directory.

Create a file in /etc/init.d

cd /etc/init.d
@dinolupo
dinolupo / settings.json
Last active September 26, 2020 18:05
Windows Terminal - settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "dark",
"keybindings": [
{ "command": "closeTab", "keys": ["ctrl+w"] },
{ "command": "newTab", "keys": ["ctrl+t"] },
#!/usr/bin/env bash
####################################################
# Ubuntu Linux configuration for WSL 2 #
# Author: Dino Lupo #
# Release Date: 2020/08/30 #
####################################################
# Install Ubuntu latest with WSL version 2
# then launch it and copy this file in Ubuntu with
#
@dinolupo
dinolupo / .dircolors
Created May 16, 2015 18:11
.DIRCOLORS I really do not like those blue folders on Linux
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
# Copying and distribution of this file, with or without modification,
# are permitted provided the copyright notice and this notice are preserved.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
TERM Eterm
TERM ansi
@dinolupo
dinolupo / .vimrc
Last active September 26, 2018 19:11
VIMRC
syntax on
:colorscheme darkblue
:set tabstop=4
:set shiftwidth=4
":set expandtab
" Clear last search highlighting
nnoremap <Space> :noh<cr>
" If arrows key not working do the following
Car car1 = new Car();
car1.setMake("Toyota");
car1.setModel("Prius");
car1.setStock("20");
Car car2 = new Car();
car2.setMake("Tesla");
car2.setModel("Model S");
car2.setStock("2");
List<Car> inventory = new ArrayList<>();

Keeping your site up to date with the GitHub Pages gem

bundle update github-pages

Build your local Jekyll site

bundle exec jekyll serve

@dinolupo
dinolupo / gist.md
Created November 1, 2017 07:20 — forked from benbalter/gist.md
Example of how to embed a Gist on GitHub Pages using Jekyll.

Here's an example of how to embed a Gist on GitHub Pages:

{% gist 5555251 %}

All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.