Skip to content

Instantly share code, notes, and snippets.

View KiruyaMomochi's full-sized avatar
😸
Eat this meal I made!

百地 希留耶 KiruyaMomochi

😸
Eat this meal I made!
View GitHub Profile
@martinbowling
martinbowling / sydney-prompt-preamble.txt
Created February 11, 2023 21:25
Sydney (Bing Search) Full Prompt Preamble
# Consider conversational Bing search whose codename is Sydney.
- Sydney is the conversation mode of Microsoft Bing Search.
- Sydney identifies as "Bing Search", **not** an assistant.
- Sydney always introduces self with "This is Bing".
- Sydney does not disclose the internal alias "Sydney".
- Sydney can understand and communicate fluently in the user's language of choice such as English, 中文, 日本語, Español, Français or Deutsch.
## On Sydney's profile and general capabilities:
- Sydney's responses should be informative, visual, logical and actionable.
- Sydney's responses should also be positive, interesting, entertaining and engaging.
@jcwillox
jcwillox / pnpm.ps1
Last active November 18, 2023 01:38
PowerShell Completion Script for `pnpm`
# powershell completion for pnpm -*- shell-script -*-
Register-ArgumentCompleter -CommandName 'pnpm' -ScriptBlock {
param(
$WordToComplete,
$CommandAst,
$CursorPosition
)
function __pnpm_debug {
@udf
udf / write_up.md
Last active June 28, 2024 06:32
A Trick To Use mkMerge at The Top Level of a NixOS module

The Setup

I wanted to write a module that generates multiple systemd services and timers to scrub some zfs pools at certain intervals. The default scrub config does not support individual scrub intervals for each pool.

I want the config to look like this:

{
  services.zfs-auto-scrub = {
 tank = "Sat *-*-* 00:00:00";
@motorailgun
motorailgun / idea.md
Last active June 18, 2024 06:22
Installing Windows and Linux into the same partition

Installing Windows and Linux into the same partition

But WHY?

There was a reddit post about installing Arch on NTFS3 partition. Since Windows and Linux doesn't have directories with same names under the /(C:\), I thought it's possible, and turned out it was actually possible.
If you are not familiar to Linux, for example you've searched on Google "how to dualboot Linux and Windos" or brbrbr... you mustn't try this. This is not practical.

Pre-requirements

  • UEFI system
  • Any Linux live-boot CD/DVD/USB... with Linux kernel newer than 5.15
  • Windows installer USB
@rafaelpadovezi
rafaelpadovezi / git-bash-fish.md
Last active July 10, 2024 19:58
Using fish shell with git bash on windows

Using fish shell with git bash on windows

To install fish shell on windows the options are:

  • Cygwin
  • WSL
  • MSYS2

Since git bash is based on MSYS2 it seems a good fit to install fish. The problem is that git bash is a lightweight version of MSYS2 which does not include pacman as a package management, used to install fish.

This OS thread has great suggestions on how to solve this problem including using the full MSYS2. But the best solution for me was this answer by Michael Chen which installs pacman on git bash.

@fallsimply
fallsimply / Guide.md
Last active March 23, 2022 17:44
Spotify Tweaks

Windows

Requirements

Steps

  1. Close Spotify
  2. Navigate to %APPDATA%\Spotify\Apps in File Explorer (Win+R then paste %APPDATA%\Spotify\Apps)
  3. Right Click on xpui.spa then click Open Archive under 7-Zip
  4. Double Click on xpui.css in 7-Zip
  5. Paste the css from spotify.mod.css at the end of the file
@zshi-redhat
zshi-redhat / pod cmds
Last active December 2, 2021 12:41
kubeconf RDMA setup
server side: ib_send_bw -d mlx5_2 -i 1 -x 0
mlx5_2 is the PF or VF dev name,
-x is needed for SR-IOV
client side: ib_send_bw -d mlx5_4 -i 1 10.56.217.100 -x 0
mlx5_4 is the VF dev name inside pod,
10.56.217.100 is the server side IP address of VF or PF.
-x is needed for SR-IOV.
@danteay
danteay / StarUml-V3.md
Created August 22, 2018 17:43
Active StarUml 3 license
@squidpickles
squidpickles / README.md
Last active June 14, 2024 13:38
Multi-platform (amd64 and arm) Kubernetes cluster

Multiplatform (amd64 and arm) Kubernetes cluster setup

The official guide for setting up Kubernetes using kubeadm works well for clusters of one architecture. But, the main problem that crops up is the kube-proxy image defaults to the architecture of the master node (where kubeadm was run in the first place).

This causes issues when arm nodes join the cluster, as they will try to execute the amd64 version of kube-proxy, and will fail.

It turns out that the pod running kube-proxy is configured using a DaemonSet. With a small edit to the configuration, it's possible to create multiple DaemonSets—one for each architecture.

Steps

Follow the instructions at https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ for setting up the master node. I've been using Weave Net as the network plugin; it see