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
# Update sustem | |
sudo apt update | |
sudo apt -y upgrade | |
# Install R | |
sudo apt -y install r-base | |
# Install R-Studio |
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 |
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
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
# 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
// 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
# 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 |
NewerOlder