This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 files shown | |
FILE: <EPrints>/archives/ARCHIVE_ID/cfg/cfg.d/z_oai.pl | |
---------------------------------------------------------------------------------------- | |
# don't use Export::OAI_DC for oai_dc metadataPrefix... | |
$c->{plugins}->{"Export::OAI_DC"}->{params}->{metadataPrefix} = undef; | |
# ...use Export::OAI_DC_Ext instead | |
$c->{plugins}->{"Export::OAI_DC_Ext"}->{params}->{metadataPrefix} = "oai_dc"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# touch bla.txt | |
# git init | |
# git add -A | |
# git commit -a -m 'initial commit' | |
# git remote add laravel git://github.com/laravel/laravel.git | |
# git fetch laravel | |
# git checkout -b framework laravel/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.limesurvey.org/en/forum/can-i-do-this-with-limesurvey/91501-answer-options-based-on-previous-question?q=/en/forum/can-i-do-this-with-limesurvey/91501-answer-options-based-on-previous-question?q=/en/forum/can-i-do-this-with-limesurvey/91501-answer-options-based-on-previous-question | |
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function(){ | |
// The Q2 options relevant to the Q1 options | |
teacherLists = { | |
C1 : 'T1,T3,T5', | |
C2 : 'T1,T2,T3,T4', | |
C3 : 'T2,T3,T4,T5', | |
C4 : 'T1,T4,T6', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# iptables -t nat -A PREROUTING -p tcp -i br0 --dport 80 -j DNAT --to-destination 192.168.122.53:80 | |
# iptables -A FORWARD -p tcp -d 192.168.122.53 --dport 80 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make audio louder | |
--- | |
ffmpeg -i lecture3_2013.16.09.ogv -vn audio.ogg | |
ffmpeg -i audio.ogg -vol 2048 audio-loud.ogg | |
ffmpeg -i lecture3_2013.16.09.ogv -vcodec copy -an lecture3_2013.16.09-nosound.ogv | |
ffmpeg -i lecture3_2013.16.09-nosound.ogv -i audio-loud.ogg -vcodec copy lecture3_2013.16.09-loud.ogv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Place this in the "Question validation equation" field: | |
this <= date('Y') | |
And, something like this in the "Question validation tip" field: | |
{if(this <= date('Y'), 'Okay', 'Try again!')} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### $ sudo apt-get install cryptsetup | |
### $ cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb1 | |
### $ cryptsetup luksDump /dev/sdb1 | |
$ cryptsetup luksOpen /dev/sdb1 sdb1 | |
### $ mkfs.ext3 /dev/mapper/sdb1 |
OlderNewer