Skip to content

Instantly share code, notes, and snippets.

@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Dec 18, 2020
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Saturday, December 19, 2020, 12:40:32 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.0.4.0]: 0Harmony(2.0.2), HarmonyMod(1.0.4)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:8.0.1]: 0Harmony(av:2.0.2,fv:1.2.0.1), HugsLib(av:1.0.0,fv:8.0.1)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): VanillaStorytellersExpanded(1.0.0), VFECore(av:1.1.7,fv:1.1.9)
EdB Prepare Carefully(EdB.PrepareCarefully)[mv:1.2.1]: 0Harmony(2.0.2), EdBPrepareCarefully(av:1.1.1,fv:1.2.1)
Zombieland(brrainz.zombieland)[mv:2.0.9.0]: 0Harmony(av:2.0.2,fv:1.2.0.1), Firebaser(0.9.6), ZombieLand(2.0.9)
Increased Stack(Taveron.IncreasedStack): (no assemblies)
@angel-mora
angel-mora / trello_json_to_org.rb
Created Dec 18, 2020 — forked from link0ff/trello_json_to_org.rb
Convert Trello JSON export files to Org-mode format
View trello_json_to_org.rb
#!/usr/bin/env ruby
# trello_json_to_org.rb
# convert JSON files exported from Trello to https://orgmode.org/ format
#
# Copyright (C) 2020 Juri Linkov <juri@linkov.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
View ML0101EN-RecSys-Content-Based-movies-py-v1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View untrusted-lvl3-solution.js
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
View handle.ts
/*
Typescript erroring:
---
Type 'Promise<(T | undefined)[] | [any, undefined]>' is not assignable to type 'Promise<[void | Error, void | T]>'.
Type '(T | undefined)[] | [any, undefined]' is not assignable to type '[void | Error, void | T]'.
Type '(T | undefined)[]' is not assignable to type '[void | Error, void | T]'.
Target requires 2 element(s) but source may have fewer.ts(2322)
*/
export default function <T> (promise: Promise<T>): Promise<[Error | void, T | void]> {
View Setup env with Conda on SageMaker
#whenever Conda is not recognized automatically
source ~/anaconda3/etc/profile.d/conda.sh
#add environment to the list of existing environment present in SageMaker
python -m ipykernel install --user --name ganbert
View openpanzer-save.json
{"scenario":{"name":"Lodz - Warta River","maxTurns":38,"date":"1939-09-04T04:00:00.000Z","atmosferic":1,"latitude":3,"ground":0,"turnsPerDay":14,"dayTurn":0,"reinforcements":{"3":[{"row":37,"col":42,"unit":{"eqid":270,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":8,"facing":10,"flag":16,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":55,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":3,"id":1},{"row":37,"col":37,"unit":{"eqid":268,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":9,"facing":5,"flag":16,"destroyed":false,"carrier":0,"moveLeft":2,"ammo":7,"fuel":0,"hasAnimation":false,"hits":0,"experience":89,"entrenchment":0,"entre
@lstn196
lstn196 / nginxproxy.md
Last active Dec 18, 2020 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?
View nginxproxy.md

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@xtrator
xtrator / json
Created Dec 18, 2020
Categories
View json
[
{
"name": "Outdoors",
"description": "This category is for pictures focused on outdoor ambiences"
},
{
"name": "Cats",
"description": "Meow Meow, the internet loves cats!"
},
{
View install_go_on_apple_silicon_arm_m1.md

Install Go (v1.16beta) on Apple Silicon, use with Homebrew

Go is not available to install via Homebrew at the time of this writing. (Dec 18th 2020)

Go v1.16 will ship with Apple Silicon support in February of 2021, however the Go 1.16 beta can be installed from the Go website and can be linked to brew so that other brew packages that depend on Go may use it.

  1. Install go1.16beta1.darwin-arm64.pkg.
  2. Run mkdir /opt/homebrew/Cellar/go
  3. Create a symlink to the Go v1.16 pkg installation with ln -s /usr/local/go /opt/homebrew/Cellar/go/1.16
  4. Run brew link go
You can’t perform that action at this time.