Skip to content

Instantly share code, notes, and snippets.

View ifsc01's full-sized avatar
Focusing

ifsc01 ifsc01

Focusing
View GitHub Profile
error: error validating "staging-job-migrate.yaml": error validating data: ValidationError(Job.spec.template.spec.containers[0].envFrom[0]): unknown field "name" in io.k8s.api.core.v1.EnvFromSource; if you choose to ignore these errors, turn validation off with --validate=false
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@ifsc01
ifsc01 / 2.graphql
Last active December 2, 2018 16:44
{
order(id: 1) {
id
shopId
points
tranNo
}
user(id: 1) {
id
def ss(conn, _params) do
user_info = Base.encode64("aes-128-cfb:pass")
str = Enum.join(List.duplicate("ss://#{user_info}@192.168.100.1:8888#Example1", 10), "\n")
text conn, Base.encode64(str)
end
{
"stream":"btcusdt@ticker",
"data":{
"e":"24hrTicker",
"E":1526416545771,
"s":"BTCUSDT",
"p":"-278.21000000",
"P":"-3.164",
"w":"8647.34237711",
"x":"8793.80000000",
{
"ch":"market.overview",
"ts":1526409473556,
"status":"ok",
"data":[
{
"open":0.084335,
"close":0.083782,
"low":0.083522,
"high":0.084950,
use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# BooksWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don't forget to configure the url host to something meaningful,
# Phoenix uses this information when generating URLs.
- client = GameManager.get_client!(id)
+ client = GameManager.get_client!(id) |> Center.Repo.preload(:server_group)
+ # require IEx; IEx.pry
+ # Repo.all from s in Server, join: c in ServerGroupServer, where: c.server_group_id == 3 and c.server_id == s.id
+ # Repo.one from c in Client, where: c.id == 1, preload: [server_group: :servers]
defmodule CenterWeb.Router do
use CenterWeb, :router
require Ueberauth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
{
"uid":"lidashuang",
"strategy":"Elixir.Ueberauth.Strategy.Gitlab",
"provider":"gitlab",
"info":{
"urls":{
"website_url":"",
"web_url":"https://git.3303033.com/lidashuang",
"avatar_url":"https://git.3303033.com/uploads/-/system/user/avatar/3/avatar.png"
},