Skip to content

Instantly share code, notes, and snippets.

@pandax381
pandax381 / ix3315.startup-config
Last active May 20, 2024 03:50
IX3315 にフレッツ光クロス2回線(OCNバーチャルコネクトおよびv6プラス固定IP)を収容するためのコンフィグ
! NEC Portable Internetwork Core Operating System Software
! IX Series IX3315 (magellan-sec) Software, Version 10.7.18, RELEASE SOFTWARE
! Compiled Oct 25-Tue-2022 12:28:03 JST #2
! Current time Apr 26-Wed-2023 16:52:00 JST
!
timezone +09 00
!
logging buffered 819200
logging subsystem flt warn
logging subsystem mape debug
! NEC Portable Internetwork Core Operating System Software
! IX Series IX3315 (magellan-sec) Software, Version 10.9.11, RELEASE SOFTWARE
! Compiled Dec 15-Fri-2023 13:25:17 JST #2
! Last updated May 20-Mon-2024 03:25:54 JST
!
service ssl-protocol tls1.2-and-later
!
hostname HomeLab
timezone +09 00
@githubcom13
githubcom13 / Protonmail.md
Last active May 20, 2024 03:50 — forked from ibaiul/Protonmail.md
Configure the protonmail bridge linux client on Ubuntu 20.04 and Debian 10 server

Protonmail on Ubuntu 20.04 and Debian 10 server

#protonmail #debian #linux

Before you start

Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (https://protonmail.com/bridge/install).

Consider that the bridge linux client requires a paid protonmail account to work.

Get the protonmail bridge linux installer

const size = 100_000;
{
const queue = [];
for (let i = 0; i < size; i++) {
queue.push(i);
}
console.time('Built-in Array');
while (queue.length > 0) queue.shift();
console.timeEnd('Built-in Array');
// Built-in Array: 5295.242919921875 ms
1.Run git clone <my-cool-project>
2.Run composer install
3.Run cp .env.example .env
4.Run php artisan key:generate
5.Run php artisan migrate
6.Run php artisan serve
7.Go to link localhost:8000
@mutaguchi
mutaguchi / 00README.md
Last active May 20, 2024 03:46
LLM_translator.py

llama.cpp serverを使って、テキストファイルの翻訳をするスクリプト。 チャットのように逐次訳することで精度が上がることを期待してます。 精度を維持するため、原文と翻訳結果は、直近5~10行のみコンテキストに含めるようにしています。 出力例は、GPT-4oに例文と模範解答を作らせ、ArrowPro-7B-RobinHood(Q8_0.gguf)でテストしています。 英名を和名に変換する辞書を指定することもできます。 yaml形式で翻訳指示のシステムプロンプトを指定すると、モデルの性能に左右されますが、あらゆる言語からあらゆる言語への変換も一応は可能です。

@delannoy
delannoy / extractImagesPDF.py
Created February 15, 2022 22:04
Extract all Images from PDF (PyMuPDF, Pillow)
#!/usr/bin/env python3
# [Extract all Images from PDF in Python](https://aliarefwriorr.medium.com/extract-all-images-from-pdf-in-python-cda3dc195abd)
import io
import fitz
import os
import PIL.Image
import requests
@bomberstudios
bomberstudios / Change Font.sketchplugin
Last active May 20, 2024 03:42
Change font family for all text layers in Sketch
// Change font (ctrl a)
var doc = context.document,
selection = context.selection,
font_name = [doc askForUserInput:"Font name:" initialValue:"Arial"];
function check_layer(layer){
log(layer)
var className = layer.className()
log("Checking layer " + layer + " of klass: " + className)
if (className == "MSTextLayer") {
@joepie91
joepie91 / vpn.md
Last active May 20, 2024 03:37
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.