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
| version: "3.8" | |
| services: | |
| db: | |
| image: postgres | |
| environment: | |
| - POSTGRES_DB=postgres | |
| - POSTGRES_USER=dbuser | |
| - POSTGRES_PASSWORD=dbpass | |
| ports: |
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 | |
| G91 ;Relative positioning | |
| G1 E-2 F2700 ;Retract a bit | |
| G1 E-2 Z0.2 F2400 ;Retract and raise Z | |
| G1 X5 Y5 F3000 ;Wipe out | |
| G1 Z10 ;Raise Z more | |
| G90 ;Absolute positionning | |
| G1 X0 Y{machine_depth} ;Present print | |
| M106 S0 ;Turn-off fan |
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 for Ultimate2 (150S)****) | |
| M104 S170 | |
| G28 ; Home extruder | |
| G1 Z140 F300 | |
| G28 Z | |
| G29 | |
| G1 Z15 F100 | |
| M107 ; Turn off fan | |
| G90 ; Absolute positioning | |
| M82 ; Extruder in absolute mode |
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
| [Unit] | |
| Description=MJPG Streamer Service. | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| Restart=always | |
| User=linaro | |
| WorkingDirectory=/home/linaro/dev/repos/github/mjpg-streamer/mjpg-streamer-experimental | |
| ExecStart=/usr/local/bin/mjpg_streamer -i "input_uvc.so -d /dev/video4 -r 1280x720 -f 30" -o "output_http.so -w ./www" |
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
| # use https://github.com/lambci/docker-lambda to simulate a lambda environment | |
| docker run -it --rm --entrypoint bash -e ODBCINI=/opt/odbc.ini -e ODBCSYSINI=/opt/ lambci/lambda:build-python3.7 | |
| # download and install unixODBC | |
| # http://www.unixodbc.org/download.html | |
| curl ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.7.tar.gz -O | |
| tar xzvf unixODBC-2.3.7.tar.gz | |
| cd unixODBC-2.3.7 | |
| ./configure --sysconfdir=/opt --disable-gui --disable-drivers --enable-iconv --with-iconv-char-enc=UTF8 --with-iconv-ucode-enc=UTF16LE --prefix=/opt |
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
| @echo off | |
| pushd %~dp1 | |
| rd current | |
| mklink /J current %~nx1 | |
| popd |
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
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/sha256" | |
| "fmt" | |
| "hash" | |
| "golang.org/x/crypto/nacl/secretbox" | |
| "golang.org/x/crypto/pbkdf2" |
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
| @echo off | |
| setlocal EnableDelayedExpansion | |
| for %%x in (%*) do ( | |
| set searchQ=!searchQ!+%%x | |
| ) | |
| set q=%searchQ:~1% | |
| REM echo %q% | |
| start www.google.com/search?q=%q% |
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 * as Bluebird from 'bluebird'; | |
| export type PromiseGenerator<T> = ((T) => Bluebird<T>); | |
| export class PromisePipeline<T> { | |
| private generators: Array<PromiseGenerator<T>> | |
| private scope: T | |
| constructor(generators: Array<PromiseGenerator<T>>, scope: T) { | |
| this.generators = generators; | |
| this.scope = scope; |
NewerOlder