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
// base | |
export interface MyThing { | |
name: string; | |
} | |
// first type of calcs for base | |
export interface MyThingCalcA { | |
calcA: number; | |
} |
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
# Using NPM | |
npx npm-check-updates -i '/@?aws-amplify/' && npm update |
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
Copied from Quasar Discord | |
gitlab CI for deploying a quasar app to gitlab | |
# Modified from https://knasmueller.net/vue-js-on-gitlab-pages | |
pages: | |
image: node:latest | |
stage: deploy | |
script: | |
- npm install -g @quasar/cli | |
- npm install --progress=false |
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
echo "upload_max_filesize = \"250M\"" >> ~/apps/wordpress/htdocs/.user.ini | |
echo "post_max_size = \"250M\"" >> ~/apps/wordpress/htdocs/.user.ini | |
sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 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
public class Example | |
{ | |
public WebServiceResponseObject CallWebService() | |
{ | |
var client = new YourWebserviceClient(); | |
try | |
{ | |
client.Open(); |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Text; | |
namespace EFExtensions |
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
/// <summary> | |
/// DateTime for EST | |
/// </summary> | |
/// <returns>EST</returns> | |
public static DateTime LocalDateTime() | |
{ | |
var timeUtc = DateTime.UtcNow; | |
DateTime easternTime = TimeZoneInfo.ConvertTimeFromUtc(timeUtc, EasternTimeZone()); | |
return easternTime; | |
} |
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
//Searches solution for all assemblies | |
public static class AppAssemblies | |
{ | |
public static IEnumerable<Assembly> AsEnumerable() | |
{ | |
string baseDirectory = AppDomain.CurrentDomain.BaseDirectory; | |
foreach (Assembly assembly in Directory.GetFiles(baseDirectory) | |
.Where(x => Path.GetExtension(x).Equals(".dll", StringComparison.OrdinalIgnoreCase)) | |
.Select(Assembly.LoadFrom)) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; | |
using AtlanticBT.Core.Logging; | |
using AtlanticBT.Core.Logging.Models; | |
using log4net.Appender; | |
using log4net.Core; |
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
// Snippet of what needs added to the Fiddler2 script to add a fake CloudFront-Viewer-Country value on all requests. | |
// The "..."'s indicate hidden code to highlight what needs added. | |
// This is for testing locally. | |
class Handlers | |
{ | |
... | |
// Create CloudFront-Viewer-Country header setting in "Rules" main nav |
NewerOlder