This file contains hidden or 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
docker run -it -p 8081:8080 node:10 bash |
This file contains hidden or 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
# Virtual Hosts | |
# | |
# Required modules: mod_log_config | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at |
This file contains hidden or 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
#!/usr/bin/env bash | |
PASS=$(pass BTH\ Studkonto) | |
ssh [email protected] -i /home/efo/.ssh/dbwebb.pub -t "echo $PASS | sudo -S setpre-dbwebb-kurser.bash $3 $1" | |
dbwebb --yes inspect $1 $2 $3 |
This file contains hidden or 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
#!/usr/bin/env bash | |
repos=("slideorama" "auth" "showyourcity" "jsramverk.me" "ramverk2-me" "me-vue" "me-angular" "simulate-stock" "callbacks" "jsramverk" "gomoku") | |
for repo in "${repos[@]}" | |
do | |
echo "$repo" | |
if [[ ! -d "$repo" ]]; then | |
git clone "[email protected]:emilfolino/$repo.git" | |
fi |
This file contains hidden or 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
curl -s http://pasta.phyrama.com:8083/cgi-bin/live.exe | grep -Eo '^<li>.*</li>' | sed s,\</\\?li\>,,g | shuf -n 1 |
This file contains hidden or 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
(function() { | |
const pathname = window.location.pathname; | |
const queryString = window.location.search; | |
const courseID = pathname.split("/")[2]; | |
const studentMatch = /student_id=(\d+)/i; | |
const studentID = queryString.match(studentMatch)[1]; | |
const canvasAuth = "Bearer [ERSÄTT MED egen token]"; | |
const canvasURL = `https://bth.instructure.com/api/v1/courses/${courseID}/assignments`; |
OlderNewer