Skip to content

Instantly share code, notes, and snippets.

View amalinda's full-sized avatar
:bowtie:

Amalinda Gamage amalinda

:bowtie:
View GitHub Profile
###############################################################################################
# LAMP setup for Ubuntu 16.04 Server #
# Apache + PHP + Percona #
###############################################################################################
# Update and prepare server
apt update; apt -y upgrade
apt -y install nano sudo curl wget git dnsutils lynx
sudo hostname srv.zdb.bz
sudo service hostname start
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@amalinda
amalinda / README.md
Created July 21, 2020 10:11 — forked from lightrush/README.md
X11vnc Systemd Unit File

X11vnc Systemd Unit File

This Systemd unit file starts X11VNC on boot

  1. Set VNC password: sudo x11vnc -storepasswd [YOUR VNC PASSWORD] /etc/x11vnc.passwd
  2. Install Systemd Unit File
sudo cp [path to]/vnc.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable vnc.service
@amalinda
amalinda / lora_dechirp.grc
Created November 13, 2019 08:36 — forked from daniestevez/lora_dechirp.grc
LoRa dechirp GNU Radio flowgraph
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.13'?>
<flow_graph>
<timestamp>Sun May 19 19:22:59 2019</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

import numpy as np
import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt
sns.set()
sps = 3.75e6
samples_per_us = sps*1e-6
max_range_us = samples_num/samples_per_us