Skip to content

Instantly share code, notes, and snippets.

View steveturner's full-sized avatar

Steven Turner steveturner

View GitHub Profile
@steveturner
steveturner / interviewbox.txt
Created July 9, 2019 06:44
Interview BoxStarter
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableListDesktopAppsFirst
Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
Set-TaskbarOptions -Lock -Dock Bottom
Update-ExecutionPolicy
choco install -y 7zip.install
#choco install -y atom
choco install -y chrome
@steveturner
steveturner / Brewfile
Created February 14, 2019 06:19
Steve T's brew file config for work Feb 2019
tap "b-ramsey/kali"
tap "brewsci/bio"
tap "homebrew/boneyard"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "osgeo/osgeo4mac"
tap "rxseger/hackrf"

Keybase proof

I hereby claim:

  • I am steveturner on github.
  • I am kylixz (https://keybase.io/kylixz) on keybase.
  • I have a public key ASA6bcLsj6IrNm6XaJY2JA_6wDj_MEi8x1BvxVCQ7xd4Kwo

To claim this, I am signing this object:

@steveturner
steveturner / ExampleCDISPI.java
Last active March 30, 2018 22:13
An example using CDI to provide multiple implementations of an interface.
@Inject
private Instance<IPropagationModel> providerSource;
public ProviderLister() {
}
public List<String> getProviderList() {
List<String> names = new ArrayList<String>();
for (IPropagationModel provider : providerSource) {
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableListDesktopAppsFirst
Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
Set-TaskbarOptions -Lock -Dock Bottom
Update-ExecutionPolicy
choco install -y 7zip.install
#choco install -y atom
choco install -y chrome
@echo off
setlocal
set "location=\\dbserver2\students"
for /d %%d in (%location%\*) do (
md "%%d\Complaints"
)
@steveturner
steveturner / build.scala
Created February 5, 2014 23:35
build.scala sample
import sbt._
import Keys._
import play.Project._
object ApplicationBuild extends Build {
val hgbranch = "hg branch".!!.trim
val branch = if (hgbranch == "default") {
"RELEASE"
} else {
@steveturner
steveturner / build.sbt
Created February 5, 2014 23:34
a sample build.sbt for publishing
// Settings file for all the modules.
import sbt._
import Keys._
import Defaults._
// Blank lines are required between settings.
organization in ThisBuild := "org.steve.test"
version in ThisBuild := "0.0.1-SNAPSHOT"
@steveturner
steveturner / gist:5144990
Created March 12, 2013 17:27
three.js and coffeescript
class window.ThreeJSDemo
init: () ->
@renderer = new THREE.WebGLRenderer()
@renderer.setSize( window.innerWidth, window.innerHeight )
document.body.appendChild( @renderer.domElement )
@camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1000 )
@camera.position.z = 400
@scene = new THREE.Scene()
@geometry = new THREE.IcosahedronGeometry( 200, 1 );
@material = new THREE.MeshBasicMaterial( { color: 0x333, wireframe: true, wireframeLinewidth: 6
@steveturner
steveturner / gist:5144985
Created March 12, 2013 17:26
three.js and javascript
// workaround for chrome bug: http://code.google.com/p/chromium/issues/detail?id=35980#c12
if ( window.innerWidth === 0 ) { window.innerWidth = parent.innerWidth; window.innerHeight = parent.innerHeight; }
var camera, scene, renderer;
var geometry, material, mesh;
test = 200;
var init = function () {
renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1000 );