This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Usage: | |
## 1. Download the modpack zip from CurseForge | |
## 2. Extract zip to where you want your modpacks game directory to be (e.g. ~/minecraft/modpack/gamedir) | |
## 3. In terminal, run this script in your chosen game directory | |
## If successful, it should print out which mods its downloading, until it is done | |
## 4. Create an "Installation" in the Vanilla Minecraft Launcher | |
## * Version should be set to the correct modded minecraf version installed (eg. 1.16.4-forge-35.1.13) | |
## * Make sure you are running the correct java version, and are giving an appropriate amount of RAM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package encoding | |
import ( | |
"github.com/stretchr/testify/assert" | |
"testing" | |
) | |
type genericEntity struct { | |
ID int64 | |
Name string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actually-additions | |
ae2-stuff | |
appleskin | |
applied-energistics-2 | |
baubles | |
better-builders-wands | |
bibliocraft | |
blood-magic | |
botania | |
buildcraft |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local component = require("component") | |
local r = component.br_reactor | |
local capacity = r.getEnergyCapacity(); | |
while true do | |
s = r.getEnergyStored(); | |
if r.getActive() then | |
if s/capacity > 0.8 then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wp() { | |
cd "$HOME/workspace/$1" | |
} | |
__wp_path_comp() | |
{ | |
local cur_word="${COMP_WORDS[COMP_CWORD]}" | |
local wpcontent | |
wpcontent=`find $HOME/workspace/${cur_word}* -maxdepth 0 -type d -print 2> /dev/null | sed -e "s|$HOME/workspace/||" ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
API = require("buttonAPI") | |
local event = require("event") | |
local computer = require("computer") | |
local term = require("term") | |
local component = require("component") | |
local gpu = component.gpu | |
local rs = component.redstone | |
local colors = require("colors") | |
local sides = require("sides") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" This is a substitution command for VIM where you can replace the word´Sweden´ with the country you want to keep. | |
" Whenever I install Arch linux on my machines, I usually only keep the mirrors from my country. If you do the | |
" same thing, you can use this to do it fast! | |
:%s/^##\s\(Sweden\)\@!\(.*\)\nServer = .*\n// | |
" Do you have any suggestions on making it better? Please comment! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import xcb | |
from xcb.xproto import * | |
from PIL import Image, ImageFilter | |
XCB_MAP_STATE_VIEWABLE = 2 | |
def screenshot(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!import "common.groovy" | |
!import "springboot.groovy" | |
!import "postgres.groovy" | |
!merge "moreConfig.yaml" #!dominant | |
!merge "otherConfig.yaml" #!submissive | |
springboot: | |
- db: "postgres" |