Skip to content

Instantly share code, notes, and snippets.

View russellvt's full-sized avatar
💭
Probably on Gitlab or my own Hg Server...

Russell VT russellvt

💭
Probably on Gitlab or my own Hg Server...
View GitHub Profile
@chapinb
chapinb / Dockerfile
Created January 2, 2020 02:24
Elasticsearch 7.5.1 for ARMHF / Raspberry Pi
FROM adoptopenjdk/openjdk11:slim
RUN apt update &&\
apt install -y curl nginx
# SETUP NGINX PROXY
COPY default.nginx.conf /etc/nginx/sites-available/default
# SETUP ELASTIC 7.5.1
@thomasbnt
thomasbnt / code_colors_discordjs.md
Last active October 11, 2025 09:35
Code colors for embed discord.js

Here is an updated list of the colors that are currently implemented with a name. To using colors on discord.js, this is a typedef Colors, Colors.Aqua to get the Aqua color.

Name Int value Hex Code
Default 0 #000000
Aqua 1752220 #1ABC9C
DarkAqua 1146986 #11806A
Green 5763719 #57F287
DarkGreen 2067276 #1F8B4C
@romainl
romainl / colorscheme-override.md
Last active August 26, 2025 09:26
The right way to override any highlighting if you don't want to edit the colorscheme file directly

The right way to override any highlighting if you don't want to edit the colorscheme file directly

Generalities first

Suppose you have weird taste and you absolutely want:

  • your visual selection to always have a green background and black foreground,
  • your active statusline to always have a white background and red foreground,
  • your very own deep blue background.
@Birdie0
Birdie0 / ifttt-webhooks-extended-guide.md
Last active December 2, 2025 18:07
How to use Discord Webhooks

⚠️ This gist is no longer updated! For maintained, improved and even more extended guide click here.


How to use Discord Webhook

It's a JSON

First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.

@JPvRiel
JPvRiel / apt_pinning_priorities.md
Last active June 14, 2025 22:33
Apt package pinning and priorities
@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@tasdikrahman
tasdikrahman / python_tests_dir_structure.md
Last active February 10, 2025 22:15
Typical Directory structure for python tests

A Typical directory structure for running tests using unittest

Ref : stackoverflow

The best solution in my opinion is to use the unittest [command line interface][1] which will add the directory to the sys.path so you don't have to (done in the TestLoader class).

For example for a directory structure like this:

new_project

├── antigravity.py

@AdamOssenford
AdamOssenford / ansible-summary.md
Created January 18, 2016 00:50
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@arilivigni
arilivigni / ci-workflow-defaults.yml
Last active May 6, 2024 19:16
Jenkins Job Builder Example
- defaults:
name: ci-workflow-provision
description: |
Managed by Jenkins Job Builder. Do not edit via web.
concurrent: true
scm:
- git:
url: 'https://code.engineering.redhat.com/gerrit/ci-ops-central'
branches:
- origin/master