View GoDaddy.sh
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
curl -X 'PATCH' \ | |
'https://api.ote-godaddy.com/v1/domains/bestqnypcb.net' \ | |
-H 'accept: application/json' \ | |
-H 'Content-Type: application/json' \ | |
-H 'Authorization: sso-key <removed-for-safey>' \ | |
-d '{ | |
"nameServers": ["ns1.example.com","ns2.example.com"], | |
"consent": { | |
"agreedAt": "2023-02-07T15:12:16.000Z", | |
"agreedBy": "127.0.0.1", |
View doc_store.sql
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
CREATE EXTENSION IF NOT EXISTS plpgsql; | |
CREATE TABLE doc_store ( | |
key text PRIMARY KEY, | |
value json | |
); | |
CREATE OR REPLACE FUNCTION insert_key_value(p_key text, p_value json) | |
RETURNS void AS $$ | |
BEGIN |
View example.ts
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
import YourKnexConnection from './connection'; | |
import Schema from './schema'; | |
import Provider from './provider'; | |
interface User extends Schema { | |
email:string; | |
password:string; | |
} | |
const userProvider = Provider<User>(YourKnexConnection, 'users_table'); |
View doc_store.sql
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
CREATE EXTENSION IF NOT EXISTS plpgsql; | |
CREATE TABLE doc_store ( | |
key text PRIMARY KEY, | |
value json | |
); | |
CREATE OR REPLACE FUNCTION insert_key_value(p_key text, p_value json) | |
RETURNS void AS $$ | |
BEGIN |
View Onboarding.dart
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
class OnboardingScreen extends StatefulWidget { | |
const OnboardingScreen({Key? key}) : super(key: key); | |
@override | |
_OnboardingScreenState createState() => _OnboardingScreenState(); | |
} | |
class _OnboardingScreenState extends State<OnboardingScreen> { | |
final TextEditingController _nameController = TextEditingController(); |
View monitor.sh
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
#!/usr/bin/env bash | |
export SODA_SCRIPTS_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
source ${SODA_SCRIPTS_ROOT}/__echo.sh | |
#### Websocket Setup | |
SERVER_PORT=3333 | |
WS_PIPE=/tmp/_websocket.tmp | |
IN_PIPE=/tmp/_in_websocket.tmp |
View websocket_server.sh
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
#!/usr/bin/env bash | |
IN_PIPE=$1; | |
_hex() { | |
typeset num=`echo 'obase=16; ibase=10; '"$1" | bc` | |
if ((${#num} == 1)); then | |
num=0"$num" | |
fi |
View color_ext.dart
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
// | |
// color.dart | |
// foundation | |
// | |
// Author: Wess Cope (me@wess.io) | |
// Created: 09/16/2021 | |
// | |
// Copywrite (c) 2021 Wess.io | |
// |
View meta.dart
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
import 'dart:convert'; | |
class Meta { | |
Map<String, dynamic> _backing; | |
dynamic get(String key) => _backing[key]; | |
void insert(Map<String, dynamic> data) => _backing = {..._backing, ...data}; | |
Meta set(String key, dynamic value) { | |
_backing[key] = value; |
View provider.dart
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
import 'package:bastion/providers/data.dart'; | |
import 'package:fluentui_system_icons/fluentui_system_icons.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:hive/hive.dart'; | |
import 'package:window_size/window_size.dart'; | |
enum NavOption { | |
converter, | |
profiles, |
NewerOlder