Skip to content

Instantly share code, notes, and snippets.

View JAXPARROW's full-sized avatar
💭
I may be slow to respond.

Jackson Linus JAXPARROW

💭
I may be slow to respond.
View GitHub Profile
@amanjuman
amanjuman / SoftEther VPN Server Setup in Raspberry Pi 3
Last active October 18, 2023 05:20
SoftEther VPN Server Setup in Raspberry Pi 3
sudo su
cd /root/
wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Server/32bit_-_ARM_EABI/softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz
tar xzf softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz && rm softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz
cd vpnserver && sudo make
cd ..
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/
sudo chmod 600 *
@chhantyal
chhantyal / embed_youtube_template_tag.py
Last active April 10, 2019 21:07
A normal Youtube url, saved in database is not enough to embed videos on app. This django template tag takes url, and returns embed url.
import urlparse
from django import template
register = template.Library()
def video_embed(context, url):
url_data = urlparse.urlparse(url)
query = urlparse.parse_qs(url_data.query)
try:
video_id = query["v"][0]