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
| ; -- START GCODE -- | |
| G21 ;set units to millimetres | |
| G90 ;set to absolute positioning | |
| M106 S0 ;set fan speed to zero (turned off) | |
| G28 X Y ;home all axis | |
| M420 S1 ;turn on mesh bed levelling if enabled in firmware | |
| G92 E0 ;zero the extruded length | |
| G1 Z1 F1000 ;move up slightly | |
| G1 X5 Y60.0 Z0 E9.0 F1000.0;intro line | |
| G1 Y100.0 E21.5 F1000.0 ;continue line |
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
| #-------------------------------------------------------------------- | |
| ######### Printer type setting ################################## | |
| #mainboard firmware setting(marlin:1; repetier:2; smoothie:3) | |
| >cfg_firmware_type:1 | |
| #machine setting (Normal:1; Delta:2) | |
| >cfg_machine_type:1 | |
| #baud rate (9600:1; 57600:2; 115200:3; 250000:4) |
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
| .then(function(response) {return response.json();}).then(function(myJson) {console.log(myJson);}); | |
| function selectElementContents(el) { | |
| var body = document.body, range, sel; | |
| if (document.createRange && window.getSelection) { | |
| range = document.createRange(); | |
| sel = window.getSelection(); | |
| sel.removeAllRanges(); | |
| try { | |
| range.selectNodeContents(el); |
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
| #must read | |
| # https://www.compose.com/articles/using-bucardo-5-3-to-migrate-a-live-postgresql-database/ | |
| # https://www.sqlgossip.com/configure-bucardo-replication-centos/ | |
| # https://www.srijn.net/2015/09/postgresql-replication-using-bucardo/ | |
| 5324 ## Can we do this the easy way? Thanks to Jan for srr! | |
| 5325 my $dbname = $db->{name}; | |
| 5326 if ($dbh->{pg_server_version} >= 80300) { | |
| 5327 $self->glog("Setting session_replication_role to replica for database $dbname", LOG_VERBOSE); |
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
| set nocompatible " Use Vim defaults (much better!) | |
| set bs=indent,eol,start " allow backspacing over everything in insert mode | |
| set viminfo='20,\"50 " read/write a .viminfo file, don't store more | |
| " than 50 lines of registers | |
| set history=50 " keep 50 lines of command line history | |
| set ruler " show the cursor position all the time | |
| set hlsearch | |
| filetype plugin on |
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
| 'body': | |
| '': 'core:save-as' | |
| 'atom-workspace atom-text-editor': | |
| 'ctrl-backspace': 'editor:delete-to-previous-word-boundary' | |
| 'ctrl-delete': 'editor:delete-to-next-word-boundary' | |
| 'atom-text-editor': | |
| 'ctrl-i': 'editor:auto-indent' |
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
| wget "https://raw.githubusercontent.com/npocmaka/batch.scripts/master/hybrids/.net/c/screenCapture.bat" -O screenCapture.bat | |
| chmod a+x screenCapture.bat | |
| #capture from cron didn't work because the windows session connected to a different session from the desktop user | |
| cat > capture.sh <<'EOF' | |
| #!/bin/bash | |
| DIR=`date +"%Y/%m/%d"`; | |
| FILE=`date +"%Y%m%d-%H%M%S"`; | |
| mkdir -p "$HOME/screenCapture/$DIR"; |
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
| ICACLS * /T /Q /C /RESET |
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
| # For more information on configuration, see: | |
| # * Official English Documentation: http://nginx.org/en/docs/ | |
| # * Official Russian Documentation: http://nginx.org/ru/docs/ | |
| user nginx; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log; | |
| pid /run/nginx.pid; | |
| # Load dynamic modules. See /usr/share/nginx/README.dynamic. |
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
| aws ec2 describe-instances --query 'Reservations[*].Instances[*].[PublicDnsName, Tags[?Key==`Name`].Value]' --region=us-east-1 --output text |