Skip to content

Instantly share code, notes, and snippets.

@ThePixelbrain
ThePixelbrain / ultimate-fix.md
Created May 15, 2023 20:53
[FTB Ultimate] Fix crash with recent Java 8 versions

The original FTB Ultimate for MC 1.4.7 crashes during startup with new versions of Java. This applies to any 1.4.7 modpack including Forestry or Railcraft. A crash might look like the following:

[SEVERE] [Railcraft] The mod Railcraft is expecting signature a0c255ac501b2749537d5824bb0f0588bf0320fa for source railcraft.jar, however there is no signature matching that description
[SEVERE] [Railcraft] Tampering Detected. Please re-download Railcraft.

Solution:

  1. Download this file, name it java.security and save it in the instances base folder (the .minecraft folder)
  2. Add the following Java argument to your game: -Djava.security.properties=java.security
@mberman84
mberman84 / gist:f092a28e4151dd5cecebfc58ac1cbc0e
Last active May 6, 2024 19:33
Steps to install Textgen WebUI
# this tutorial assumes conda and git are both installed on your computer
conda create -n tg python=3.10.9
conda activate tg
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui.git
cd text-generation-webui
pip install -r requirements.txt
# GPU only:
@yashgorana
yashgorana / msedge-debloat.reg
Last active May 6, 2024 19:32
Microsoft Edge debloat (using Group Policies)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
; edge
"BackgroundModeEnabled"=dword:00000000
"BingAdsSuppression"=dword:00000001
"CryptoWalletEnabled"=dword:00000000
"DiagnosticData"=dword:00000000
"EdgeAssetDeliveryServiceEnabled"=dword:00000000
"EdgeCollectionsEnabled"=dword:00000000
@ModieJun
ModieJun / answer1.py
Created November 29, 2020 13:16
Oursky Developer Pre-Test 2021 - Junjielin8888@gmail.com - Web / Mobile App developer INTERN Position
# JUNJIE LIN @ 2020
'''Time complexity
# The time complexity of this result is O(N) where N is the size of the second array B
# TIme complexity is O(N) because we have one iterative looop
# the worst case scenario would be havng to loop over all items in array B
#
# Possible speed ups - make B a set, which would make B have no duplicates
there wont be a need to loop over alphabets that have already been checked.
'''
@whitingx
whitingx / meta-tags.md
Created October 5, 2012 16:41 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@clintel
clintel / gist:1155906
Created August 19, 2011 02:40
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@TrevTV
TrevTV / ArcOn10.md
Last active May 6, 2024 19:20
Guide to installing Arc Browser on Windows 10

As this is not an official way of installing Arc, if you encounter any issues do NOT report them to the developers, they did not intend for people to be running Arc on Windows 10.

This guide is a bit more manual since I wanted to respect the developers' wishes and not directly link any downloads to the beta of Arc.

I don't know how this will work with updates, you may just need to redo the process to update it, but I'm not sure

  1. Install this font: https://aka.ms/SegoeFluentIcons (this fixes the icons since Windows 10 doesn't have this font installed by default)
  2. Download the Arc appinstaller and open it in notepad/some other text editor
  3. Copy everything inside and paste it into this website: https://codebeautify.org/xmlviewer (this is optional, but it makes reading and copying from the file easier)
  4. Find the mainpackage @Uri, it should end in Arc.x64.msix, and open that in a new tab. It should download that msix file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rampfox
rampfox / increase SWAP size in Raspberry Pi.md
Created June 24, 2022 02:40
tutorial How increase SWAP memory size in Raspberry Pi

increase SWAP size in Raspberry Pi

What is SWAP memory?

SWAP memory is basically parts of memory from the RAM (Random Access Memory) that enables an operating system to provide more memory to a running application or process than is available in physical random access memory (RAM). So if the physical memory (RAM) is full, we can use SWAP partition for extra memory resources. It is useful if we have low memory on our machine.

Step 1: Stop the SWAP

sudo dphys-swapfile swapoff