Skip to content

Instantly share code, notes, and snippets.

View RushOnline's full-sized avatar

Eugene RushOnline

  • Intech
  • Great Novgorod, Russia
View GitHub Profile
@RushOnline
RushOnline / config.toml
Created October 18, 2021 14:46 — forked from ryankurte/config.toml
Set gitlab runner to use git bash
[[runners]]
name = "tt708-windows"
url = "https://gitlab.com/"
token = "[REDACTED]"
executor = "shell"
shell = "bash"
builds_dir="/c/gitlab-runner/builds/"
cache_dir="/c/gitlab-runner/cache/"
[runners.cache]
[runners.cache.s3]
@RushOnline
RushOnline / README.md
Created February 15, 2021 22:40 — forked from sqeezy/README.md
PowerShell script to have all variables from vcvars32.bat from Visual Studio

Taken from here for prosperity.

Put this in %USERDIR%/Documents/WindowsPowerShell/profile.ps1, run a PowerShell terminal and you should see the messages "Visual Studio 2015..." pop up.

@RushOnline
RushOnline / mount_qcow2.md
Created February 25, 2020 00:05 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@RushOnline
RushOnline / Dockerfile
Created April 3, 2018 12:38 — forked from robertbasic/Dockerfile
Docker build for Qt 5.6.2 and Python 3.5.3 on CentOS 6.8
FROM centos:6.8
RUN yum -y install centos-release-scl && \
yum -y update && \
yum -y install devtoolset-3-gcc devtoolset-3-gcc-c++ devtoolset-3-binutils \
curl tar perl make openssl-devel \
libxcb libxcb-devel xcb-util xcb-util-devel \
libXrender libXrender-devel xcb-util-wm xcb-util-wm-devel \
xcb-util-image xcb-util-image-devel \
xcb-util-keysyms xcb-util-keysyms-devel \
@RushOnline
RushOnline / list.h
Created December 5, 2016 17:28 — forked from evanslai/list.h
Linux kernel linked list, modified for userspace
#ifndef _LINUX_LIST_H
#define _LINUX_LIST_H
#include <stdio.h>
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.
; in the name of ALLAH
; /etc/systemd/system/stunnel.service or /usr/lib/systemd/system/stunnel.service
; change "{{ config.conf }}" by your config path.
[Unit]
Description=SSL tunnel for network daemons
After=syslog.target
[Service]
ExecStart=/usr/sbin/stunnel {{ config.conf }}
@RushOnline
RushOnline / qtyaml.h
Created February 20, 2016 09:03 — forked from brcha/qtyaml.h
Qt Yaml support using yaml-cpp library
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* ***** END LICENSE BLOCK ***** */
/*
pm list packages -f
--- rp-pppoe-3.8/src/pppoe-server.c 2010-07-15 16:42:39.031057949 +0400
+++ rp-pppoe-3.8/src/pppoe-server.c 2010-07-15 16:48:14.078605821 +0400
@@ -97,6 +97,7 @@
#define MAX_SERVICE_NAMES 64
static int NumServiceNames = 0;
static char const *ServiceNames[MAX_SERVICE_NAMES];
+static int ReactionOnNoServiceName = 1;
PppoeSessionFunctionTable DefaultSessionFunctionTable = {
PppoeStopSession,