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
# Import Chat completion template and set-up variables | |
import sys | |
import openai | |
import urllib.parse | |
openai.api_key = "EMPTY" # Key is ignored and does not matter | |
openai.api_base = "http://34.132.127.197:8000/v1" # This is valid, keep this value | |
# Report issues | |
def raise_issue(e, model, prompt): |
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
; Ender 3 Custom End G-code | |
M400 ; Wait for current moves to finish | |
M220 S100 ; Reset Speed factor override percentage to default (100%) | |
M221 S100 ; Reset Extrude factor override percentage to default (100%) | |
G91 ; Set coordinates to relative | |
G1 F2400 E-3 ; Retract filament 3mm at 40mm/s to prevent stringing | |
G0 F5000 Z20 ; Move Z Axis up 20mm to allow filament ooze freely | |
G90 ; Set coordinates to absolute | |
G0 X0 Y235 F5000 ; Move Heat Bed to the front for easy print removal | |
M84 ; Disable stepper motors |
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
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Creates the required resources to use as the state backend for Terraform | |
Parameters: | |
AccountId: | |
Type: Number | |
Description: The AWS Account Number | |
BucketName: | |
Type: String | |
Description: The Bucket Name for the S3 bucket to store the state |
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
######################################################################## | |
# Variables # | |
######################################################################## | |
PARAMS= # Dummy variables to pass commands to TF | |
PROJECT_DIR=$(shell pwd) | |
KUBE_CLUSTER_NAME=terraform-eks-demo | |
TERRAFORM_DIR=$(PROJECT_DIR) | |
BACKEND_CONF_PATH = $(TERRAFORM_DIR)/config/aws-personal-eks.conf |
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
# Colors -- https://www.linuxjournal.com/article/8603 | |
BLACK = "\\033[30m" | |
RED = "\\033[31m" | |
GREEN = "\\033[32m" | |
YELLOW = "\\033[33m" | |
BLUE = "\\033[34m" | |
MAGENTA = "\\033[35m" | |
CYAN = "\\033[36m" | |
WHITE = "\\033[37m" | |
END = "\\033[0m" |
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
provider "aws" { | |
region = "us-east-1" | |
version = "~> 2.0" | |
} | |
data "aws_region" "current" {} | |
data "aws_caller_identity" "caller" {} | |
locals { | |
module_name = "api_gateway" |
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
const Promise = require('bluebird'); | |
const retry = require('bluebird-retry'); | |
class AuthError extends Error { | |
constructor(message) { | |
super(message); | |
} | |
} | |
let count = 0; |
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
var _objectToQueryString = function(object) { | |
if(!object) { | |
return ''; | |
} | |
if(_.isEmpty(object)) { | |
return ''; | |
} | |
var queryString = '?'; |
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 System; | |
using System.Net.Mail; | |
namespace Client.Project.Repository.Services | |
{ | |
public class DefaultEmailProvider : IEmailProvider | |
{ | |
private const int DEFAULT_PORT = 25; | |
private readonly int _smptServerPort; |
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
mongodump —out /home/node/data-backups/`date “+%Y-%m-%d-TIME-%H-%M-%S”` |
NewerOlder