Skip to content

Instantly share code, notes, and snippets.

Christopher MANEU cmaneu

View GitHub Profile
View deploy.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourceNameSuffix": {
"defaultValue": "deployment",
"type": "String"
}
},
"variables": {
@cmaneu
cmaneu / slackWeather.js
Last active Nov 12, 2019
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;
@cmaneu
cmaneu / 0-readme.md
Last active Mar 11, 2019
Station F Containers Demo
View 0-readme.md

Station F - 1001 lives of containers in the cloud

This gist contains my demo script for "1001 lives of containers in the cloud" tech conference.

Demos

  1. Hello Docker
  • Run a simple container
  • Run an Ubuntu Bash
@cmaneu
cmaneu / cheat.md
Last active Mar 7, 2019
MsDevRoadshow - cheat sheet
View cheat.md

main.js - line 57

        scope.rgbColor.g = data.desired.rgbLEDG || 0;
        scope.rgbColor.b = data.desired.rgbLEDB || 0;

State.cs - end of file

        static async Task UpdateRgbLedColor(string state, Microsoft.Azure.Devices.Shared.Twin twin)
        {
            var color = Regex.Split(state, ",");
@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
@cmaneu
cmaneu / content
Created Mar 6, 2018
BoxStarter MSFT
View content
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Update-ExecutionPolicy RemoteSigned
choco install -y Microsoft-Hyper-V-All -source windowsFeatures
choco install -y Microsoft-Windows-Subsystem-Linux -source windowsFeatures
# CommandLine
choco install -y cmder
choco install -y hyper
View gist:0dc083ab18a9714308efff4f247519b6
choco install googlechrome
choco install adobereader
choco install firefox
choco install winrar
choco install vlc
choco install visualstudiocode
choco install office365business
@cmaneu
cmaneu / Brewfile
Last active Jul 31, 2017
Xamarin Mac Automated Setup
View Brewfile
# Taps
tap 'caskroom/cask'
tap 'caskroom/fonts'
# Install ZSH
brew 'zsh'
brew 'zsh-completions'
# Install GNU core utilities (those that come with macOS are outdated)
brew 'coreutils'
@cmaneu
cmaneu / .editorconfig
Created Jul 27, 2017
My EditorConfig
View .editorconfig
root = true
[*.cs]
# http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#csharp_indent_block_contents
csharp_indent_block_contents = true
# http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#csharp_indent_braces
csharp_indent_braces = false
# http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#csharp_indent_case_contents
@cmaneu
cmaneu / faq.md
Last active Apr 18, 2017
FAQ Scubabous
View faq.md

Questions fréquentes Scubabous

Inscription

Comment s'inscrire aux scubabous ?

Vous pouvez vous inscrire directement en ligne, sur le site des Scubabous (http://scubabous.fr).

Quels documents sont nécessaires pour l'inscription à la plongée ?

Il vous faut les documents suivantes:

  • La fiche d'inscription, remplie en ligne,
You can’t perform that action at this time.