View End gcode in Cura machine settings
M104 S0 ;extruder heater off | |
M140 S0 ; turn off bed | |
G91 ;relative positioning | |
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure | |
G1 Z+5 E-5 X-20 Y-20 F{speed_travel} ;move Z up a bit and retract filament even more | |
G28 X ; home x axis | |
G90 ;absolute positioning | |
G1 Y180 ; move platform forward for access | |
M84 ;steppers off |
View gist:c725fd4bc2d51c994da1b27b9ec19ae9
nix-repl> stdenv = import <nixpkgs> {} | |
nix-repl> b = stdenv.lib.subtractLists stdenv.lib.platforms.i686 stdenv.lib.platforms.unix | |
nix-repl> builtins.trace b b | |
trace: [ { kernel = { families = { bsd = <CODE>; }; }; } { kernel = { families = { darwin = <CODE>; }; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "linux"; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "solaris"; }; } { abi = { _type = "abi"; name = "cygnus"; }; kernel = <CODE>; } ] | |
[ { ... } { ... } { ... } { ... } { ... } ] | |
nix-repl> builtins.trace stdenv.lib.platforms.unix stdenv.lib.platforms.unix | |
trace: [ { kernel = { families = { bsd = <CODE>; }; }; } { kernel = { families = { darwin = <CODE>; }; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "linux"; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; fa |
View gist:4d8c4ced79742c47d01586078f00dbea
[root@nixos:~/nixpkgs]# nixos-version | |
19.03pre159472.80738ed9dc0 (Koi) | |
[root@nixos:~/nixpkgs]# git rev-parse HEAD | |
6f2475f5bf14963e6f8bdce7bbdc15d7ce7640e1 | |
[root@nixos:~/nixpkgs]# nixos-rebuild -I nixpkgs=/root/nixpkgs switch --show-trace | |
building Nix... | |
building the system configuration... | |
trace: version 19.03.git.6f2475f does not appear in name nixos-version |
View hardware-configuration.nix
# Do not modify this file! It was generated by ‘nixos-generate-config’ | |
# and may be overwritten by future invocations. Please make changes | |
# to /etc/nixos/configuration.nix instead. | |
{ config, lib, pkgs, ... }: | |
{ | |
imports = | |
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | |
]; |
View activity.py
from pyswfaws.datastores import * | |
from pyswfaws.serializers import * | |
from pyswfaws.decorators import * | |
from pyswfaws.activityworker import * | |
from pyswfaws.decisionworker import * | |
@activity_task(swf_domain='test', swf_task_type='TestActivityA', swf_task_version='1.0', | |
swf_task_list='task_list', | |
input_data_serializer=JsonSerializer(), input_data_store=SwfDataStore(), | |
result_data_serializer=JsonSerializer(), result_data_store=SwfDataStore()) |
View gist:d4f60aa00c0c7a5fcd37
The following are my notes about the book The Antidote by Oliver Burkeman. It's an excellent book and I highly recommend it. | |
Some of the following may not make sense to others. Most are there for me to jog my memory, but you may find them interesting as well. | |
If you do, I encourage you to pick up the book. | |
http://www.amazon.com/Antidote-Happiness-People-Positive-Thinking/dp/0865478015/ | |
The Antidote | |
Oliver Burkeman |
View gist:efceeb97ad1865aeec15
The following are my notes about the book The Antidote by Oliver Burkeman. It's an excellent book and I highly recommend it. | |
Some of the following may not make sense to others. Most are there for me to jog my memory, but you may find them interesting as well. | |
If you do, I encourage you to pick up the book. | |
http://www.amazon.com/Antidote-Happiness-People-Positive-Thinking/dp/0865478015/ | |
The Antidote | |
Oliver Burkeman |
View Back Template
<div class="name">{{Name}}</div> | |
<hr> | |
<div class="map">{{Map}}</div> |
View gist:9518707
wget http://pnc.com | |
--2014-03-12 19:16:22-- http://pnc.com/ | |
Resolving pnc.com (pnc.com)... 161.150.139.129 | |
Connecting to pnc.com (pnc.com)|161.150.139.129|:80... connected. | |
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. | |
Retrying. | |
--2014-03-12 19:16:23-- (try: 2) http://pnc.com/ | |
Connecting to pnc.com (pnc.com)|161.150.139.129|:80... connected. | |
HTTP request sent, awaiting response... 302 Found |
View gist:5197245
{"latitude": 40, "longitude": -80.7} |
NewerOlder