Skip to content

Instantly share code, notes, and snippets.

View johnarok's full-sized avatar

johnarok

View GitHub Profile

Keybase proof

I hereby claim:

  • I am johnarok on github.
  • I am johnarok (https://keybase.io/johnarok) on keybase.
  • I have a public key ASBKFFcvtZv3myg2FQGqhgQySw8pGOexcIIG5NnQYWhZAQo

To claim this, I am signing this object:

@johnarok
johnarok / boxstarter.ps1
Created March 31, 2018 22:46 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
@johnarok
johnarok / add-email-aliases-to-office365-group.md
Last active June 23, 2018 02:47
add email aliases to office365 group

Connect to Exchange online

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication  Basic -AllowRedirection
Import-PSSession $Session

Inquire

config:
environment.DISPLAY: :0
raw.idmap: both 1000 1000
user.user-data: |
#cloud-config
#runcmd:
packages:
- x11-apps
- mesa-utils
description: GUI LXD profile
@johnarok
johnarok / onetime-installs.md
Last active January 6, 2019 06:57
onetime install setups

LXQT with i3

sudo apt-get update
sudo apt-get install lxqt
sudo apt-get update
sudo apt-get install i3 nitrogen 
https://feeblenerd.blogspot.com/2016/08/walkthrough-for-lubuntu-with-i3-tiling.html
@johnarok
johnarok / lxc-export-import.md
Created July 31, 2018 16:28
lxc-export-import
@johnarok
johnarok / docker-install-18-06.md
Last active March 26, 2019 15:52
K8s v1.11.3 with Ubuntu 18.04 LTS and Docker 17.03/18.06
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
apt-get update
apt-cache madison docker-ce
apt-get install docker-ce=18.06.3~ce~3-0~ubuntu
@johnarok
johnarok / symbolic-links-in-windows-golang.md
Last active May 12, 2022 11:41
symlinks in windows using golang notes