kubectl api-resources --verbs=list -o name | xargs -n 1 -t kubectl get --ignore-not-found --all-namespaces
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
[include fluidd.cfg] | |
[include mainsail.cfg] | |
[virtual_sdcard] | |
path: /home/pi/FLSUN_data/gcodes | |
on_error_gcode: CANCEL_PRINT | |
# Comment copied from an old config I found on Facebook: | |
# > TFT 32 must be connected for Auto-Leveling to work correctly , it is used for +5v pullup z-min pin. | |
# > The value of z_offset in the [probe] section must be specified individually for your printer, the default value is 0.85 | |
# > Step distance for your extruder must be specified in [extruder] section, the default value is 0.011363 for QQ default extruder. |
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
new Date().toLocaleDateString('sv', { timeZone: 'Europe/Berlin' }) // sv = ISO format |
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
# Copies the file into the directory (both are equivalent): | |
COPY some_file /some_directory/ | |
COPY some_file /some_directory/some_file | |
# Copies both files into the directory: | |
COPY some_file another_file /some_directory/ | |
# Copies the contents of the directory (but not the directory itself) into the other directory: | |
COPY some_directory /other_directory/ |
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
package foo; | |
import android.os.CountDownTimer; | |
public class SimpleCountDownTimer { | |
boolean repeat; | |
Runnable action; | |
CountDownTimer c; |
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
package com.example.android.app; | |
import android.app.Activity; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.bluetooth.BluetoothGatt; | |
import android.bluetooth.BluetoothGattCallback; | |
import android.bluetooth.BluetoothGattCharacteristic; | |
import android.bluetooth.BluetoothGattService; | |
import android.bluetooth.BluetoothProfile; |
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
// The state of Go logging libraries is disheartening... | |
import ( | |
"github.com/mattn/go-colorable" // not ansicolor because github.com/mgutz/ansi recommends colorable | |
log "github.com/sirupsen/logrus" | |
"github.com/x-cray/logrus-prefixed-formatter" | |
"golang.org/x/crypto/ssh/terminal" | |
"os" | |
) |
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
"C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe" -m -t1=%yname -t2=%bname -t3=%tname -result=%merged %mine %base %theirs |
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
# ZIP: | |
wget --header="PRIVATE-TOKEN: $GITLAB_TOKEN" "https://<gitlab>/<group>/<project>/builds/artifacts/master/download?job=<jobname>" | |
or | |
wget --header="PRIVATE-TOKEN: $GITLAB_TOKEN" "https://<gitlab>/<group>/<project>/-/jobs/artifacts/master/download?job=<jobname>" | |
# Single file: | |
wget -O /path/to/file --header="PRIVATE-TOKEN: $GITLAB_TOKEN" "https://<gitlab>/<group>/<project>/builds/artifacts/master/raw/<filename>?job=<jobname>" |
NewerOlder