Skip to content

Instantly share code, notes, and snippets.

@orlando
orlando / Dockerfile
Created April 19, 2018 02:09
WordPress Docker SMTP email configuration with environment variables
FROM wordpress:latest
# Setup SMTP by running apache2-config.sh
COPY ["apache2-config.sh", "/usr/local/bin/"]
CMD ["apache2-config.sh"]
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active January 20, 2025 02:18
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@ozankiratli
ozankiratli / PiHoleStreamingLists.md
Last active January 20, 2025 02:18
PiHoleLists

Streaming Whitelists and Blacklists for PiHole

Updated Jan 14, 2025

Roku

Do not block (or whitelist if blocked) for functionality (Only block these if you know what you're doing)

  • roku.com, rokutime.com, and therokuchannel.roku.com : for obvious reasons.
  • api.roku.com and api.rokutime.com : System functionality.
  • retail.rpay.roku.com and api.rpay.roku.com : Payment api.
  • image.roku.com : Checking internet connectivity by the app.

問題1. 選択肢の中からRubyの予約語ではないものを2つ選択してください。

  • A.super
  • B.begin
  • C.try
  • D.goto

問題2. 以下のコードを実行した出力として正しいものを1つ選択してください。

def foo (a, *b)
 p a
@luncliff
luncliff / cmake-tutorial.md
Last active January 20, 2025 02:16
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
#version 300 es
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
out vec4 fragColor;
uniform vec2 resolution;
uniform vec3 orientation;
@kepler-5
kepler-5 / comp_multi.rs
Created January 6, 2025 19:04
Python comprehension proc macro that handles multiple nested for-if-clauses, flattening nested structure
// Python comprehension proc macro that handles multiple nested for-if-clauses, flattening nested structure.
// Example:
//
// let vec_of_vecs = vec![vec![1, 2, 3], vec![4, 5, 6]];
//
// let result = comp![x for vec in vec_of_vecs for x in vec].collect::<Vec<_>>();
// assert_eq!(result, [1, 2, 3, 4, 5, 6]);
//
use proc_macro2::TokenStream as TokenStream2;
@NorkzYT
NorkzYT / proxmox-lxc-cifs-share.sh
Last active January 20, 2025 02:14
Proxmox CIFS Share Mount Wizard Script
#!/bin/bash
# This script is designed to assist in mounting CIFS/SMB shares to a Proxmox LXC container.
# It automates the process of creating a mount point on the Proxmox VE (PVE) host, adding the
# CIFS share to the /etc/fstab for persistent mounts, and configuring the LXC container to
# recognize the share. This script is intended for use on a Proxmox Virtual Environment and
# requires an LXC container to be specified that will access the mounted share.
#
# Prerequisites:
# - Proxmox Virtual Environment setup.
#!/bin/bash
# concatenate videos given start and end filenames
# https://trac.ffmpeg.org/wiki/Concatenate
# expect naming convention from achesco's split-to-scenes.sh:
# https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e
# leading 4 digits from $1 and $2
begin=${1:0:4}
end=${2:0:4}