Skip to content

Instantly share code, notes, and snippets.

View AmauryCarrade's full-sized avatar
🍊
I don't hate you

Amaury Carrade AmauryCarrade

🍊
I don't hate you
View GitHub Profile
@blha303
blha303 / README.md
Last active March 9, 2016 13:51
Skype<->IRC Bridge. Get ROOM id from https://gist.github.com/blha303/9913693. Getting an error? Remove Transport='x11'. Still getting an error? Join irc.esper.net #blha303 and ask.

Skype<->IRC Bridge

I hate Skype. So much. Words can't even describe. It's slow, it's bloated, people keep telling me to get on Skype, I keep telling them to get on IRC, but I never thought there was a way to bridge the two. But there is. And it's super simple. All you need is a VPS. Windows or Linux, doesn't matter, but I'm using Linux. Python is cross-platform and I tested the bot on Windows, so I can help out if you can't get this working there. irc.esper.net #blha303

  1. Install Python 2.7.*. I use 2.7.3 because it's installed by default in Ubuntu, among other reasons.
  2. Get pip or setuptools and install Skype4Py and irc.
  3. Get the script, the other file in this gist. (If you're not using X11 [for instance, if you're using Windows], remove Transport='x11' from near the bottom of the file. Not the whole line, just those exact characters.)
  4. See the ROOM variable on line 8? Know how to set that? Well, let's go.
  • This script lists all open chats, which includes both P2P and grou

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.


Damian Bushong

<?php
/*
* WTFPL
*
* Utilisation :
* 1) Ouvrir minecraft moddé
* 2) Aller dans les options de Not Enough Items
* 3) Tools > Data Dumps > Blocks/Items > Dump
* 4) Dans le dossier minecraft/dumps, copier item.csv et le mettre au même endroit que ce script
@firm1
firm1 / scoring.py
Created November 12, 2014 16:12
fonctions de scoring d'un sujet de forum
from zds.forum.models import TopicFollowed, Topic, Post
from zds.utils.models import CommentLike, CommentDislike
unit_mark_activity = {
"follow": { # points lié au suivi du topic
"site": 1, # suivre un topic sur le site
"email": 2, # suivre un topic par email
}
"post" : { # points liés a tous les messages sauf au premier post
"new": 2, # nouveau message
@Zulko
Zulko / cubes_pyode_vapory.py
Last active February 16, 2025 12:05
3D cubes animation with PyODE and Vapory
"""
Physics simulation with PyODE followed by a (basic) rendering with Vapory
See the result here: http://i.imgur.com/TdhxwGz.gifv
Zulko 2014
This script is placed in the Public Domain (Licence Creative Commons 0)
"""
@notslang
notslang / twitter-verified-icon.svg
Last active March 22, 2023 14:01
The blue verified icon, extracted from Twitter's icon font & resized using Inkscape
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AmauryCarrade
AmauryCarrade / generator.php
Last active December 26, 2015 15:57
Bukkit permissions generator (published under the CeCILL-B licence)
<?php
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
/* ** *** Plugin.yml generation *** ** */
(function(){
var networks = [{
url: "https://squareup.com/login?return_to=%2Ffavicon.ico",
name: "Square"
}, {
url: "https://www.instagram.com/accounts/login/?next=%2Ffavicon.ico",
name: "Instagram"
}, {
url: "https://twitter.com/login?redirect_after_login=%2Ffavicon.ico",
name: "Twitter"
anonymous
anonymous / config.json
Created June 8, 2016 18:53
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.