Skip to content

Instantly share code, notes, and snippets.

View iopsthecloud's full-sized avatar

Renaud R. iopsthecloud

View GitHub Profile
#!/usr/bin/sudo ruby
#
# revealer.rb -- Deobfuscate GHE .rb files.
#
# This is simple:
# Every obfuscated file in the GHE VM contains the following code:
#
# > require "ruby_concealer.so"
# > __ruby_concealer__ "..."
@Benoitlecorre
Benoitlecorre / algo_apb_proper.sql
Last active May 26, 2024 14:43
Code source d'Admission post-bac envoyé par le ministère de l'Education nationale
-- Génération automatique de classements aléatoires en production, pour les FNS
-- ===================================
FUNCTION gen_class_aiea_v1_relatif_grp( o_g_ea_cod_ins IN varchar2, o_g_ti_cod IN number, o_c_gp_cod IN number, o_g_tg_cod IN number, iogin IN varchar2, type_login IN number, mode_dev IN number, confirm IN number, saio IN number, nip IN varchar2, indic IN number, mess_err out varchar2, mess_aff out varchar2)
RETURN number IS
retour number;
X varchar2(2);
dummy number;
dummy2 number;
l_c_gp_fIg_seI c_grp.c_gp_flg_sel%type;
@mbodo
mbodo / Linux - Systemd cheatsheet.md
Last active March 15, 2024 18:25
Systemd cheatsheet

Linux - Systemd cheatsheet

systemctl

Activates a service immediately:

systemctl start foo.service

Deactivates a service immediately:

@HopHouse
HopHouse / coach_create.html
Last active July 10, 2016 10:47
inline_formset in django
{% extends "staff_base.html" %}
{% load bootstrap3 %}
{% block title %}Salamander{% endblock %}
{% block content_title %}
<h1 class="page-header">Create coach</h1>
{% endblock %}
{% block content %}
version: '2'
services:
logspout:
image: gliderlabs/logspout
container_name: logspout
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- SYSLOG_STRUCTURED_DATA=- X-OVH-TOKEN="<set-your-token-here>"
ports:
@bbuivn
bbuivn / slack_shinken_services.sh
Last active March 21, 2017 17:37 — forked from matt448/slack_nagios.sh
Script to post Shinken service notifications into a Slack channel
#!/bin/bash
# This script is used by Shinken to post alerts for services into a Slack channel
# using the slackcli command line. Create the channel,
# and integration first and then add this notification script in your
# Shinken configuration.
#
# You have to set enable_environment_macros=1 in the shinken.cfg configuration file.
#
# All variables that start with NAGIOS_ are provided by Shinken as
@random-robbie
random-robbie / docker.sh
Created November 20, 2015 12:10
Install Docker Ubuntu Wily
#!/bin/bash
sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-wily main" >> /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install linux-image-generic-lts-trusty -y
sudo apt-get install docker-engine -y
sudo apt-get -y install python-pip
sudo pip install -U docker-compose
@BaptisteDixneuf
BaptisteDixneuf / OVH_Public_Cloud_Storage_API_OpenStack_Swift.md
Created June 25, 2015 21:23
OVH Public Cloud Object Storage et API OpenStack Swift
diff --git "a/C:\\Users\\JIANG_~1\\AppData\\Local\\Temp\\TortoiseGit\\hac7318.tmp\\hackrf-a1b8535-left.c" "b/C:\\Users\\jiang_000\\Desktop\\hackrf\\host\\libhackrf\\src\\hackrf.c"
index 2902a80..53b0259 100644
--- "a/C:\\Users\\JIANG_~1\\AppData\\Local\\Temp\\TortoiseGit\\hac7318.tmp\\hackrf-a1b8535-left.c"
+++ "b/C:\\Users\\jiang_000\\Desktop\\hackrf\\host\\libhackrf\\src\\hackrf.c"
@@ -410,12 +410,15 @@ static int hackrf_open_setup(libusb_device_handle* usb_device, hackrf_device** d
//int speed = libusb_get_device_speed(usb_device);
// TODO: Error or warning if not high speed USB?
-
+ int current_configuration = 0;
@yunano
yunano / consul.service
Created May 1, 2015 15:52
/etc/systemd/system/consul.service
[Unit]
Description=consul agent
Requires=network-online.target
After=network-online.target
[Service]
EnvironmentFile=-/etc/sysconfig/consul
Environment=GOMAXPROCS=2
Restart=on-failure
ExecStart=/usr/local/sbin/consul agent $OPTIONS -config-dir=/etc/consul.d