Skip to content

Instantly share code, notes, and snippets.

@Ruzgfpegk
Ruzgfpegk / wp-perf.md
Last active May 29, 2024 02:56
WordPress Performance & Development tips
@baymaxium
baymaxium / content.md
Created October 19, 2017 03:14
进阶指南|三个月大数据工程师学习计划

原文:CSDN大数据

本文来自作者在GitChat(ID:GitChat_Club)上的精彩分享,CSDN独家合作发布。

申明:本文旨在为普通程序员(Java程序员最佳)提供一个入门级别的大数据技术学习路径,不适用于大数据工程师的进阶学习,也不适用于零编程基础的同学。

前言

@jinjier
jinjier / 250.csv
Last active May 29, 2024 02:54
JavDB Top 250 movies code list. [Updated at 2024/02]
1 LAFBD-41
2 SSNI-497
3 ABP-984
4 IPX-580
5 IPX-811
6 IPX-177
7 STARS-804
8 SMBD-115
9 ABP-968
10 ABF-017
@Dessix
Dessix / generate-stack-sizes.lua
Created September 4, 2022 05:17
Generate stack size combinators for all items in Factorio
-- A tweak atop https://github.com/technicalfactorio/technicalfactorio/blob/master/combinators/generate_signal_index.lua
-- to generate stack sizes instead of unique identifiers.
-- Does not create entries for virtual signals, as they cannot be stacked.
-- Meant to be used in combination with:
-- Pairwise Multiplication: https://www.reddit.com/r/factorio/comments/pg2dai/perfect_parallel_pairwise_multiplier/
-- Pairwise Division: https://www.reddit.com/r/factorio/comments/kl31f0/pairwise_division_with_combinators/
--
-- Run this as a console command by copying starting with this slash, and pasting it into chat: /c
local map={}
local comb = game.player.selected
@marius-se
marius-se / Vector.swift
Last active May 29, 2024 02:40
Swift PGVector
import PostgresNIO
import Foundation
/// A vector of floats. This is a custom type mirroring the `vector` type from
/// [pgvector](https://github.com/pgvector/pgvector/).
struct Vector: Codable {
/// The vector's values.
let value: [Float]
/// Creates a new `Vector`.
@dhh
dhh / linux-setup.sh
Last active May 29, 2024 02:35
linux-setup.sh
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 29, 2024 02:34
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@Darkhogg
Darkhogg / !RebootToOs.md
Last active May 29, 2024 02:34
"Reboot to {OS}" scripts for rEFInd Next Boot selection

Reboot to {OS}

This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.

General Information

The key for achieving this is to modify the EFI Variable PreviousBoot with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740, which rEFInd uses to store the last entry selected in the menu and, if using the + default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.