Skip to content

Instantly share code, notes, and snippets.

Jim Counts jamesrcounts

Block or report user

Report or block jamesrcounts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View settings.json
{
"files.autoSave": "afterDelay",
"workbench.colorTheme": "Visual Studio Light",
"cSpell.userWords": [
"Kubernetes",
"kubectl"
],
"workbench.iconTheme": "material-icon-theme",
"window.zoomLevel": 1,
"editor.rulers": [
@jamesrcounts
jamesrcounts / boxstarter.ps1
Created Jan 9, 2019 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# 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:
@jamesrcounts
jamesrcounts / 0.py
Created Jun 11, 2015
Python Challenge 0
View 0.py
url = "http://www.pythonchallenge.com/pc/def/%s.html"
print(url % 2**38)
@jamesrcounts
jamesrcounts / starter.cmd
Last active Mar 11, 2019
Boxstarter: Windows 10
View starter.cmd
# http://boxstarter.org/package/url?
Disable-BingSearch
Disable-GameBarTips
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-WindowsOptionalFeature -Online -FeatureName containers –All
choco install Microsoft-Hyper-V-All -source windowsFeatures
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
@jamesrcounts
jamesrcounts / TortoiseReporter.py
Created Jun 5, 2015
Tortise Text Reporter for Python
View TortoiseReporter.py
from subprocess import call
from approvaltests.Reporter import Reporter
class TortoiseTextReporter(Reporter):
@staticmethod
def get_command(approved_path, received_path):
return ['C:\\Program Files\\TortoiseSVN\\bin\\tortoisemerge.exe', received_path, approved_path]
View node-and-npm-in-30-seconds.sh
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=$HOME/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.com/install.sh | sh
@jamesrcounts
jamesrcounts / RecursiveSquare.java
Created Apr 16, 2015
Recursive Square Attempt
View RecursiveSquare.java
package org.teachingkidsprogramming.section05recursion;
import org.teachingextensions.logo.Tortoise;
public class RecursiveSquare
{
public static void main(String[] args) throws Exception
{
Tortoise.setSpeed(10);
double length = 100.0;
@jamesrcounts
jamesrcounts / starter.cmd
Created Mar 30, 2015
Minimal box starter
View starter.cmd
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
choco install googlechrome
Install-WindowsUpdate
Set-ExecutionPolicy -Force Unrestricted
@jamesrcounts
jamesrcounts / index.html
Last active Aug 29, 2015
Highlight Match Directive
View index.html
<!DOCTYPE html>
<html>
<head>
<title>AngularJS Tutorials</title>
<link rel="stylesheet" href="//cdn.jsdelivr.net/foundation/5.4.7/css/foundation.css">
</head>
<body>
<div ng-app="myApp">
<!-- we've replaced the use of $scope with the preferred "controller as" syntax. see: http://toddmotto.com/digging-into-angulars-controller-as-syntax/-->
View starter.cmd
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
choco install googlechrome
choco install sublimetext2
choco install console2
choco install sourcecodepro
choco install githubforwindows
choco install tortoisemerge
choco install pscx
You can’t perform that action at this time.