Skip to content

Instantly share code, notes, and snippets.

View ShahinSorkh's full-sized avatar
💭
work work..

Shahin Sorkh ShahinSorkh

💭
work work..
View GitHub Profile
echo -e "\033[31;6m \033[0m"
echo -e "\033[31;6m \033[0m"
echo -e "\033[31;6m \033[0m"
echo -e "\033[31;6m ## \033[0m"
echo -e "\033[31;6m ### \033[0m"
echo -e "\033[31;6m ###** #########*####**** \033[0m"
echo -e "\033[31;6m ## ############********* #* \033[0m"
echo -e "\033[31;6m *######*****
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 15, 2024 16:21
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@g0t4
g0t4 / _README.md
Created November 30, 2016 03:46
Setting up a Docker Hub registry mirror on a Synology NAS

Instructions

  • Save the docker-compose.yml and config.yml in the same directory on one of your volumes on the NAS.
  • SSH in and use docker-compose up -d
  • Test the mirror with curl --head http://NAS-IP:55000
  • Start up docker daemons with the following option or put this in the daemon config file or copy into Docker for Mac/Windows settings. --registry-mirror=http://NAS-IP:55000
  • Pull an image and then check that it is cached in your mirror with curl http://NAS-IP:55000/v2/_catalog
    • or check that a large image isn't slow after the first pull :)

Notes

@ralavay
ralavay / vim-nginx-conf-highlight.sh
Last active November 5, 2024 02:16
Enable syntax highlight for Nginx conf file in Vim
#!/bin/bash
#
# Highligh Nginx config file in Vim
# Download syntax highlight
mkdir -p ~/.vim/syntax/
wget http://www.vim.org/scripts/download_script.php?src_id=19394 -O ~/.vim/syntax/nginx.vim
# Set location of Nginx config file
cat > ~/.vim/filetype.vim <<EOF

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a