Skip to content

Instantly share code, notes, and snippets.

View wiless's full-sized avatar
💭
I may be slow to respond.

wireless wiless

💭
I may be slow to respond.
View GitHub Profile
@wiless
wiless / rpi2-arch-linux-to-sdcard.sh
Created August 25, 2016 20:06 — forked from pklaus/rpi2-arch-linux-to-sdcard.sh
Raspberry Pi 2: Arch Linux ARM to SDcard Script. This is for the Rapsberry Pi 2. For the RPi 1, see https://gist.github.com/pklaus/b92dfc72136d1509c2ed for RPi 1
#!/bin/bash
# <http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2>
echo -e "\n\nArch Linux ARM to SD Card\n"
echo -e "for the Raspberry Pi 2\n\n"
echo -e "\nAll drives on this computer:\n"
ls -1 /dev/sd?
@wiless
wiless / setupgolang.sh
Last active February 28, 2017 17:30
A script to setup environment go 1.8
#!/bin/sh
mkdir ~/Downloads
cd ~/Downloads
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
sudo tar xvf ~/Downlods/go1.8.linux-amd64.tar.gz /opt/
{
"schema": {
"text": {
"type": "string",
"title": "Enter some text"
}
},
"form": [
{
"key": "text",
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"strings"
)
@wiless
wiless / iperfgo.go
Created September 29, 2019 17:53
iperf async cmd stream
package main
import (
"fmt"
"os"
"strings"
"time"
"github.com/go-cmd/cmd"
)
@wiless
wiless / matreadwrite.go
Last active April 6, 2020 11:14
Sample code to read and write XCorr and SqrtXcorr files
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"github.com/Sirupsen/logrus"
@wiless
wiless / quickplot.py
Last active March 9, 2020 04:38
Short reference file for plotting
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
#
# Data for plotting
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi * t)
#t=[0,1,2,4] # Note always have ","
@wiless
wiless / readicontobytes.go
Created April 6, 2020 11:16
Read small icon files and covert to []byte variable to embed in go code
package main
import (
"fmt"
"io/ioutil"
"os"
"strings"
)
// Reads the input file (e.g. favicon.ico) and creates outputs variable=[...bytes].. build go files with the output for embeddineg ico impages
@wiless
wiless / satellite-in-use.csv
Created April 1, 2021 06:21
satellite-in-use.csv as on March 31
Satellite Name ADM ORG Long_nom Date Status Expiry Date for Bringing Into Use Provision
INSAT-2C IND 74 31.12.1992 C A30B#8.1
INSAT-EK74R IND 74 31.07.2004 C 11.2
INSAT-2(74) IND 74 31.01.1994 C 11.2
INSAT-EK55 IND 55 30.11.2003 C 11.2
INSAT-2(83) IND 83 30.07.1993 C 11.2
INSAT-2A IND 83 30.07.1993 C A30B#8.1
INSAT-MET82E IND 82 28.07.2013 C 11.2
INSAT-NAVR(83) IND 83 26.07.2015 C 11.2
INSAT-TTC(55)E IND 55 26.03.2013 C 11.2
@wiless
wiless / ngso-in-use.csv
Last active April 1, 2021 06:49
ngso-in-use.csv
Satellite Name ADM ORG Long_nom Date Status Expiry Date Provision
SROSS-3 IND N-GSO 01.10.1994 C 11.2
MMI IND N-GSO 05.11.2013 C 11.2
IRS-P4 IND N-GSO 10.06.1999 C 11.2
IRS-P5 IND N-GSO 15.05.2005 C 11.2
IRS-1E IND N-GSO 15.10.1994 C 11.2
MEGHA-TROPIQUES IND N-GSO 15.10.2011 C 11.2
IRS-CARTOSAT-2 IND N-GSO 20.01.2007 C 11.2
PSLV IND N-GSO 20.09.1993 C 11.2
INSAT-NAVR-GS IND N-GSO 21.08.2016 C 11.2