Skip to content

Instantly share code, notes, and snippets.

View cicorias's full-sized avatar

Shawn Cicoria cicorias

View GitHub Profile
@cicorias
cicorias / happy_git_on_osx.md
Created April 28, 2019 20:58 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@cicorias
cicorias / add-fractional-scaling.sh
Created April 25, 2019 08:46
Ubuntu 18.04 Scaling in HyperV
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
#REBOOT
@cicorias
cicorias / run-dmg-pkg.sh
Created April 18, 2019 12:25
installing package from dmg file on OSX
#!/usr/bin/env bash
IMAGE=$1
PKG=$2
sudo hdiutil attach $IMAGE
# image will be mounted as /Volumes/$IMAGE
sudo installer -package /Volumes/$IMAGE/$PKG.pkg -target /
sudo hdiutil detach /Volumes/$IMAGE
@cicorias
cicorias / iotedgedev-start-simulator.sh
Created April 15, 2019 15:14
running iotedgedev as "non" sudo - but dam tool requires sudo...
#key thing is passing user env to suod via 'sudo env "PATH=$PATH" command'
docker build --rm -f "/home/cicorias/dev/tiem-app/EdgeSolution/modules/telemetry/Dockerfile.amd64" -t localhost:5000/telemetry:1.0.1-amd64 "/home/cicorias/dev/tiem-app/EdgeSolution/modules/telemetry" && sudo env "PATH=$PATH" iotedgehubdev start -d "/home/cicorias/dev/tiem-app/EdgeSolution/config/deployment.debug.amd64.json" -v
@cicorias
cicorias / sumwhocommit.sh
Created April 5, 2019 13:58
summary of who commited
git log --pretty=format:'%an' | sort | uniq -c | sort -rn
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Mike.Spikes.ConsoleShutdown
{
class Program
{
static void Main(string[] args)
{
@cicorias
cicorias / git-stupid.sh
Created March 20, 2019 17:43
git setup for chmod
git config --global core.fileMode false
@cicorias
cicorias / runwithpath.sh
Created March 19, 2019 22:38
run a sudo with path
sudo env "PATH=$PATH" <the commands>
@cicorias
cicorias / run-in-penv.ps1
Created March 19, 2019 20:35
run iot simulator in windows venv
docker build --rm -f "c:\g\cse\mqtt\app\mosquitto_authn\modules\sender\Dockerfile.amd64" -t localhost:5000/sender:0.0.1-amd64 "c:\g\cse\mqtt\app\mosquitto_authn\modules\sender" ; if ($?) { iotedgehubdev start -d "c:\g\cse\mqtt\app\mosquitto_authn\config\deployment.amd64.json" -v }
@cicorias
cicorias / az-iotedge-install.sh
Last active March 19, 2019 14:48
Azure IoT Runtime Install on Ubuntu
# Register Microsoft key and software repository feed
apt-get update
apt-get install curl gpg vim
curl https://packages.microsoft.com/config/ubuntu/$(awk -F= '$1=="DISTRIB_RELEASE" { print $2 ;}' /etc/lsb-release)/prod.list > ./microsoft-prod.list
cp ./microsoft-prod.list /etc/apt/sources.list.d/
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
cp ./microsoft.gpg /etc/apt/trusted.gpg.d/