Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃
hihihaha

Đỗ Thành Long soiqualang

🙃
hihihaha
View GitHub Profile
@soiqualang
soiqualang / seed-cache.html
Created August 16, 2023 06:19 — forked from jelmervdl/seed-cache.html
Geoserver Tile Cache seeding tool
View seed-cache.html
<!DOCTYPE html>
<html>
<head>
<title>Seed tool</title>
<style>
.seed-status {
display: inline-block;
padding; 2px;
background: #ccc;
}
@soiqualang
soiqualang / GeoServer GWC REST Example
Created August 16, 2023 06:13 — forked from alexgleith/GeoServer GWC REST Example
Truncate and Seed GWC cached layers in GeoServer
View GeoServer GWC REST Example
import json
import urllib2
import base64
baseURL = "https://domain.example:8080/geoserver/gwc/rest/seed/"
descURL = "https://domain.example:8080/geoserver/gwc/rest/layers/"
un = 'username'
pw = 'biglongtrickypassword'
def truncateLayer(layer):
@soiqualang
soiqualang / GeoWebCacheService.py
Created August 16, 2023 06:12 — forked from gordcorp/GeoWebCacheService.py
Empty and reseed GeoServer GeoWebCache
View GeoWebCacheService.py
import requests
class GeoWebCacheService(object):
"""Class to communicate with the geowebcache api.
Api doco here: http://geowebcache.org/docs/current/rest/seed.html
"""
_url = None
_username = None
_password = None
@soiqualang
soiqualang / mbtile-server.py
Created August 7, 2023 14:33 — forked from schoenobates/mbtile-server.py
Really quick and dirty way to serve tiles from a MBTiles file
View mbtile-server.py
#!/usr/bin/env python
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import re
import sqlite3 as sqlite
# Hacky serving of MBtile data
# Put filename to the MBTiles file below: this could be done with cmd line options
# but this is a hack so there ....
@soiqualang
soiqualang / Install Android apps or apk files in Windows using Windows Subsystem for Android (No Emulator).md This Guide will show you how to install and run apk files or Android apps in any Edition of Windows 11 using Windows Subsystem for Android. WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator.
View Install Android apps or apk files in Windows using Windows Subsystem for Android (No Emulator).md

Install Android apps or apk files in Windows using Windows Subsystem for Android

WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow my guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.

Prerequisites:

  • Windows Subsystem for Android or WSA must be Installed.

Click here to view the guide that shows how to install Windows Subsystem for Android in any Edition of Windows 11 (including Windows 11 Home) non Inider or stable release.

How to Install Android Apps or apk files in Windows Subsystem for Android:

@soiqualang
soiqualang / docker-compose.yml
Created February 23, 2023 04:43
nginx-proxy-manager | -p 80:80 -p 81:81 -p 443:443
View docker-compose.yml
version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: always
ports:
- '80:80'
- '1084:81'
- '443:443'
volumes:
@soiqualang
soiqualang / nvmCommands.js
Created February 8, 2023 08:00 — forked from chranderson/nvmCommands.js
Useful NVM commands
View nvmCommands.js
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
@soiqualang
soiqualang / Folder struct template.MD
Created October 12, 2022 02:26
Folder struct template
View Folder struct template.MD
@soiqualang
soiqualang / proxy.php
Created March 18, 2022 14:00
File Proxy đơn giản
View proxy.php
<?php
$ch = curl_init($_GET['url']);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>
@soiqualang
soiqualang / README.md
Created August 15, 2021 08:55 — forked from FMCorz/README.md
Adminer with SQLite no-login
View README.md

Adminer setup

Enables plugins, and SQLite no-login.

Instructions

  1. Copy index.php to a new directory
  2. Download Adminer to adminer.php