Skip to content

Instantly share code, notes, and snippets.

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, callPackage, ... }:
{
imports =
[ # Include the results of the hardware scan.
<nixos-hardware/lenovo/thinkpad/t495>

To create a new branch and switch to it at the same time, you can run the git checkout command with the -b switch:
git checkout -b issue53

Shorthand for:
$ git branch iss53
$ git checkout iss53

normal commit after changes

@violetbp
violetbp / test.sh
Last active January 30, 2020 15:52
echo "Cloning repo"
sudo apt update
sudo apt install git
# git clone https://github.com/violetbp/zappy.git
cd zappy
echo "installing"
bash serviceInstall.sh
---
BasedOnStyle: LLVM
BreakBeforeBraces: Attach
ColumnLimit: '120'
Cpp11BracedListStyle: 'true'
IndentWidth: '2'
Language: Cpp
NamespaceIndentation: None
ReflowComments: 'true'
SortIncludes: 'true'
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent 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 $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
#add to docker group
sudo groupadd docker