View kagi-summarizer-bookmarklet.js
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
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://labs.kagi.com/ai/sum?url='+encodeURIComponent(q),'Kagi Universal Summarizer','toolbar=no,width=710,height=685')); |
View docker-compose.yml
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: '3.8' | |
services: | |
traefik: | |
image: traefik:v2.5.0-rc2 | |
container_name: traefik | |
restart: always | |
environment: | |
- TZ=Asia/Taipei | |
ports: |
View regex.txt
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
/\b[A-Z_0-9]+-[1-9]\d?\b/gmi |
View sodium.php
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
<?php | |
if (sodium_crypto_aead_aes256gcm_is_available()) { | |
echo 'sodium_crypto_aead_aes256gcm_is_available is true'.PHP_EOL; | |
} else { | |
echo 'sodium_crypto_aead_aes256gcm_is_available is false'.PHP_EOL; | |
} | |
//echo 'Generated key with sodium_crypto_aead_aes256gcm_keygen is: ' . sodium_crypto_aead_aes256gcm_keygen() . PHP_EOL; | |
$msg = 'john.doe@example.com'; |
View gitlab-ci.yml
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
qodana: | |
stage: report | |
image: | |
name: jetbrains/qodana:latest | |
entrypoint: ["/usr/bin/bash", "-l", "-c"] | |
needs: | |
- composer-prod | |
script: | |
- ln -sf $CI_PROJECT_DIR/ /data/project | |
- /opt/idea/bin/entrypoint --save-report |
View Dockerfile
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
FROM nvidia/cuda:10.0-base-ubuntu18.04 | |
# See http://bugs.python.org/issue19846 | |
ENV LANG C.UTF-8 | |
LABEL com.nvidia.volumes.needed="nvidia_driver" | |
RUN echo "deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/nvidia-ml.list | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
libc6-dev \ |
View hh-wettermast.sh
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
#!/bin/bash | |
curl -fsSL -o /tmp/temp.gif https://wettermast.uni-hamburg.de/plots/TT002_TND.gif \ | |
&& tesseract /tmp/temp.gif /tmp/out -l eng 2&>1 /dev/null \ | |
&& cat /tmp/out.txt \ | |
| grep -h -P '\d+,\d' \ | |
; rm -f out.txt temp.gif |
View enviroplus-influxdb.py
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
# -*- coding: utf-8 -*- | |
"""Test using the InfluxDB client.""" | |
import time | |
import colorsys | |
import os | |
import sys | |
import socket | |
import ST7735 | |
import ltr559 |
View Dockerfile
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
FROM php:7.3 | |
LABEL maintainer="Jens Kohl <jens.kohl@gmail.com>" | |
RUN apt-get update && \ | |
apt-get install --no-install-recommends -y git-core && \ | |
git clone --recursive --depth=1 https://github.com/kjdev/php-ext-zstd.git && \ | |
cd php-ext-zstd && \ | |
phpize && \ | |
./configure && \ |
View 01-install_telegraf.sh
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
#!/bin/bash | |
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - | |
echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list | |
sudo apt-get update | |
sudo apt install -y telegraf |
NewerOlder