- create a
server
folder - Save the
docker-compose.yml
file inside - Create a folder
data
&modpacks
at the same location with thedocker-compose.yml
file. - Add the modpack server file as AS A ZIP that you downloaded from the https://www.curseforge.com/minecraft/modpacks/ website. In my case : https://www.curseforge.com/minecraft/modpacks/all-the-mods-8/download/4091807
- Change in the
docker-compose.yml
file theGENERIC_PACK
and change theSERVER_FILE_NAME
with you server filename. - Add yourself as
OPS
- Run the server with
docker compose up -d
This file contains 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
var str = 'class ಠ_ಠ extends Array {constructor(j = "a", ...c) {const q = (({u: e}) => {return { [`s${c}`]: Symbol(j) };})({});super(j, q, ...c);}}' + | |
'new Promise((f) => {const a = function* (){return "\u{20BB7}".match(/./u)[0].length === 2 || true;};for (let vre of a()) {' + | |
'const [uw, as, he, re] = [new Set(), new WeakSet(), new Map(), new WeakMap()];break;}f(new Proxy({}, {get: (han, h) => h in han ? han[h] ' + | |
': "42".repeat(0o10)}));}).then(bi => new ಠ_ಠ(bi.rd));'; | |
try { | |
eval(str); | |
} catch(e) { | |
alert('Your browser does not support ES6!') | |
} |
This file contains 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 React from 'react'; | |
import PropTypes from 'prop-types'; | |
import classNames from 'classnames'; | |
const ANIMATION_DURATION = 1000; | |
class BatchDropZone extends React.Component { | |
static propTypes = { |
This file contains 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
usage: | |
------ | |
// include codemirror.js, addon/mode/overlay.js | |
// include async typo.js from https://github.com/cfinke/Typo.js/pull/45 | |
// include loadTypo.js from: https://github.com/cfinke/Typo.js/pull/50 | |
// loading typo + dicts takes a while so we start it first | |
// hosting the dicts on your local domain will give much faster loading time | |
// english dictionaries taken from https://github.com/cfinke/Typo.js/pull/47 |
This file contains 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
/** | |
* Usage: | |
typeSwitch(someInstance, defaultvalue) | |
.when(MyClass, i => result) | |
.when(OtherClass, i => otherResult) | |
.get() | |
In the expressions, the type of the 'i' param should be inferred correctly, see the attribute default value checks | |
*/ | |
export function typeSwitch<T, R>(instance: T, defaultValue?: R): TypeSwitcher<T, R> { |
This file contains 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 { combineReducers } from 'redux'; | |
import users from './reducers/users'; | |
import posts from './reducers/posts'; | |
export default function createReducer(asyncReducers) { | |
return combineReducers({ | |
users, | |
posts, | |
...asyncReducers | |
}); |
This file contains 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 React from 'react' | |
import ReactDOM from 'react-dom' | |
const Hello = ({name}) => <h1>Hello {name}!</h1> | |
ReactDOM.render( | |
<Hello name={"vjeux"}/>, | |
document.body.appendChild(document.createElement("div")) | |
) |
This file contains 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
/* | |
error method makes it so i don't have to open up dev tools to see what went wrong. | |
must be in different <script> from your app code. | |
I use it in combination with Auto Reload https://addons.mozilla.org/en-US/firefox/addon/auto-reload/?src=api | |
*/ | |
window.onerror = function(msg, url, line, col, error) { | |
m.render(document, | |
m("html", [ | |
m("body", [ | |
m("table", [ |
This file contains 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 mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
NewerOlder