Skip to content

Instantly share code, notes, and snippets.

View cmpunches's full-sized avatar
💭
Underestimating me saves me work.

Chris Punches cmpunches

💭
Underestimating me saves me work.
View GitHub Profile
public void DoUpload()
{
IgnoreBadCertificates();
using (WebClient Client = new WebClient())
{
INI Settings = new INI("settings.ini");
// this method in powershell:
// $WR = Invoke - WebRequest $uri - Method $HTTP_COMMAND - ContentType "application/octet-stream" - InFile $localpath - headers $headers - EA Stop - EV e
class AClassNamedLambda
{
public bool enabled;
public string Zone { get; set; }
public string JOBID { get; set; }
public AClassNamedLambda(INI Settings, string localZone)
{
// need the zone in the constructor to create the object
Zone = Settings.Read(localZone, "Zone");
JOBID = Settings.Read(localZone, "jobid");
private static List<lambda> GetZonesFrom(INI Settings)
{
List<lambda> RetVal;
string[] LambdaString = Settings.Read("LambdaIndex", "Lambdas").Split(',');
foreach (string LambdaDefinition in LambdaString)
{
RetVal.Add(new lambda(Settings, LambdaDefinition));
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
namespace cli_20150929
namespace cli_20150929
{
class Program
{
static void Main(string[] args)
{
// load the INI file
INI Settings = new INI("settings.ini");
if (Settings.KeyExists("Config", "VERSION"))
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;
namespace cli_20150929
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@cmpunches
cmpunches / It Works!
Last active September 29, 2015 07:42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;
namespace cli_20150929
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;