Skip to content

Instantly share code, notes, and snippets.

@edy555
edy555 / RiemannZeta.ipynb
Created June 2, 2015 21:51
ゼータ関数を描いてみたipython notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pablotolentino
pablotolentino / Visual Studio 2022 Product Key
Created November 20, 2021 20:41
Visual Studio 2022 Enterprise Product key
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
@nolanlawson
nolanlawson / scaling_mastodon_down.md
Last active May 4, 2024 01:48
Scaling Mastodon down

Scaling Mastodon down

There is already a guide on scaling your Mastodon server up. This is a short guide on scaling your Mastodon server down.

I.e., maybe you want to run a small instance of <100 active users, and you want to keep your cloud costs reasonable. So you might be running everything on a single machine, with limited memory and CPU. (In my case, I was using a t3.medium instance with 2 vCPUs and 4GB of RAM.) How do you do this?

Note that I'm not a Ruby or Sidekiq expert, and most of this stuff I figured out through trial and error.

@Delivator
Delivator / VLC_mp4_sout-all.reg
Created May 31, 2020 13:37
Adds "--sout-all --sout #display" arguments to VLC's .mp4 extension to play all available audio sources. Useful if you split audio tracks with shadowplay.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VLC.mp4\shell\Open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file --sout-all --sout \"#display\" \"%1\""
@HugoPoi
HugoPoi / Resize virtual machine partition.md
Last active May 4, 2024 01:46
How to resize virtual machine partition after extend the disk

Resize a VM system disk

Introduction

  • You have a VM with small disk
  • You have GPT partition table
  • You NOT USE LVM (you should)
  • You need to extend a partition on the main drive
  • You use Debian 8.x aka Jessie

Extend the disk

@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active May 4, 2024 01:45
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@davidsteppenbeck
davidsteppenbeck / KeyframeView.swift
Created May 3, 2024 20:08
Keyframe Animation Example in SwiftUI
import SwiftUI
struct KeyframeValues {
var scale = 1.0
var horizontalStretch = 1.0
var verticalStretch = 1.0
var translation = 0.0
var rotation = Angle.zero
}
@joaovictorino
joaovictorino / isolamento de recursos no docker.md
Last active May 4, 2024 01:39
isolamento de recursos no docker

Isolamento de recursos no Docker

Vamos ver como funciona o isolamento de CPU e memória no Docker, execute o comando abaixo em uma janela do terminal

docker run -it ubuntu bash

Mantenha a janela do terminal com o comando acima aberto e abra outra janela de terminal, executando o comando abaixo

@joaovictorino
joaovictorino / volumes em contêineres Docker.md
Last active May 4, 2024 01:39
volumes em contêineres Docker

Volumes em contêineres Docker

Vamos testar alguns conceitos usando volumes. Crie uma pasta docker no drive C: (C:/docker), caso seja windows, ou uma pasta no sistema operacional que esteja usando, abra o terminal e execute o comando abaixo

docker run -it -v /c/docker:/app ubuntu bash

Agora dentro do contêiner ainda, execute o seguinte comando

@lohhans
lohhans / README-PTBR.md
Last active May 4, 2024 01:32 — forked from PurpleBooth/README-Template.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.