sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx -y
sudo apt-get install libnginx-mod-rtmp -y
<VirtualHost *:80> | |
ServerName sub.example.com | |
ProxyPreserveHost On | |
SSLProxyEngine On | |
RewriteEngine on | |
RewriteCond %{HTTP:Upgrade} websocket [NC] | |
RewriteCond %{HTTP:Connection} upgrade [NC] |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<script src="https://apis.google.com/js/api.js"></script> | |
<script> | |
#region NameSpaceRegion | |
using System; | |
using System.Windows.Forms; | |
using System.Data; | |
using System.Drawing; | |
using System.Collections; | |
using System.ComponentModel; | |
using System.Xml; | |
using System.Xml.Linq; | |
using BeeSys.Wasp3D.Hosting; |
#region NameSpaceRegion | |
using System; | |
using System.Windows.Forms; | |
using System.Data; | |
using System.Drawing; | |
using System.Collections; | |
using System.ComponentModel; | |
using System.Xml; | |
using System.Xml.Linq; | |
using BeeSys.Wasp3D.Hosting; |
@echo off | |
netsh wlan show interfaces | Findstr /c:"Signal" && set "CStatus=true" || set "CStatus=false" | |
for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set "location=%%a" | |
set location=%location:"=% | |
IF /i "%CStatus%"=="true" "C:\Program Files\Google\Chrome\Application\chrome.exe" --new-window --app=https://%location%:9090 | |
@echo off | |
netsh wlan show interfaces | Findstr /c:"Signal" && set "CStatus=true" || set "CStatus=false" | |
for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set "location=%%a" | |
set location=%location:"=% | |
echo opening explorer at %location% | |
IF /i "%CStatus%"=="true" explorer.exe ftp://%location%:2221 |
@echo off | |
adb.exe kill-server | |
netsh wlan show interfaces | Findstr /c:"Signal" && set "CStatus=true" || set "CStatus=false" | |
for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set "location=%%a" | |
set location=%location:"=% |
#!/bin/bash | |
dirbase="/var/www/" | |
# cd $dirbase | |
read -p "Current Directory as base? (y/N) " isCurrDir | |
if [ "$isCurrDir" = "Y" ] || [ "$isCurrDir" = "y" ]; then | |
dirpath=$(pwd) |
#Located in :::: /lib/systemd/system/code-server.service | |
[Unit] | |
Description=code-server | |
After=network.target | |
[Service] | |
Type=simple |