Skip to content

Instantly share code, notes, and snippets.

@junkor-1011
junkor-1011 / .gitignore
Last active April 24, 2023 15:21
pyspark intro
testdata
# Created by https://www.toptal.com/developers/gitignore/api/jupyternotebooks,visualstudiocode,python,pycharm+all
# Edit at https://www.toptal.com/developers/gitignore?templates=jupyternotebooks,visualstudiocode,python,pycharm+all
### JupyterNotebooks ###
# gitignore template for Jupyter Notebooks
# website: http://jupyter.org/
.ipynb_checkpoints
@junkor-1011
junkor-1011 / .gitignore
Last active March 26, 2023 14:47
wsl custom images
distro
@junkor-1011
junkor-1011 / README.md
Last active March 26, 2023 06:03
Linux under proxy-environment

Proxy環境下でLinuxを使うときのまとめ

(Zenn - Proxy環境下でLinuxを使うときのまとめに移行)


個人的な備忘録。

インターネットアクセスにプロキシが必要な環境において、 WSL2などを動かすのに割と設定が必要だったりトラップがあるのでまとめる。

@junkor-1011
junkor-1011 / Dockerfile
Last active April 8, 2024 19:35
AmazonLinux2023をWSL2上で動かす
FROM amazonlinux:2023
COPY wsl.conf /etc/wsl.conf
USER root
RUN dnf update -y && \
# 必要そうなパッケージを追加していく \
dnf install -y --allowerasing coreutils && \
dnf install -y nano vim \
sudo passwd audit acl \
@junkor-1011
junkor-1011 / README.md
Last active April 6, 2024 05:45
mambaforgeによるPython環境構築

mambaforge(miniforge)によるPython環境構築

概要

システムでインストールするPython(aptやyum, dnfなどでインストールしたり管理するもの)だとバージョンの指定が出来なかったり、 使用するディストリビューションによって使えるバージョンや依存ライブラリに制限がかかり、所望の環境を作れないことがある。

MiniforgeおよびMambaforgeを使うことで、 使うLinuxディストリビューションに対する依存性を極力小さくして移植性・再現性を持たせつつ様々なケースでPython環境の構築が可能になる。

@junkor-1011
junkor-1011 / README.md
Last active March 13, 2023 16:21
pyenv + mambaforge note
@junkor-1011
junkor-1011 / .gitignore
Last active March 6, 2023 15:27
pipenv jupyter lab example
requirements.txt
requirements-all.txt
*.tgz
*.tar.gz
*.tar.xz
*.zip
*.snappy.parquet
# Created by https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks,visualstudiocode,vim,pycharm+all,emacs
@junkor-1011
junkor-1011 / deno.jsonc
Last active March 18, 2023 13:59
retry-function(TypeScript)
{
"compilerOptions": {
"allowJs": false,
"jsx": "react",
"lib": ["deno.window"],
"strict": true
},
"lint": {
"files": {
// "include": ["src"],
@junkor-1011
junkor-1011 / .env.default
Last active February 20, 2023 15:58
prisma relations query test
DATABASE_URL="postgresql://postgres:password@localhost:5432/appdb?schema=app&connection_limit=1"
@junkor-1011
junkor-1011 / .env.default
Last active February 20, 2023 14:55
Prisma @Map test
DATABASE_URL="postgresql://postgres:password@localhost:5432/appdb?schema=app&connection_limit=1"