Skip to content

Instantly share code, notes, and snippets.

View audrew's full-sized avatar
💭
Open

Audrius audrew

💭
Open
View GitHub Profile
@audrew
audrew / !_cpp_code_completion.md
Created December 28, 2022 20:26 — forked from zeta709/!_cpp_code_completion.md
Setup ccls and coc.vim (Ubuntu 20.04.3 LTS)

⚠️ This guide is a WIP.

You can use either ccls or clangd. You don't need both. See ccls.md or clangd.md for ccls or clangd, respectively.

@audrew
audrew / Set Up Raspberry Pi Pico SDK
Created August 31, 2022 21:14
Set Up Raspberry Pi Pico SDK
The Raspberry Pi Pico SDK is a collection of libraries, headers, and tools that allows to develop programs for the RP2040 based devices such as the Raspberry Pi Pico using C, C++ or assembly language.
This tutorial explains how to set up Raspberry Pi Pico SDK on Ubuntu 20.04.
Prepare environment
Make sure you have installed build-essential package in your system.
sudo apt update
sudo apt install -y build-essential
@audrew
audrew / Install GNU Arm Embedded Toolchain
Created August 31, 2022 21:13
Install GNU Arm Embedded Toolchain
The GNU Arm Embedded toolchain is a collection of packages such as GCC (GNU Compiler Collection), Binutils, GDB, and other. It is used for embedded systems software development. This toolchain targets the 32-bit ARM Cortex-A, ARM Cortex-M, and ARN Cortex-R processor families.
This tutorial shows how to install GNU Arm Embedded toolchain on Ubuntu 20.04.
Install toolchain
There is no straightforward way to determine the latest version of toolchain via command line. So download web page and extract the latest version of toolchain as follows:
ARM_TOOLCHAIN_VERSION=$(curl -s https://developer.arm.com/downloads/-/gnu-rm | grep -Po '<h3>Version \K.+(?= <span)')
Next, download archive file from official website:
@audrew
audrew / gist:563d44f667e8a6ead2ecb370e19ef643
Last active December 18, 2021 18:55
ubuntu server blocks
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04
TUTORIAL
How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04
NginxUbuntuGetting StartedUbuntu 16.04
jellingwood
By Justin Ellingwood
Last Validated onJuly 9, 2021 Originally Published onMay 19, 2016 1.6mviews
Introduction
@audrew
audrew / docker-help.md
Created August 26, 2021 21:09 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@audrew
audrew / node_nginx_ssl.md
Created August 19, 2021 11:33 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@audrew
audrew / ssh.md
Last active December 16, 2021 01:56 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

Login via SSH with password (LOCAL SERVER)

$ ssh bsdd@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

$ touch hello.txt