Skip to content

Instantly share code, notes, and snippets.

View Alby11's full-sized avatar

Alberto Tallone Alby11

View GitHub Profile
#!/bin/bash
if [ ! $1 ]; then echo -e "usage: \n\nbootstrap.sh physical/server/virtual" ; exit 2 ; fi
if [ $1 == "physical" ] ; then environment="p" ; fi
if [ $1 == "server" ] ; then environment="s" ; fi
if [ $1 == "virtual" ] ; then environment="v" ; fi
# additional repos
# Neovim nightly
sudo add-apt-repository -y ppa:neovim-ppa/unstable
@Alby11
Alby11 / .setup_dotfiles.ps1
Last active November 2, 2023 02:49
powershell core convenience functions for setting up or restoring dotfiles bare repo
# .setup_dotfiles.ps1
@"
convenience functions for setting up or restoring dotfiles bare repo
to call them, create a Gist and use something like:
---
$gistURL="https://gist.githubusercontent.com/Alby11/4b1c4c7a9a8e774331799a2a2d8504b9/raw/5180697b2285dfa5ba1aa35166af65bf6fa39b06/.setup_dotfiles.ps1"
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# iwr -useb $gistURL | iex
Invoke-Expression $(curl $gistURL|Out-String)
dotfilesRestore [dotfiles repo]
@Alby11
Alby11 / dotfiles_setup.sh
Last active January 16, 2025 13:25
bash/zsh/ash convenience functions for setting up or restoring dotfiles bare repo
#!/bin/bash
# Clone the bare repository
git clone --bare git@github.com:Alby11/dotfiles-linux.git $HOME/.dotfiles_git
# Define the function in the current shell session
dotfiles() {
$(which git) --git-dir=${HOME}/.dotfiles_git/ --work-tree="$HOME" "$@"
}
@Alby11
Alby11 / index.html
Last active June 12, 2016 18:49
FCC Simon Game
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=VT323' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="main.css">
@Alby11
Alby11 / freeCodeCamp JS Calculator.markdown
Created May 13, 2016 15:01
freeCodeCamp JS Calculator
@Alby11
Alby11 / Twitch.markdown
Last active April 12, 2016 06:43
Twitch
@Alby11
Alby11 / index.html
Last active June 15, 2016 07:30
weatherForecast
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
@Alby11
Alby11 / Build a Personal Portfolio Webpage.markdown
Created March 13, 2016 21:18
Build a Personal Portfolio Webpage