Skip to content

Instantly share code, notes, and snippets.

View S1r-Lanzelot's full-sized avatar
⛷️

John Lanz S1r-Lanzelot

⛷️
  • International Ski and Snowboard Federation
  • Hünibach, Switzerland
  • 22:17 (UTC +02:00)
View GitHub Profile
@Stygy
Stygy / SetBuildNumber.ps1
Last active April 21, 2022 18:02
This powershell is being used as a Teamcity Build Step that sets the BuildNumber as Date.Counter (i.e 2018.02.02.1) and resets counter everyday. In collaboration with @axelwass
#$teamcityUser = '%teamcity.api.username%'
#$teamcityPass = '%teamcity.api.password%'
#$teamcityUrl = '%teamcity.api.url%'
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
$teamcityUser = '****'
$teamcityPass = '****'
$teamcityUrl = 'yadayada.com'
$buildId = '123456'
$projectId = 'ProjectId'
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active June 29, 2024 23:24
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@camieleggermont
camieleggermont / UpdateIISExpressCertificate.ps1
Last active May 22, 2024 09:08
This powershell script generates a new certificate, removes the old certificate assignments from the IISExpress ssl ports and adds the newly generated one. The certificate is also copied over to the Trusted Root Certificate Authorities.
$cert = New-SelfSignedCertificate -DnsName "localhost", "localhost" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(5)
$thumb = $cert.GetCertHashString()
For ($i=44300; $i -le 44399; $i++) {
netsh http delete sslcert ipport=0.0.0.0:$i
}
For ($i=44300; $i -le 44399; $i++) {
netsh http add sslcert ipport=0.0.0.0:$i certhash=$thumb appid=`{214124cd-d05b-4309-9af9-9caa44b2b74a`}
}
@dansiegel
dansiegel / README.md
Last active June 29, 2018 21:40
MVVM Loading ViewModel for Design Time

Overview

The purpose of this Gist is to help provide a workaround to load a ViewModel into a Xamarin Forms View following a MVVM pattern that dynamically loads the ViewModel such as Prism. This example will be based on the use of such a project.

Getting Started

To Start Create a Build Profile in your Solution and any project containing your Views that you can use for Design Time. The name doesn't really matter, but for the purposes of this example we'll simply call it Design. You may need to do some tweaking, but the most critical is that your project containing your Views and ViewModel's should be mapped to use the Design Build Profile when using the Solution's Build Profile. The Unit Tests do not have to be built in this profile but they can depending on your needs.

Next edit the build properties for the solution containing those Views and ViewModels. You will want to define a new Compiler constant. If you copied the Debug profile you should see constants already defined like DEBUG;TRACE;.

Binding Java 8 Interfaces from C♯

Help wanted! :-)

Background

Xamarin.Android binds the Android Java API, which means that all Java language features need to be "bound" to corresponding C# language features. For many language constructs, this binding is simple, e.g. type names are (usually) unchanged and identical, while other language features are changed in subtle

@JonDouglas
JonDouglas / xamarinandroidbindings.md
Last active March 12, 2024 10:36
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:

@sdieunidou
sdieunidou / rabbitmq.txt
Created October 22, 2015 19:51
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
@stormchasing
stormchasing / Auto Check-In to Southwest Flights.user.js
Last active April 17, 2024 00:04
Auto Check-In to Southwest Flights.user.js
// ==UserScript==
// @name Auto Check-In to Southwest Flights
// @namespace http://www.ryanizzo.com/southwest-auto-check-in/
// @version 1.8
// @author Nicholas Buroojy (http://userscripts.org/users/83813)
// @contributor Ryan Izzo (http://www.ryanizzo.com)
// @contributor JR Hehnly (http://www.okstorms.com @stormchasing)
// @contributor Trevor McClellan (github.com/trevormcclellan)
// @description Automatically check in to Southwest Airline flights at the appropriate time.
// @include https://www.southwest.com/air/check-in/index.html*
@h4cc
h4cc / elixir_symbols.md
Last active March 25, 2024 13:00
All symbols used in the elixir programming language

Symbols used in Elixir

A list of all not symbols and notations of elixir. Tried to have a base for comparision for other programming languages.

Operators

  • === (strict)
  • !== (strict)
  • == (relaxed)
@rxaviers
rxaviers / gist:7360908
Last active July 2, 2024 20:15
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: