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
#!/bin/sh | |
set -e | |
# Docker CE for Linux installation script | |
# | |
# See https://docs.docker.com/engine/install/ for the installation steps. | |
# | |
# This script is meant for quick & easy install via: | |
# $ curl -fsSL https://get.docker.com -o get-docker.sh | |
# $ sh get-docker.sh | |
# |
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
# skipped your comments for readability | |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
me = "" | |
my_password = r"" | |
you = "" | |
msg = MIMEMultipart('alternative') |
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
#!/usr/bin/env bash | |
cd "/var/sunlounge/prod"; | |
while true; do | |
echo "Running Command:"; | |
php artisan route:call api/vipps/poll; | |
echo "Done!"; | |
sleep 1 | |
done; |
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
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
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
<VirtualHost *:80> | |
ServerAdmin admin@productdemo.biz | |
ServerName lms.productdemo.biz | |
ServerAlias www.lms.productdemo.biz | |
#DocumentRoot /var/www/html/lms | |
ProxyPass / http://0.0.0.0:8000/ | |
ProxyPassReverse / http://0.0.0.0:8000 | |
ErrorLog ${APACHE_LOG_DIR}/error.log |
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 kill -9 $(lsof -t -i:8001 -sTCP:LISTEN) |
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
let btns = document.querySelectorAll('.actionsCell-button'); | |
for(var i=0; i < btns.length; i++){ | |
btns[i].click(); | |
} |
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
#!/bin/sh | |
# Output colors | |
red='\033[0;31m'; | |
green='\033[0;32m'; | |
yellow='\033[0;33m'; | |
default='\033[0;m'; | |
bold=$(tput bold); | |
# current branch name. |
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
ffmpeg -i /code/data/test/video_editor/ffmpeg-video-encoder-sample.mkv -i /code/data/watermark-logo.png -filter_complex "[0]subtitles=/code/data/test/video_editor/ffmpeg-video-encoder-sample.mkv:si=6[v];[1][v]scale2ref=w='iw*10/100':h='ow/mdar'[wm][vid];[vid][wm]overlay=10:10" -map "0:a:1" -c:v libx264 -preset ultrafast /code/data/test/video_editor/audio_and_subtitle.mp4 |
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
from urllib.parse import urljoin | |
from requests import Session, Response | |
class InvalidGenderApiResponse(Exception): | |
""" | |
Exception class if in cause response is not ok from gender api. | |
""" |
NewerOlder