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
from discord.ext import commands | |
import discord | |
import os | |
import json | |
import aiohttp | |
import io | |
from PIL import Image | |
class Configs_Commands: |
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
from discord.ext import commands | |
import discord | |
import shlex | |
class Embed_Commands: | |
def __init__(self, bot): | |
self.bot = bot | |
@commands.command(name='embed', aliases=['embedtest','testembed','embd','embdtest','testembd']) |
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
from discord.ext import commands | |
import discord | |
def build_embed(ctx, **kwargs): | |
# Set default parameters | |
parameters = { | |
'author_avatar_url': ctx.author.avatar_url, | |
'author_name': ctx.author.name, |
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
- name: "Replace pistoldm Files" | |
uri: | |
url: "https://{{ git.server }}/{{ git.project }}/raw/master/{{ item[1] }}/{{ item[0].path | regex_search('csgo/.*') | dirname }}/{{ to_update }}" | |
headers: | |
PRIVATE-TOKEN: "{{ git.token }}" | |
status_code: 200 | |
dest: "{{ item[0].path }}" | |
when: "item[0] is defined and item[0].path is defined" | |
with_nested: | |
- "{{ files_to_update.results | map(attribute='files') | list }}" |
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
# Create list using a specific attribute value | |
## Original task | |
- name: "Set fact" | |
set_fact: | |
hdd_list: "{{ hdd_list|default([]) + [item.key] }}" | |
with_dict: "{{ ansible_facts.ansible_devices }}" | |
when: item.value.model == "Virtual disk" | |
## Output | |
"hdd_list": [ |
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
'use strict' | |
const express = require('express') | |
const bodyParser = require('body-parser') | |
const SrcdsLogParser = require('better-srcds-log-parser').SrcdsLogParser | |
// Create a new instance of express | |
const app = express() | |
const parser = SrcdsLogParser() |
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
TASK [netdata : Installation pré-requis] *************************************** | |
skipping: [temp-lampion1] => (item=[u'autoconf', u'autoconf-archive', u'autogen', u'automake', u'curl', u'gcc', u'git', u'jq', u'libmnl-devel', u'libuuid-devel', u'make', u'pkgconfig', u'zlib-devel']) | |
NO MORE HOSTS LEFT ************************************************************* | |
RUNNING HANDLER [services-config : restart nrpe] ******************************* | |
RUNNING HANDLER [services-config : restart crond] ****************************** | |
to retry, use: --limit @postinstall.retry |
NewerOlder