Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
CMCDragonkai / makeWrapper_and_wrapProgram.md
Created August 24, 2018 07:50
makeWrapper and wrapProgram #nix

makeWrapper and wrapProgram

Nix generally assumes run-time dependencies is a subset of the build-time dependencies.

This means many Nix builder functions try to automatically scan the output for runtime dependencies and "rewrite" them for runtime usage.

However shell scripts which are often exported by packages do not get this automatic scanning treatment.

This means you have to use the makeWrapper package and use either the makeWrapper or wrapProgram utility functions.

@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active May 4, 2024 13:20
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@EtiTheSpirit
EtiTheSpirit / Rain World Sound Tutorial.md
Last active May 4, 2024 13:20
Rain World New Sound Tutorial

Adding Custom SFX to Rain World

This is NOT for modifying existing sounds! To see how to modify existing sounds, visit Rain World Modding Wiki: Modification Files.

Sounds exist in-game abstractly, that is, rather than you the modder dealing with AudioClip/AudioSource instances (belonging to Unity), you will instead use sounds via their abstract SoundID class, which, like all other ExtEnum<T> types, contains a unique string ID of your choosing.

Part 1: Declaring code

Consider creating a new class in your mod, like so:

public static class Sounds {
:root {
--app-bg: #21252b;
--page-text: #e6e6e6;
--primary: #e6e6e6;
--primary-hover: #98c379;
--primary-visited: #c678dd;
--search-result-title: #61afef;
--search-result-title-hover: #c678dd;
--color-search-input: #282c34;
--color-search-input-border: #2c313c;
@alexengrig
alexengrig / ParagraphReplacer.java
Last active May 4, 2024 13:12
Apache POI: Paragraph text replacer
import org.apache.poi.xwpf.usermodel.PositionInParagraph;
import org.apache.poi.xwpf.usermodel.TextSegment;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFRun;
import java.util.List;
import java.util.Objects;
import java.util.function.Function;
/**
@pmkay
pmkay / top-brew-packages.txt
Last active May 4, 2024 13:12 — forked from r5v9/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@npaton
npaton / chat.js
Created February 28, 2024 00:14
Empirica 2 Javascript chat
import React, {
useEffect,
useRef,
useState,
} from "react";
import { usePlayer } from "@empirica/core/player/classic/react";
import { Loading } from "@empirica/core/player/react";
export function Chat({
scope,
@dvddarias
dvddarias / Arrows2DMovement.cs
Last active May 4, 2024 13:08
Unity editor script to precisely move, rotate and scale GameObjects on a 2D scene, using the arrow keys.
/*
Unity editor script to precisely move, rotate and scale GameObjects on 2D scenes, using the arrow keys.
Notes:
- To use it just include it on an "Assets/Editor" folder on your project.
- The action depends on the selected tool and the size of the movement depends on the Scene view zoom.
- The more "zoomed in" is the scene view the smaller is the movement step.
- It will work when the current Scene tab is in 2D mode and there is at least one gameObject selected,
otherwise the scene camera will move as usual :)
@squarism
squarism / iterm2.md
Last active May 4, 2024 13:06
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@Nikolaj-K
Nikolaj-K / category_theory_literature.md
Last active May 4, 2024 13:04
Recomended reading for the undergrad category theorist