Skip to content

Instantly share code, notes, and snippets.

View medelman17's full-sized avatar

Michael Edelman medelman17

View GitHub Profile
@alex27riva
alex27riva / rtl_tcp.service
Created January 31, 2022 19:18
Systemd service for running rtl_tcp on startup
[Unit]
Description=Software Defined Radio TCP Server
Requires=network.target
After=network.target
[Service]
ExecStart=/usr/bin/rtl_tcp -a 0.0.0.0
Restart=on-failure
KillMode=control-group
@varnav
varnav / ubuntu-docker.sh
Last active July 21, 2023 13:12
Docker on Ubuntu installation
apt update
apt remove docker docker-engine docker.io containerd runc
apt install -y apt-transport-https ca-certificates curl software-properties-common gnupg curl lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install -y docker-ce docker-ce-cli containerd.io mc fail2ban htop git iotop lsof ufw docker-compose
systemctl status docker
ufw allow ssh
@varnav
varnav / adsb-feed-rpi.sh
Last active June 5, 2024 21:22
Script will install multiple ADS-B feeders to Raspberry Pi OS
#!/bin/bash -ex
# Script will install multiple ADS-B feeders to Raspberry Pi OS
# Before running make sure you have your coordinates (lat/lon in a form of DD.DDDD) and antenna height (in both feet and m) handy.
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
@iartemiev
iartemiev / ds-contributing.md
Last active September 21, 2021 21:27
AWS Amplify DataStore Contributing Guide (a.k.a. This One Simple Trick Will Save You Hours Of Debugging Time)

From the library source:

  1. Fork the amplify-js repo in GitHub and clone it locally
  2. Run yarn setup-dev
  3. Run yarn build:watch

From your sample app:

  1. Run yarn link aws-amplify @aws-amplify/core @aws-amplify/datastore @aws-amplify/auth @aws-amplify/ui-components @aws-amplify/ui-react @aws-amplify/api @aws-amplify/api-graphql
  • You may not need all of these, but might as well link them just in case
"""Autogenerated input type of AcceptTopicSuggestion"""
input AcceptTopicSuggestionInput {
"""The Node ID of the repository."""
repositoryId: ID!
"""The name of the suggested topic."""
name: String!
"""A unique identifier for the client performing the mutation."""
clientMutationId: String
@pmkay
pmkay / top-brew-packages.txt
Last active June 27, 2024 12:16 — forked from r5v9/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@peterdemartini
peterdemartini / command.sh
Last active May 20, 2024 11:04
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 6, 2024 04:11
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites