This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#You need to add a .git-ftp-ignore file with nested modules | |
#Example: | |
#moodle/mod/hvp/.git-ftp-ignore: | |
# editor | |
# library | |
# reporting | |
FTP_USER=john | |
FTP_PASSWORD=doe | |
FTP_HOST=tatooine.com | |
FTP_PATH=var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param([string]$room,[string]$exec) | |
for ($i =1;$i -ile 5; $i++) { | |
$target = $("INF-"+$room+"-M5" + "{0:00}" -f $i) | |
#ping -n 1 -w 5 $target > $null; | |
#$status = "NETWORK DOWN" | |
#if ($lastexitcode -eq 0){ | |
# $status ="NETWORK OK"} | |
#echo $($target + " -> " + $status) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 Install DEPS | |
#One meta package | |
pacman -S base-devel | |
#Then install the following | |
mono | |
mono-msbuild | |
mono-tools | |
libglade | |
cmake | |
referenceassemblies-pcl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub/Azure devops Links | |
// @namespace http://github.com/jonathanMelly | |
// @author jmy | |
// @version 1.0 | |
// @description Link to azure devops work items from Github | |
// @match https://github.com/** | |
// @run-at document-end | |
// @noframes | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# rev4 - changes suggested by KownBash https://www.reddit.com/r/bash/comments/5cxfqw/i_wrote_a_simple_video_to_gif_bash_script_thought/da19gjz/ | |
# Usage function, displays valid arguments | |
usage() { echo "Usage: $0 [-f <fps, defaults to 15>] [-w <width, defaults to 480] inputfile" 1>&2; exit 1; } | |
# set input variable to the first option after the arguments | |
input="${1}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//ck editor config | |
//config.extraPlugins = 'uploadimage'; | |
//config.imageUploadUrl='/upload/upload.php'; | |
$maxSizeInMo=50; | |
$csrfName = "ckCsrfToken"; | |
$token = $_POST[$csrfName]; | |
$uploadKey = "upload"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace WeatherTwentyOne; | |
courtesy of : https://github.com/davidortinau/WeatherTwentyOne/blob/main/src/WeatherTwentyOne/Services/ServiceExtensions.cs | |
public static class ServiceProvider | |
{ | |
public static TService GetService<TService>() | |
=> Current.GetService<TService>(); | |
public static IServiceProvider Current | |
=> |