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
import escpos.printer | |
import sys | |
text = sys.argv[1] | |
if len(text) > 16: | |
print("Text cannot be longer than 16 characters") | |
sys.exit(1) | |
print("Connecting to printer") |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# coreboot configuration | |
# | |
# | |
# General setup | |
# | |
CONFIG_COREBOOT_BUILD=y | |
CONFIG_LOCALVERSION="" |
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
CONFIG_CCACHE=y | |
CONFIG_UPDATE_IMAGE=y | |
CONFIG_VENDOR_LENOVO=y | |
CONFIG_CBFS_SIZE=0x710000 | |
CONFIG_CONSOLE_POST=y | |
# CONFIG_POST_DEVICE is not set | |
CONFIG_LINEAR_FRAMEBUFFER_MAX_WIDTH=2560 | |
CONFIG_LINEAR_FRAMEBUFFER_MAX_HEIGHT=1600 | |
CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000 | |
CONFIG_PCIEXP_HOTPLUG_BUSES=8 |
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
--- | |
version: 1.0 | |
input: | |
- network | |
tasks: | |
get_hosts: | |
action: networking_utils.hosts |
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
resources: | |
- name: kedare-blog | |
type: git | |
icon: github | |
source: | |
uri: https://github.com/kedare/kedare-blog | |
branch: master | |
- name: hugo | |
type: registry-image |
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
func workerLZO(filePaths <-chan string, result chan<- error, wg sync.WaitGroup) { | |
for filePath := range filePaths { | |
err := DecompressLZO(filePath) | |
if err != nil { | |
log.WithFields(log.Fields{"file": filePath}).Error("LZO decompress failure") | |
} | |
result <- err | |
wg.Done() | |
} | |
} |
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
{'up-ptn-table': [{'base': '0x00000000', | |
'name': 'bootloader', | |
'size': '0x0017F000'}, | |
{'base': '0x0017F000', | |
'name': 'kernel', | |
'size': '0x001A6993'}, | |
{'base': '0x00325993', | |
'name': 'rootfs', | |
'size': '0x01000000'}, | |
{'base': '0x01325993', |
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
-- tables | |
CREATE TABLE public.users | |
( | |
id serial PRIMARY KEY, | |
username text NOT NULL, | |
password text NOT NULL, | |
is_admin boolean DEFAULT FALSE NOT NULL, | |
modified_date timestamp WITH TIME ZONE, | |
created_date timestamp WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL | |
); |
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
// Based on the configuration generated from the angular SPA template in `dotnet new` | |
using Microsoft.AspNetCore.Authentication; | |
using Microsoft.EntityFrameworkCore; | |
using ksite.Data; | |
using ksite.Models; | |
var builder = WebApplication.CreateBuilder(args); | |
// Add services to the container. |
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
mode: daemonset | |
presets: | |
kubernetesAttributes: | |
enabled: true | |
clusterRole: | |
name: otlp-cluster-role | |
clusterRoleBinding: |
OlderNewer