Skip to content

Instantly share code, notes, and snippets.

View jinwood's full-sized avatar

Julian Inwood jinwood

  • Dorset, UK
View GitHub Profile
@jinwood
jinwood / WordsWithEnemies.cs
Created January 26, 2015 20:56
Words With Enemies Solution
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WordsWithEnemies
{
class Program
@jinwood
jinwood / Disemvoweler.cs
Created January 26, 2015 21:08
Disemvoweler
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disemvoweler
{
class Program
{
SELECT
t.NAME AS TableName,
s.Name AS SchemaName,
p.rows AS RowCounts,
SUM(a.total_pages) * 8 AS TotalSpaceKB,
SUM(a.used_pages) * 8 AS UsedSpaceKB,
(SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB
FROM
sys.tables t
INNER JOIN
import requests
import csv
import os
import sys
from lxml import etree
try:
postcode = sys.argv[1]
except:
print "you need to enter a postcode silly!"
@jinwood
jinwood / .bash
Created September 26, 2015 08:40
Install 32bit libs on 64bit linux os
sudo apt-get install ia32-libs
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL=""
CORRECT_NAME=""
CORRECT_EMAIL=""
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@jinwood
jinwood / boxstarter.ps1
Last active October 3, 2017 15:05 — 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:
@jinwood
jinwood / Client.cs
Created March 15, 2018 13:56 — forked from robertripoll/README.md
Telnet Server C#
using System;
using System.Net;
namespace TelnetServer
{
public enum EClientStatus
{
/// <summary>
/// The client has not been
/// authenticated yet.
#View all conflicts in merge
git diff --name-only --diff-filter=U
@jinwood
jinwood / ting.js
Created June 25, 2019 21:54
Array ting
console.log('hello');
const data = [
{
id: 1,
country: [
{ id: '5a60626f1d41c80c8d3f8a85' },
{ id: '5a6062661d41c80c8b2f0413' }
]
},