Skip to content

Instantly share code, notes, and snippets.

View pantherhead's full-sized avatar
🏠
Working from home

Ippei Kuroki pantherhead

🏠
Working from home
View GitHub Profile
@ChipCE
ChipCE / readme.md
Last active May 2, 2024 08:38
Klipper bed mesh on print area only macro install guide

READ THIS FIRST

Adaptive bed mesh is merged into klipper master branch. You can use this feature without this custom macro. Official klipper adaptive bed mesh

Klipper mesh on print area only install guide

What this macro do

  • This macro will dynamically changing the bed mesh area based on the size of the parts will be printed. The fw will only probe on the area that the part will be printed (plus mesh_area_offset value)
@riocampos
riocampos / らじるらじるm3u8をffmpegで録音する(8放送局)201709以降対応.txt
Last active February 5, 2024 11:54
らじるらじる m3u8 を ffmpeg で録音する(8放送局)2021/4 以降対応
## NHKのネット配信サービスであるらじる★らじる。
# 従来は https://gist.github.com/riocampos/5656450 のように rtmpdump を使う必要がありましたが、
# 2017年9月から m3u8 による配信へ変更になったようです。m3u8 なので10秒単位での録音になります。
# また 2021年4月に更新され、以前の M3U8URL は2022年2月末で廃止されました。
## 録音コマンド(m4a)
ffmpeg -i M3U8URL -c copy outputfilename.m4a
# ファイルサイズ的に m4a が最も小さくなる
# m4a ファイルのときだけ "-c copy" オプションが使える。
@hayajo
hayajo / Dockerfile
Last active April 12, 2017 00:02
RackTablesつかってみようず(Docker版)
FROM centos:centos6
RUN yum install -y mysql mysql-server php php-mysql php-pdo php-gd php-mbstring php-bcmath httpd tar
RUN curl -L -o RackTables-latest.tar.gz 'http://sourceforge.net/projects/racktables/files/latest/download?source=files'
RUN tar xzf RackTables-latest.tar.gz
RUN cd $(find -type d -name 'RackTables-*') && rmdir /var/www/html && cp -a wwwroot /var/www/html
RUN touch /var/www/html/inc/secret.php && chmod 666 /var/www/html/inc/secret.php
ADD init.sql /usr/local/share/racktables/init.sql
@ngpestelos
ngpestelos / remove-docker-containers.md
Last active March 5, 2024 20:45
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
@ilguzin
ilguzin / gist:6606011
Last active March 9, 2018 07:46
How to convert Java Key Store file to pem/key for nginx
1. Convert our ".jks" file to ".p12" (PKCS12 key store format):
keytool -importkeystore -srckeystore oldkeystore.jks -destkeystore newkeystore.p12 -deststoretype PKCS12
1.1. List new keystore file contents:
keytool -deststoretype PKCS12 -keystore newkeystore.p12 -list
2. Extract pem (certificate) from ".p12" keysotre file: