Skip to content

Instantly share code, notes, and snippets.

View mstyne's full-sized avatar
🐍
Improving my Python skills

Michael Styne mstyne

🐍
Improving my Python skills
View GitHub Profile
@ricardozanini
ricardozanini / readme.md
Created June 19, 2018 18:51
Scale down all openshift pods in a project

oc scale --replicas=0 $(oc get dc -o name | xargs) -n

@anthonydiiorio
anthonydiiorio / sats.sh
Last active November 25, 2019 20:02
Satellite Grid Extractor
#!/bin/bash
ADIF=VE2HEW.adi
SATS=sats.adi
ADIFCONF=sats-confirmed.adi
ADIFUNCONF=sats-unconfirmed.adi
WORKED=ve2hew-unconfirmed.log
CONFIRMED=ve2hew-confirmed.log
head -n 7 $ADIF | tee $SATS $ADIFCONF $ADIFUNCONF >/dev/null
grep '<PROP_MODE:3>SAT' $ADIF > $SATS
@makenova
makenova / pritunlMigration.md
Last active April 20, 2024 21:50
move pritunl between servers

Migrating your pritunl install between servers

This is a small write up about how to migrate your pritunl install between servers. It's not especially detailed because I'm lazy and your migration story will most likely be different. All this can be avoided by using a remote/hosted mongo instance(compose.io, mongolab, etc.) and simply pointing your pritunl instance at that. If you want more details ask, and I'll do my best to answer and update this write-up accordingly. Also, feel free to criticize my grammar and spelling.

@jmwhittaker
jmwhittaker / gist:8516514
Last active May 2, 2024 03:16
Use FFmpeg to resize and generate .mp4 & .webm videos from any source video.
/**
Scaling
- Scale can be used as is which will set the height to 560 but keep aspect ratio for width.
- Other options include setting both with & height
- Watch out for sizing errors when not divisible by 2
**/
/** MP4 1st pass **/
ffmpeg -i input.mov -vcodec libx264 -vprofile high -preset veryslow -b:v 225k -maxrate 300k -bufsize 1000k -vf scale=-1:560 -threads 2 -pass 1 -an -f mp4 /dev/null
@mstyne
mstyne / openssl.sh
Created October 11, 2013 17:29
Self signed certificate one liner
openssl req -new -x509 -days 365 -sha1 -newkey rsa:1024 -nodes -keyout server.key -out server.crt -subj '/O=Company/OU=Department/CN=www.example.com'
@reduxdj
reduxdj / gist:6893271
Last active March 23, 2020 10:48
QuadCopter Parts List
Here's the parts list available through http://HobbyKing.com
1x #9171000073/24723 Hobbyking KK2.0 Multi-rotor LCD Flight Control Board
4x #9351000004/25365 Turnigy Multistar 30 Amp Multi-rotor Brushless ESC 2-4S
4x #D2830-111000/28115 D2830-11 - Brushless Motors
1x #T1800 .3S.30/9369 Turnigy 1800mAh 3S 30C Lipo Pack
2x #OR017 -01001-M2/6360 Hex-nuts M2 10pc
2x #HA0505 /12307 Hex Screw M2x8 (20pcs)
1x #9329000018/22438 Slow Fly Electric Prop 8045SF (4 pc)
1x #9329000019/22439 Slow Fly Electric Prop 8045R SF (4 pc)
1x #9171000033/23140 Hobby King Quadcopter Power Distribution Board
@mstyne
mstyne / aprs_display_k2mts.md
Last active December 23, 2015 09:58
BOM for Portable APRS Display

K2MTS Portable APRS Display

The goal here is to create a small, portable APRS monitoring station for use in public service and emergency events. The components chosen here can be powered off of a 12VDC supply provided by a vehicle, battery, or conventional desktop power supply. Most of the components are affordable, and some of them we may already have on hand.

Mockup of Possible Configuration

Radio

BaoFeng UV-3R PLUS
Perhaps the club or a member is willing to donate an older HT that can be used for this purpose.

@csete
csete / ais_rx.grc
Created September 11, 2013 14:45
2 channel AIS receiver prototyped in GNU Radio Companion (version 3.7.1)
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
<timestamp>Wed Sep 11 16:13:12 2013</timestamp>
<block>
<key>variable</key>
<param>
<key>id</key>
<value>xlate_filter_taps</value>
</param>
<param>
@tmatilai
tmatilai / debian7.erb
Created May 20, 2013 13:56
Chef `knife bootstrap` template for Debian 7.0 Wheezy until it is supported by Opscode: http://tickets.opscode.com/browse/CHEF-4125
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
exists() {
if command -v $1 &>/dev/null
then
return 0
else
return 1
fi
@mstyne
mstyne / hiring.md
Created February 20, 2013 20:20
Ubersmith, Inc. is hiring!

Ubersmith, Inc. is hiring! New York's premiere Data Center Management software company is looking to expand our operations team in beautiful downtown Troy, New York.

Our hard and fast requirements for this position:

  • Strong Linux system administration skills required. Super strong.
  • We're serious about that first one. If you are not comfortable with your Linux administration abilities, please do not apply for this position.
  • Significant experience deploying, configuring, and troubleshooting RHEL, CentOS, and Debian Linux distributions.
  • Significant experience troubleshooting and deploying Apache, MySQL, PHP, Tomcat, and Postfix on those platforms.
  • Experience troubleshooting the source of errors generated by PHP applications.
  • Experience working directly with customers to resolve their issues via both email and telephone.