Skip to content

Instantly share code, notes, and snippets.

View Zodzie's full-sized avatar
🎯
Focusing

Ryan R Zodzie

🎯
Focusing
View GitHub Profile
#include <stdio.h>
#include <Windows.h>
#include <winternl.h>
#pragma comment(lib,"ntdll.lib") // Need to link with ntdll.lib import library. You can find the ntdll.lib from the Windows DDK.
typedef struct _SYSTEM_PROCESS_INFO
{
ULONG NextEntryOffset;
ULONG NumberOfThreads;
@Zodzie
Zodzie / haproxy.cfg
Created November 13, 2019 18:44
haproxy.cfg for docker registry:"2
global
daemon
maxconn 256
user haproxy
group haproxy
chroot /var/lib/haproxy
ssl-default-bind-options no-sslv3 no-tlsv10
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS
ssl-default-server-options no-sslv3 no-tlsv10
ssl-default-server-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS
networks:
firstnet:
driver: bridge
services:
app:
image: x
networks:
- firstnet
when:
- (sitename == "home" or sitename == "away")
- not vagrant
- not url == "home-staging"
- not url == "away-staging"
- and config = "all"
# file:
# path: "nginx-config.diff.out"
# state: absent
@Zodzie
Zodzie / gist:4b42c35ff95844bf701865f132352c5d
Last active August 26, 2018 18:15
Start Command and Output
/usr/bin/ansible-playbook -vvvvv /apps/provisioning/ansible/playbook.yml -i /apps/provisioning/ansible/inventory -e action=configure --check
FULLL ERROR:
TASK [haproxy : template] ****************************************************************************************************************************************
task path: /apps/provisioning/ansible/roles/haproxy/tasks/configure.yml:1
<208> ESTABLISH SSH CONNECTION FOR USER: root
<208> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
@Zodzie
Zodzie / haproxy.cfg.j2
Last active August 26, 2018 18:14
template_actions
{% for host in groups['users'] %}
acl {{ hostvars[host].username }} path_reg -i ^\/{{ hostvars[host].username }}[^\.]*
use_backend {{ hostvars[host].username }}_back if {{ hostvars[host].username }}
{% endfor %}
{% if hostvars[host].subscription == 'pro' %}
acl {{ hostvars[host].username }} hdr(host) -i {{ hostvars[host].username }}.com
use_backend {{ hostvars[host].username}}_back if {{ hostvars[host].username }}
{% endif %}
[root@kubernetes ansible]# cat playbook.yml
- hosts: haproxy
tasks:
- import_role:
name: haproxy
<!--==========================FreiChatX===START========================-->
<!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code
Then remove FreiChatX tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->
<?php
global $current_user;
get_currentuserinfo();
$ses=$current_user->ID;
games !savings rank games
SavingsBot games, games is already ranked.
ChanServ Access list for #gamecorner:
ChanServ Num Lev Nick
ChanServ 1 1000 Zodz
ChanServ 2 9 CoraDyceBot
ChanServ 3 10 SavingsBot
ChanServ 4 5 Chess
ChanServ 5 5 Games
ChanServ 6 5 Rdraglon