Skip to content

Instantly share code, notes, and snippets.

@DeamonMV
DeamonMV / main.go
Created November 6, 2023 19:06 — forked from walm/main.go
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@DeamonMV
DeamonMV / config.toml
Last active January 23, 2023 14:52
container 1.4 config file with insecure private docker registry
version = 2
root = "/var/lib/containerd"
state = "/run/containerd"
plugin_dir = ""
disabled_plugins = []
required_plugins = []
oom_score = 0
[grpc]
address = "/run/containerd/containerd.sock"
---
apiVersion: v1
kind: Service
metadata:
name: wordpress-mysql
namespace: jenkins
labels:
app: wordpress
spec:
ports:
@DeamonMV
DeamonMV / JCacC.yaml
Last active January 24, 2023 10:31
jcasc
jenkins:
agentProtocols:
- "JNLP4-connect"
- "Ping"
authorizationStrategy:
loggedInUsersCanDoAnything:
allowAnonymousRead: false
clouds:
- kubernetes:
containerCap: 10

Keybase proof

I hereby claim:

  • I am deamonmv on github.
  • I am deamonmv (https://keybase.io/deamonmv) on keybase.
  • I have a public key ASCku9t-JfnMHik8LpG_SnVwftL2-m6l_mPyJbBNMk4D3Qo

To claim this, I am signing this object:

@DeamonMV
DeamonMV / gist:8a287ce9cab809583c845fc100b2fc28
Created April 27, 2018 11:38
small feature to make search in history by using Up Down buttons
# add this line into /etc/inputrc
#
"\e[A": history-search-backward
"\e[B": history-search-forward
@DeamonMV
DeamonMV / docker-image-deletion.sh
Last active April 3, 2018 13:21
Script which is perform deletion of docker images
#!/bin/bash
if [ "$#" -eq "0" ]; then
echo "Need to specify docker image name"
echo "In case if you want to see how much images do you have, just specify image name"
echo "Also need to specify count of lines(i.e. count of images) which will be saved"
echo "Should be something like this: docker-image-deletion.sh 'jenkins' 2"
exit 1
fi
NUM="^[0-9]+&"