Skip to content

Instantly share code, notes, and snippets.

View Rand01ph's full-sized avatar
⚠️
raise NotImplementedError

9r0k Rand01ph

⚠️
raise NotImplementedError
View GitHub Profile
@Rand01ph
Rand01ph / docker-compose-gitlab.yml
Created December 5, 2023 08:29 — forked from alirezazadeh77/docker-compose-gitlab.yml
script for back up from gitlab and setup
services:
gitlab:
image: 'gitlab/gitlab-ce:14.6.0-ce.0'
restart: always
hostname: 'localhost'
ports:
- "443:443"
- "80:80"
- "22:22"
environment:
@Rand01ph
Rand01ph / Get JIRA User Data via email as csv attachment .groovy
Created November 24, 2022 08:21 — forked from vikrantyadav11/Get JIRA User Data via email as csv attachment .groovy
Get jira users along with Email Address, status, login data and attach csv file
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.login.LoginManager
import com.atlassian.mail.Email
import groovy.xml.MarkupBuilder
import org.jsoup.Jsoup
import javax.mail.internet.MimeBodyPart
import javax.mail.internet.MimeMultipart
import java.text.SimpleDateFormat
diff --git a/test/images/regression-issue-74839/main.go b/test/images/regression-issue-74839/main.go
index 2d46da95493..516abae09dc 100644
--- a/test/images/regression-issue-74839/main.go
+++ b/test/images/regression-issue-74839/main.go
@@ -51,12 +51,12 @@ func main() {
func probe(ip string) {
log.Printf("probing %v", ip)
- ipAddr, err := net.ResolveIPAddr("ip4:tcp", ip)
+ ipAddr, err := net.ResolveIPAddr("ip:tcp", ip)

Tested only on Ubuntu 18.04 and KDE Neon User Edition (based on Ubuntu 18.04).

will probably work on other newer versions, with no changes, or with few changes in non-python dependencies (apt-get packages)

NOTE: Don't create a .sh file and run it all at once. It will not work. Copy, paste, and execute each command below manually. :-)

# DO NOT RUN THIS AS A ROOT USER
# Enter your password when prompted.

Tested only on Ubuntu 18.04 and KDE Neon User Edition (based on Ubuntu 18.04).

will probably work on other newer versions, with no changes, or with few changes in non-python dependencies (apt-get packages)

NOTE: Don't create a .sh file and run it all at once. It will not work. Copy, paste, and execute each command below manually. :-)

# DO NOT RUN THIS AS A ROOT USER
# Enter your password when prompted.
@Rand01ph
Rand01ph / proxy.sh
Created November 28, 2019 12:44
proxy
#只对github.com
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
#取消代理
git config --global --unset http.https://github.com.proxy
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by Rand01ph on 2019/10/9
import requests
import argparse
import time
import curses
stdscr = curses.initscr()
@Rand01ph
Rand01ph / wsgi.py
Created September 26, 2019 05:59 — forked from rbarrois/wsgi.py
Django uWSGI warmup
# -*- coding: utf-8 -*-
import io
import os
import sys
import time
import wsgiref.util
import uwsgidecorators
@Rand01ph
Rand01ph / k8s_make_in_china.sh
Created April 29, 2019 15:31
穿越GFW make k8s 源码
docker pull gcr.azk8s.cn/google_containers/kube-cross:v1.12.4-1
docker tag 02d0ab9d1c60 k8s.gcr.io/kube-cross:v1.12.4-1