Skip to content

Instantly share code, notes, and snippets.

View hyeomans's full-sized avatar
🏠
Working from home

Hector Yeomans hyeomans

🏠
Working from home
View GitHub Profile
@hyeomans
hyeomans / gist:8016133
Created December 18, 2013 01:56
Creating a symlink for folders in Windows
Open VS CMD I don't know why in powershell doesn't work
mklink /D "C:\Users\Steve\Documents\Dropbox\DesiredFolder" "C:\Path\To\DesiredFolder"
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Update-ExecutionPolicy Unrestricted
cinst IIS-WebServerRole -source windowsfeatures
cinst IIS-HttpCompressionDynamic -source windowsfeatures
cinst IIS-ManagementScriptingTools -source windowsfeatures
cinst IIS-WindowsAuthentication -source windowsfeatures
; Change your hotkey here
^1::
DetectHiddenWindows, on
IfWinExist ahk_class Console_2_Main
{
IfWinActive ahk_class Console_2_Main
{
WinHide ahk_clasas Console_2_Main
WinActivate ahk_class Shell_TrayWnd
# http://boxstarter.org/package/url?
#####################
# BEGIN CONFIGURATION
#####################
#region Initial Windows Config
Install-WindowsUpdate -AcceptEula
Update-ExecutionPolicy Unrestricted
@hyeomans
hyeomans / bst.cs
Created August 29, 2014 23:40
Binary Search Tree
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Trees
{
class Program
{
var logs=document.getElementById('logs');
function logIt(msg){
var e=document.createElement('div');
e.innerHTML=msg;
logs.insertBefore(e,logs.firstChild);
}
@hyeomans
hyeomans / app.js
Created July 7, 2015 23:35
Using regex to obtain language from url
var express = require('express')
, app = express();
app.get(/\/?(\w{2}-\w{2})?\/details/gi, function(req, res) {
res.send('Hola mundo from:', req.params[0]);
});
var server = app.listen(3000, function () {
var host = server.address().address;
@hyeomans
hyeomans / windows.h__.js
Created August 26, 2016 03:34
windows.h.js INFINITY
var ffi = require('ffi'),
ref = require('ref'),
Struct = require('ref-struct'),
Library = require('./Library'),
Type = ref.Type,
NULL = ref.NULL,
isNull = ref.isNull;
var groups = ['libs', 'types', 'structs', 'callbacks', 'enums'];
@hyeomans
hyeomans / gist:f185818e4ccb1dfc0105f5b72505af45
Created September 3, 2016 04:56
Instructions for configuring lostgres for localhost:5433 access on a vagrant ubuntu lucid32 image
# bring up the vagrant box
vagrant up
=> [default] Importing base box 'lucid32'...
# ssh into the vagrant box
vagrant ssh
=> Linux lucid32 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012 i686...
# take special note of the ip address of your host machine that ssh reports here
# in my case it is 10.0.2.2, a value that I will use later to allow connections
@hyeomans
hyeomans / ReadOnlyPropertyInterface
Created October 5, 2016 19:54
Resharper templates
$TYPE$ $NAME$ { get; }