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

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 / 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 / _service.md
Created November 17, 2016 02:50 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@Rand01ph
Rand01ph / GeneralSerializer.py
Created November 3, 2016 08:08 — forked from robintema/GeneralSerializer.py
General Django Rest Framework model serializer
import logging
from rest_framework import serializers
class GeneralModelSerializer(serializers.ModelSerializer):
""" General model serializer that will serialize a model object. It will return all the model fields.
"""
class Meta:
model = None
@Rand01ph
Rand01ph / rsyslog.conf
Created August 15, 2016 12:02 — forked from kamermans/rsyslog.conf
RainerScript version of /etc/rsyslog.conf for Ubuntu with rsyslog 8+
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf
#
# WARNING: This config has been converted to RainerScript format which could
# affect config files provided by other software in /etc/rsyslog.d/
# It should behave the same as the legacy-format config file that ships
@Rand01ph
Rand01ph / GAME_MASTER_v0_1.protobuf
Created July 18, 2016 08:48 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {