Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher MANEU cmaneu

View GitHub Profile
@cmaneu
cmaneu / MainWindow.xaml.cs
Created Jan 21, 2014
"Monkey testing" for Windows Phone emulator
View MainWindow.xaml.cs
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 Mar 17, 2021
Slack slackbot send weather forecast
View slackWeather.js
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;
View gist:f251f3c0b21dbf7e785d
# 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 Aug 29, 2015
Jenkins Windows CI Server setup
View gist:102318f21b9710c9a8ce
@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 Aug 29, 2015
Lumia Phones - devices per resolution
View lumiaPhonesResolution.md

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)

View gist:714b71d743a36fbc8137
# 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 Sep 30, 2016
keybase.md
View 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:

View medium.cs
public class Demo
{
public void DoThings()
{
int i = 2;
i++;
}
}
View 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 Oct 5, 2018
MSFT Setup machine
View chocoSetup.ps1
# 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