Skip to content

Instantly share code, notes, and snippets.

Bambu X1C 0.4mm
Error when sending this specific model to the printer (Other models work)
https://makerworld.com/en/models/384613#profileId-284878
Using LAN only mode
---------------
Failed to upload file to ftp. Please try again.
+ "scripts": {
+ "foo": "ls",
#by itself the command works
$ composer foo
> ls
app ...
#it accepts arguments ok, as long as they are not composer arguments
$ composer foo -- -l
[alias]
##########################
## Cheat sheet ##
##########################
## Info:
## status - show where you are in the repository, what files are in what state, branch, etc
## br - fancy branch list (does not work on deb 9)
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
## lb - list recently used branches
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}'
The full file:
007fdc0 fd1e 7604 3f79 db94 8bb5 eb62 7cfc 2843
007fdd0 0d64 a091 7b14 c68f d4db de36 1c56 83b0
007fde0 b5b9 480b 11bc 46fc 079a e1a4 77ae 0704
007fdf0 ae04 cbfb 440d a2bb 708d 4389 46ab c853
007fe00 72f6 4a17 9f8c e1d3 222c 797e 8c43 1ba0
007fe10 7de7 0452 f2df 418d 6e2f 8e7c d014 ed01
----
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<h1 style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; text-align: center; font-weight: 500; line-height: 1.1; font-size: 30px; color: rgb(51,51,51);">ZIRC Cam 1</h1>
<video id="video" style="width:100%;"></video>
<button id="button1" style="display:none;">PLAY</button>
<script>
window.addEventListener("DOMContentLoaded", function() {
var videoSource = '/stream/camera1.m3u8';
var video = document.getElementById('video');
var button = document.getElementById('button1');
//button.addEventListener('click', () => { console.log("clicked the video"); video.play(); });
#!/bin/bash
cameraName=$1
cameraUrl=$2
function usage {
echo "Usage: $0 <cameraName> <rtsp://cameraUrl>"
exit 1
}
explain SELECT
date_trunc('week', ovscweek_start_date) as week,
to_char(ovscweek.ovscweek_start_date, 'MONYY') as start_date,
SUM(ftconsum.ftconsum_fish_cnt) as fish,
SUM(ftconsum_fish_age * ftconsum_fish_cnt) / SUM(ftconsum_fish_cnt) as days_old,
SUM(ftconsum.ftconsum_removal_watch_cnt) as watch,
SUM(ftconsum.ftconsum_removal_order_cnt) as order,
SUM(ftconsum.ftconsum_removal_retired_cnt) as retired,
SUM(ftconsum.ftconsum_removal_other_cnt) as other
FROM
@rubinlinux
rubinlinux / graph.xml
Created January 11, 2016 21:24
Graph data as xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<xport>
<meta>
<start>1451943000</start>
<step>1800</step>
<end>1451943000</end>
<rows>337</rows>
<columns>3</columns>
<legend>
[2015-12-28 23:15:53] DEBUG [DEBUG]: SSL: read 4096 bytes of randomness
[2015-12-28 23:15:53] DEBUG [DEBUG]: Server ready...
[2015-12-28 23:15:54] DEBUG [DEBUG]: Connection check at : Mon Dec 28 23:15:54 2015
[2015-12-28 23:15:54] DEBUG [DEBUG]: Next connection check : Mon Dec 28 23:25:54 2015
[2015-12-28 23:15:54] DEBUG [DEBUG]: [1451373354] check_pings() again in 120s
[2015-12-28 23:16:04] DEBUG [DEBUG]: Beginning auth request on client 0x0000000010a4e380
[2015-12-28 23:16:04] DEBUG [DEBUG]: Requesting DNS PTR 122.134.230.173.in-addr.arpa. as 0x0000000010ab6e10
[2015-12-28 23:16:04] DEBUG [DEBUG]: find_id(32673) -> NULL
[2015-12-28 23:16:04] DEBUG [DEBUG]: Auth 0x0000000010ac7330 [20] still has flag 1
[2015-12-28 23:16:04] DEBUG [DEBUG]: SSL_accept: Internal OpenSSL error or protocol error
@rubinlinux
rubinlinux / gist:80cf38c09f0795f5f93c
Created July 11, 2015 04:42
gnomebluetoothapplet mint 17
error t=2015-07-10T21:32:16Z Requiring GnomeBluetoothApplet, version none: Typelib file for namespace 'GnomeBluetoothApplet' (any version) not found
error t=2015-07-10T21:32:16Z [Applet "bluetooth@cinnamon.org"]: Error importing applet.js from bluetooth@cinnamon.org
error t=2015-07-10T21:32:16Z Could not load applet bluetooth@cinnamon.org