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
; Ender 3 Custom Start G-code | |
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature | |
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature | |
M104 S160; start warming extruder to 160 | |
G28 ; Home all axes | |
G29 ; Auto bed-level (BL-Touch) | |
G92 E0 ; Reset Extruder | |
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature | |
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position | |
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature |
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
<?php | |
namespace Appwrite\Auth; | |
class Metamask extends OAuth2 | |
{ | |
/** | |
* @return string | |
*/ | |
public function getName(): string |
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 |
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
# ~/.bashrc or ~/.zshrc | |
# Direnv setup | |
eval "$(direnv hook bash)" # or 'zsh' if you're using zsh | |
# Asdf setup (assuming you've set up asdf as per its documentation) | |
. $HOME/.asdf/asdf.sh | |
# Custom 'use' command for direnv | |
use_asdf() { |
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
FROM phpswoole/swoole:php8.1 | |
RUN apt-get update && \ | |
apt-get install -y -q \ | |
apt-utils \ | |
zsh \ | |
nano \ | |
vim \ | |
make \ | |
locales \ |
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
; CR-1 Custom Start G-code | |
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature | |
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature | |
M104 S160; start warming extruder to 160 | |
G28 ; Home all axes | |
G29 ; Auto bed-level (BL-Touch) | |
G92 E0 ; Reset Extruder | |
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature | |
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position | |
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature |
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", |
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 |
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'); |
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 |
NewerOlder