Skip to content

Instantly share code, notes, and snippets.

View jgamage91's full-sized avatar
:bowtie:

Amalinda Gamage jgamage91

: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
@jgamage91
jgamage91 / 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
@jgamage91
jgamage91 / 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

Keybase proof

I hereby claim:

  • I am amalinda on github.
  • I am amalinda (https://keybase.io/amalinda) on keybase.
  • I have a public key whose fingerprint is BE33 0042 967E 6005 9F35 4AA0 CAA9 7D5F B928 CDB7

To claim this, I am signing this object: