Skip to content

Instantly share code, notes, and snippets.

View ralmn's full-sized avatar

Mathieu Hirel ralmn

View GitHub Profile
package fr.ralmn.rush.object;
import net.minecraft.server.v1_5_R3.EntityVillager;
import net.minecraft.server.v1_5_R3.MerchantRecipe;
import net.minecraft.server.v1_5_R3.MerchantRecipeList;
import net.minecraft.server.v1_5_R3.NBTTagCompound;
import org.bukkit.*;
import org.bukkit.craftbukkit.v1_5_R3.CraftWorld;
import org.bukkit.craftbukkit.v1_5_R3.inventory.CraftItemStack;
import org.bukkit.enchantments.Enchantment;
@ralmn
ralmn / Spawner.java
Created June 26, 2013 14:49
Spawner, config RUSH
package fr.ralmn.rush.object;
import net.minecraft.server.v1_5_R3.*;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.craftbukkit.v1_5_R3.CraftWorld;
import org.bukkit.craftbukkit.v1_5_R3.block.CraftBlock;
import org.bukkit.craftbukkit.v1_5_R3.inventory.CraftItemStack;
import org.bukkit.inventory.ItemStack;
@ralmn
ralmn / tp4.py
Created October 2, 2014 18:53
TP4 AP IUT INFO ORS 2014
import math
import itertools
key="nbvcxwmlkjhgfdsqpoiuy treza"
def indiceLettre(t, l):
if l not in t:
return -1
for i in range(len(t)):
ltest = t[i]
@ralmn
ralmn / gist:b8f56a3b74628c28f01c
Last active August 29, 2015 14:09
Image Nexus
#!/usr/bin/python
# -*- coding: utf-8 -*-
URL="https://developers.google.com/android/nexus/images"
import urllib2
request = urllib2.Request(URL)
response = urllib2.urlopen(request)
# check content type:
lm =response.info().getheader('last-modified')
@ralmn
ralmn / tweetCommit.py
Created January 19, 2015 20:15
Git hook commit tweet
#!/usr/bin/python
from TwitterAPI import TwitterAPI
import sys
TWTTR_CUSUMER_KEY = ''
TWTTR_CUSUMER_SECRET = ''
TWTTR_USER_KEY = ''
TWTTR_USER_SECRET = ''
@ralmn
ralmn / style.css
Created March 4, 2015 17:02
VideoStream cast
.background {
background: rgb(255,0,0); /* Old browsers */
background: -moz-linear-gradient(top, rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(96,108,136,1)), color-stop(100%,rgba(63,76,107,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(96,108,136,1) 0%,rgba(63,76,107,1) 100%); /* W3C */
}
@ralmn
ralmn / sp-nginx.conf
Created July 7, 2015 18:04
Commununity Server Superpowers
server{
listen *:80;
server_name server.superpowers.ralmn.fr;
location / {
proxy_pass http://127.0.0.1:8001;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;

Keybase proof

I hereby claim:

  • I am ralmn on github.
  • I am ralmn (https://keybase.io/ralmn) on keybase.
  • I have a public key ASB2P7Eb1eJ6QKklZzysCy_ndGyIIp35vl8VZrOnt29WPAo

To claim this, I am signing this object:

@ralmn
ralmn / keybase.md
Created September 23, 2019 16:17
keybase.md

Keybase proof

I hereby claim:

  • I am ralmn on github.
  • I am ralmn (https://keybase.io/ralmn) on keybase.
  • I have a public key ASAVqh4g8JbVBo4Hlac_qTlf0LnBs6RxdIn1VKJyk6T7RAo

To claim this, I am signing this object:

@ralmn
ralmn / README.MD
Last active June 5, 2024 19:54
Lixee ZLinky_TIC - Zigbee2MQTT

Intégration du Lixee ZLinky_TIC dans Zigbee2MQTT

Le module Zlinky_TIC est maintenant intégré officillement dans Zigbee2MQTT grâce au travail de @vk496 !

Pour archives :