Skip to content

Instantly share code, notes, and snippets.

View cmaneu's full-sized avatar

Christopher MANEU cmaneu

View GitHub Profile
@cmaneu
cmaneu / MainWindow.xaml.cs
Created January 21, 2014 15:11
"Monkey testing" for Windows Phone emulator
using System;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading;
using System.Drawing;
using System.Windows;
using Point = System.Drawing.Point;
namespace GremlinsForWindowsPhone
@cmaneu
cmaneu / slackWeather.js
Last active January 19, 2024 19:59
Slack slackbot send weather forecast
var request = require("request");
// The Cities IDs can be found on openweathermap.org (make a search, and look the URI)
var cities = [2988507, 5391959];
var slackBotUri = ""; // TODO: Complete
request("http://api.openweathermap.org/data/2.5/group?id="+cities.join(',')+"&units=metric ", function(error, response, body) {
// Maybe we can handle this differently/better ?
if(error != null)
return;
@cmaneu
cmaneu / gist:f251f3c0b21dbf7e785d
Last active August 29, 2015 14:09
Boxstarter script
# BoxStarter script
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart
# Basic stuff
choco install GoogleChrome
choco install vlc
choco install skype
@cmaneu
cmaneu / gist:102318f21b9710c9a8ce
Last active August 29, 2015 14:11
Jenkins Windows CI Server setup
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
choco install git
choco install git.install
choco install poshgit
choco install jenkins
@cmaneu
cmaneu / lumiaPhonesResolution.md
Last active August 29, 2015 14:11
Lumia Phones - devices per resolution

WVGA (480 × 800)

  • Lumia 520 - 4"

HD 720p (1280 x 720)

  • Lumia 830 - 5"
  • Lumia 735 - 4,7"
  • Lumia 1320 - 6"

qHD (960 x 540)

@cmaneu
cmaneu / gist:714b71d743a36fbc8137
Last active August 29, 2015 14:12
Jenkins MSbuild
# Boxstarter OS options
#Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
#Enable-RemoteDesktop
#Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart
# System tools
choco install sysinternals
choco install git.install
choco install git-credential-winstore
choco install poshgit
@cmaneu
cmaneu / keybase.md
Last active September 30, 2016 14:32
keybase.md

Keybase proof

I hereby claim:

  • I am cmaneu on github.
  • I am cmaneu (https://keybase.io/cmaneu) on keybase.
  • I have a public key ASBVg-2YMc0DhEei3GwrSVLSfMInwci0iWh_TiAQKacAKAo

To claim this, I am signing this object:

public class Demo
{
public void DoThings()
{
int i = 2;
i++;
}
}
@cmaneu
cmaneu / AdminDeployment.xml
Created November 3, 2016 16:33
AdminDeployment.xml
<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment">
<BundleCustomizations TargetDir="C:\Program Files (x86)\Microsoft Visual Studio 14.0" NoCacheOnlyMode="default" NoWeb="default" NoRefresh="default" SuppressRefreshPrompt="default" Feed="default" />
<SelectableItemCustomizations>
<SelectableItemCustomization Id="VSUV3RTMV1" Hidden="no" Selected="yes" FriendlyName="Visual Studio 2015 Update 3" />
<SelectableItemCustomization Id="MicroUpdateV3.1" Selected="yes" FriendlyName="Update for Microsoft Visual Studio 2015 (KB3165756)" />
<SelectableItemCustomization Id="WebToolsV1" Hidden="no" Selected="yes" FriendlyName="Microsoft Web Developer Tools" />
<SelectableItemCustomization Id="GitForWindowsx64V4" Hidden="no" Selected="yes" FriendlyName="Git for Windows" />
<SelectableItemCustomization Id="GitForWindowsx86V4"
@cmaneu
cmaneu / chocoSetup.ps1
Last active October 5, 2018 01:33
MSFT Setup machine
# base machine tools
choco install -y firacode
choco install -y vlc
choco install -y googlechrome
choco install -y izarc
choco install -y adobereader
choco install -y keepass.install
# admin tools
choco install -y sysinternals