Skip to content

Instantly share code, notes, and snippets.

View ShiriNmi1520's full-sized avatar

てつ ShiriNmi1520

View GitHub Profile
switch(eject) {
case 1:
ejectRate = 1;
break;
case 2:
ejectRate = 2;
break;
case 3:
ejectRate = 3;
break;
@j7b3y
j7b3y / xorg.conf
Last active February 22, 2024 01:55
dummy display xorg conf
Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
# https://arachnoid.com/modelines/
# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
Modeline "1920x1008_60.00" 160.20 1920 2032 2240 2560 1008 1009 1012 1043 -HSync +Vsync
EndSection
Section "Device"
@rishitells
rishitells / Jest_GitLab_CI.md
Last active October 16, 2025 10:06
Setting up Jest tests and coverage in GitLab CI

Configuring Jest Tests in GitLab CI

1. Add GitLab CI configuration file in the root

In the root of your project, add .gitlab-ci.yml with the configuration below.

image: node:latest

stages:
@unitycoder
unitycoder / UnityPackage not importing to active unity
Last active April 3, 2023 09:40
Fix .UnityPackage for Opening into Currently Running Editor (instead of opening new Unity Instance)
- If you installed 32bit unity, and then removed it, it doesnt work
- install 5.6 64 bit to fix
or use registry fix below, IMPORTANT, insert some unity editor path there
@daopk
daopk / git-config-http-version.md
Last active February 22, 2025 09:40
Fix error : RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
git config --global http.version HTTP/1.1
git config --global http.postBuffer 157286400
@daicham
daicham / .gitlab-ci.yml
Last active October 9, 2025 01:21
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug