Skip to content

Instantly share code, notes, and snippets.

View XDflight's full-sized avatar
💬
Overwhelmed by schoolwork

XDflight XDflight

💬
Overwhelmed by schoolwork
View GitHub Profile
@XDflight
XDflight / README.md
Last active December 5, 2025 20:28
Remove cache and old extensions under "~/.vscode-server/" on your Linux server

If you often connect to your Linux server using VSCode, the "~/.vscode-server/" folder (and sometimes the ~/.cache/ folder too) can get very large because VSCode:

  1. Does NOT clean its download cache after installing extensions;
  2. Does NOT delete old extensions after updating them;
  3. Does NOT remove old VSCode servers after installing a new version.

If your server storage space is limited, you might consider cleaning "~/.vscode-server/" (and ~/.cache/) regularly using the bash script I wrote. Simply run the following command:

curl -sL https://gist.githubusercontent.com/XDflight/5f3509eb84fc282b88059c909036f5bc/raw/b6b02d41c66c84d6332eb947c669dcd8973f393e/clean_vscode-server.sh | bash -s
@louity
louity / DCT-DST.py
Created May 17, 2022 10:25
Type II DCT and DST iwth PyTorch. Note that iDCT-II is DCT-III upt to normalizing constant and t iDST-II is DST-III similarly.
import torch
import scipy.fftpack
import numpy as np
np.set_printoptions(precision=4, linewidth=200)
N = 8
x = torch.DoubleTensor(8).normal_()
exp_vec_1 = 2 * torch.exp(-1j*torch.pi*torch.arange(N)/(2*N))
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 7, 2025 19:34
Conventional Commits Cheatsheet

CLang optimizations on Mac OSX

Version:

Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

This was made with commands: