Skip to content

Instantly share code, notes, and snippets.

View coline-carle's full-sized avatar

Coline Carle coline-carle

View GitHub Profile
@coline-carle
coline-carle / character_with_realm_name.json
Last active October 14, 2017 13:32
character -> guild field has not realm name
{
"lastModified": 1476298642000,
"name": "웅검",
"realm": "Hellscream",
"battlegroup": "격노의 전장",
"class": 1,
"race": 5,
"gender": 0,
"level": 90,
"achievementPoints": 5480,
[Unit]
Description=Mount my NBD Volume at Boot after the network is up but before nginx
Before=nginx.service
After=network-online.target
[Mount]
What=UUID="123b123f-b123-12cd-1234-1ee12cba12ce"
Where=/data
Type=ext4
Options=defaults,noatime
certifi==2017.7.27.1
chardet==3.0.4
idna==2.6
lxml==3.8.0
python-dateutil==2.6.1
requests==2.18.4
six==1.10.0
SQLAlchemy==1.1.14
urllib3==1.22
defmodule ArmoryCrawler.CharacterSupervisor do
use Supervisor
def start_link(_) do
{:ok, supervisor} = Supervisor.start_link(__MODULE__, [], name: __MODULE__)
case ArmoryCrawler.env() do
:prod ->
Supervisor.start_child(__MODULE__, ["eu"])
Supervisor.start_child(__MODULE__, ["us"])
Supervisor.start_child(__MODULE__, ["kr"])
upstream netdata {
server localhost:19999;
}
server {
listen 80;
server_name {{ domain }};
access_log /var/log/nginx/netdata_access.log combined;
error_log /var/log/nginx/netdata_error.log warn;
[
{
"loc": "http://www.wowhead.com/npc=1/waypoint-only-gm-can-see-it",
"lastmod": "2015-10-18T17:05:27+00:00",
"type": "npc",
"id": "1"
},
{
"loc": "http://www.wowhead.com/npc=2/imp-minion",
"lastmod": "2013-01-02T06:53:02+00:00",
{ classification: 4,
id: 3773,
location: [ 331 ],
maxlevel: 26,
minlevel: 26,
name: 'Akkrilus',
react: [ -1, -1 ],
type: 3,
coordinatesList: { '331': { '0': { count: 1, coords: [ [ 25, 60.4 ] ] } } },
displayId: 1912 }
defmodule Armory.Worker do
use GenServer
@timeout 5000
def start_link(_) do
GenServer.start_link(__MODULE__, nil, [])
end
def get(module, fun, args) do
#!/bin/bash
###########################
####### LOAD CONFIG #######
###########################
while [ $# -gt 0 ]; do
case $1 in
-c)
if [ -r "$2" ]; then
local AtlasLoot = _G.AtlasLoot
local ItemString = {}
AtlasLoot.ItemString = ItemString
local BonusIDInfo = AtlasLoot.BonusIDInfo
-- lua
local format = string.format
local tbl_concat = table.concat