Skip to content

Instantly share code, notes, and snippets.

@richard4339
richard4339 / README.md
Created January 5, 2022 14:33
Symfony Console Completion
$ bin/console completion bash > /etc/bash_completion.d/console

Source

@richard4339
richard4339 / 1
Created July 28, 2012 14:40
DD-WRT IPV6
interface br0 {
AdvSendAdvert on;
prefix 2001:55c:[WAN IP in hex form ####.####]::/64
{
AdvOnLink on;
AdvAutonomous on;
};
};
@richard4339
richard4339 / gist:2860897
Created June 3, 2012 01:43
mrpg events and items
# Insert Our Events
'discovered Mozor','calamity',1.1
'ate a poisonous fruit', 'calamity', 1.2
'fell in love with zach','terrible calamity',1.9
'saw the light (which unfortunately ended up being a train)','terrible calamity',1.6
'discovered Mozor', 'godsend', 0.9
'found a $10 bill', 'godsend', 0.9
'had the internet fail', 'really horrible calamity', 1.9
'discovered the one true love of Pyotr: Ikea', 'weird thing', 1.1
'discovered their ex had stolen all their stuff and turned out to be a monster', 'surprisingly common occurrence', 1.1
D:\Documents\Dropbox\Projects\mRPG>python sqltest.py
In getage
#!/usr/bin/env python
# twisted imports
from twisted.words.protocols import irc
from twisted.internet import reactor, protocol, task
from twisted.python import log
from twisted.enterprise.adbapi import ConnectionPool
from twisted.internet.defer import DeferredList
# system imports
@richard4339
richard4339 / gist:2185163
Created March 24, 2012 17:03
str_replace
<?php
$text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit.";
print str_ireplace(array('lorem','ipsum'),array('<div>lorem</div>','<div>ipsum</div>'), $text);
?>