Skip to content

Instantly share code, notes, and snippets.

View TizioFittizio's full-sized avatar
Oi, ln apnbp, W xfhx tkr zrf ro gul rlhvbv r zlzwq kigg, mgcm k zvqt usr =)

Luca Campana TizioFittizio

Oi, ln apnbp, W xfhx tkr zrf ro gul rlhvbv r zlzwq kigg, mgcm k zvqt usr =)
  • Synopsys
  • Glasgow, Scotland
View GitHub Profile
@TizioFittizio
TizioFittizio / git_exercises.md
Last active April 22, 2024 01:50
Git Exercises

Exercises

  • Basics
    • Init a repository
    • Track and stage new files
    • Execute a commit
    • Clone a repository
    • Know state of a file (untracked, unmodified, modified, staged)
    • Obtain current status of files
  • Get a short version of status
@TizioFittizio
TizioFittizio / launch.json
Last active April 11, 2020 11:14
vsc ts debug conf
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
# Updated on 23/01/2020 from https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04
# Installing nginx
sudo apt update
sudo apt install nginx
# Sample configuration
server {
proxy_set_header X-Real-IP $remote_addr;
# Updated 23/01/2020 from https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
# Installing docker
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
@TizioFittizio
TizioFittizio / ubuntu-setup.sh
Created September 30, 2018 18:17
Ubuntu setup
#!/bin/bash
#nginx
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install nginx -y
sudo systemctl start nginx
sudo systemctl enable nginx
#node
sudo apt-get update