This file contains hidden or 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/sh | |
exec socat UNIX-LISTEN:/var/run/docker.sock,fork,group=docker,umask=007 EXEC:"npiperelay.exe -ep -s //./pipe/docker_engine",nofork |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2018-12-20T17:30:53.9213074</Date> | |
<Author>Carlin Scott</Author> | |
<URI>https://gist.github.com/carlin-q-scott</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<EventTrigger> | |
<Enabled>true</Enabled> |
This file contains hidden or 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
/* | |
This function will list all of the functions on an HTML DOM Element that are non-standard. | |
temp0 is set by the Firefox Inspector when you right click on an element and choose "use in console"; | |
You need to do that before running this script. | |
*/ | |
var functionList = ""; | |
var element = document.createElement('div'); | |
for(var p in temp0){ |
This file contains hidden or 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
whois `nslookup facebook.com | grep Address | cut -d$'\n' -f 2 | cut -d ' ' -f 2` | grep CIDR | grep -o | |
'[^ ]*$' |
This file contains hidden or 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
curl "https://www.recreation.gov/api/camps/availability/campground/234485/month?start_date=2019-07-01T00"%"3A00"%"3A00.000Z" -H "Accept: application/json, text/plain, */*" --compressed |
This file contains hidden or 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
# This script will download all the photos owned by a group from Facebook. | |
require 'json' | |
require 'selenium-webdriver' | |
if ARGV.length != 3 | |
print "please provide all the command arguments: {facebook group id} {first photo to download, often '1'} {last photo to download}" | |
exit 1 | |
end |
This file contains hidden or 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
//Using S3.php from https://github.com/tpyo/amazon-s3-php-class. Place it in includes/helpers | |
//Replaces Sendy's includes/create/upload.php | |
<?php | |
include('../functions.php'); | |
include('../login/auth.php'); | |
require_once('../helpers/S3.php'); | |
//Init | |
$file = $_FILES['file']['tmp_name']; |
This file contains hidden or 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
@page "/robots.txt" | |
@{ | |
Layout = null; | |
Response.ContentType = "text/plain"; | |
} | |
@using Microsoft.AspNetCore.Hosting | |
@inject IHostingEnvironment env | |
User-agent: * | |
@if (env.IsProduction()) | |
{ |
This file contains hidden or 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
These are regular expressions for finding and replacing ASP.NET HTML Helpers with tag-helpers. | |
This could probably be combined with the pagify.py script to run all of these automatically. | |
@Html.LabelFor\(model => model.([\w_]+), htmlAttributes: new { @class = ("[^"]+") }\) | |
<label asp-for="$1" class=$2></label> | |
@Html.LabelFor\(model => model.([\w_]+), "([^"]+)", htmlAttributes: new { @class = ("[^"]+") }\) | |
<label asp-for="$1" class=$3>$2</label> | |
@Html.EditorFor\(model => model.([\w_]+), new { htmlAttributes = new { @class = ("[^"]+") } }\) |
This file contains hidden or 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
Regular Expression | |
Replacement | |
col-(\w\w)-(pull|push)-(\d+) | |
order-$1-$3 | |
col-(\w\w)-offset-(\d+) | |
offset-$1-$2 | |
hidden-xs |