Skip to content

Instantly share code, notes, and snippets.

View bartvandendriessche's full-sized avatar

Bart Vandendriessche bartvandendriessche

  • http://www.astrangeloop.com
  • Belgium
View GitHub Profile
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Skipping dictionaries-common setup for emacs-snapshot
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50git-core.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /home/bart/.emacs.d/elpa-to-submit/nxhtml/autostart.el (source)...
Nxml/Nxhtml Autostart.el loading ...
Loading /home/bart/.emacs.d/elpa-to-submit/nxhtml/nxhtml-loaddefs.el (source)...done
Loading /home/bart/.emacs.d/elpa-to-submit/nxhtml/etc/schema/schema-path-patch.el (source)...done
function orange_form_music_node_form_alter(&$form, &$form_state) {
$form['title']['#validate'] = array('_check_title_for_bad_words');
$form['body']['#validate'] = array('_check_body_for_bad_words');
}
<VirtualHost xtreme.localhost.int.nascom.be>
ServerAdmin bart.vandendriessche@nascom.be
DocumentRoot /var/www/orange
ServerName xtreme.localhost.int.nascom.be
ErrorLog /var/www/orange/error.log
TransferLog /var/www/orange/access.log
</VirtualHost>
<script src="http://cdn.gigya.com/JS/gigya.js?services=socialize" type="text/javascript"></script>
<script type="text/javascript" src="/sites/all/modules/gigya/gigya.js?8"></script>
<script type="text/javascript" src="/sites/all/modules/gigya/gigya.behaviors.js?8"></script>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="OrangeVideoPlayer" width="392" height="243" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="http://xtreme.localhost.int.nascom.be/swf/OrangeVideoPlayer.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="true" /> <param name="wmode" value="opaque" />
<embed src="http://xtreme.localhost.int.nascom.be/swf/OrangeVideoPlayer.swf" quality="high" bgcolor="#000000"
width="392" height="243" name="OrangeVideoPlayer" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer"
start transaction;
-- step 1, log the deleted status
insert into tb_reports_statuslogs(user_id, report_id, token, reference_code, status, created)
select r.user_id, r.id, r.token, r.reference_code, 'deleted', now()
from tb_reports r
where DATE_SUB(CURDATE(), INTERVAL 90 DAY) > r.created;
-- step 2, delete all related drug entries
delete d from tb_reports_drugs d
inner join tb_reports r on r.id = d.report_id
where DATE_SUB(CURDATE(), INTERVAL 90 DAY) > r.created;
Button b = (Button) findViewById(R.id.button);
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
// do stuff here
}
});
require 'rubygems'
require 'nokogiri'
require 'open-uri'
# script that will go over the railscasts website and create a list of
# all available videos. (can then be used to download using wget or
# something)
def has_downloads?(doc)
doc.css(".content").each do |content|
@Override
public View getView(final int position, final View convertView, final ViewGroup parent) {
View row = convertView;
if (row == null) {
LayoutInflater vi = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
row = vi.inflate(layout, null);
}
final TimeEntryRowModel entry = getItem(position);
if (entry != null) {
#!/bin/ash
# Modified to run under DD-WRT
# http://www.morph3ous.net/2009/11/20/beta-hfsc-traffic-shaping-for-qos-on-dd-wrt/
# Go to Administration and then commands
# Paste script in and click on the save firewall button
# Reboot router and test
# References:
# http://www.voip-info.org/wiki/view/QoS+Linux+with+HFSC