mkdir osm
wget -O osm/planet.mbtiles https://hidrive.ionos.com/api/sharelink/download?id=SYEgScrRe
podman run -ti --rm -p 9000:9000 --name sms -v $(pwd)/osm/:/data/ registry.gitlab.com/markuman/sms:latest
firefox http://localhost:9000
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
var TrendyolPaymentCalculator = (() => { | |
const $this = {}; | |
const months = ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'] | |
$this.calculate = async () => { | |
const calculatableResult = checkForCalculatable(); | |
if (!calculatableResult.isValid) { | |
console.error(calculatableResult.message); |
A list of ASGI-related Python packages I maintain:
- arel: Browser hot reload for ASGI apps.
- asgi-htmx: HTMX integration for ASGI applications.
- asgi-lifespan: ASGI lifespan utilities.
- asgi-sitemaps: Sitemap generation in ASGI apps.
- awesome-asgi: awesome ASGI resources
- msgpack-asgi: MessagePack support for ASGI apps.
- tartiflette-asgi: ASGI-based HTTP transport for the Tartiflette GraphQL engine.
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
[{"code":"93","name":"Afghanestan","mask":"xx xxx xxx","regex":"/^\\+?([0-9]{2})[-. ]?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"111-afghanistan.svg"},{"code":"355","name":"Shqiperia","mask":"xxx xxx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"099-albania.svg"},{"code":"213","name":"Al Jaza'ir ","mask":"xx xxx xxx","regex":"/^\\+?([0-9]{2})[-. ]?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"144-algeria.svg"},{"code":"1684","name":"American Samoa ","mask":"xxx xx xx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{2})[-. ]?([0-9]{2})[-. ]?$","iconName":"027-american-samoa.svg"},{"code":"376","name":"Andorra","mask":"xxx xxx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"045-andorra.svg"},{"code":"374","name":"Hayastan","mask":"xxx xxx xx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{3})[-. ]?([0-9]{2})[-. ]?$","iconName":"108-armenia.svg"},{"code":"297","name":"Aruba","mask":"xxx xxx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"042-aruba.svg"},{"code":"61","name":"Austr |
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
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/ | |
# GitLab uses docker in the background, so we need to specify the | |
# image versions. This is useful because we're freely to use | |
# multiple node versions to work with it. They come from the docker | |
# repo. | |
# Uses NodeJS V 9.4.0 | |
image: node:9.4.0 | |
# And to cache them as well. |
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/python | |
import os | |
import sys | |
import subprocess | |
import random | |
import re | |
from time import sleep | |
import shlex | |
from ipaddress import ip_address | |
from termcolor import colored,cprint |
File | Purpose |
---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
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
/** | |
* Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet. | |
* - Main function 1: List all folders | |
* - Main function 2: List all files & folders | |
* | |
* Hint: Set your folder ID first! You may copy the folder ID from the browser's address field. | |
* The folder ID is everything after the 'folders/' portion of the URL. | |
* | |
* @version 1.0 | |
* @see https://github.com/mesgarpour |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
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
Step by step how to pull a private DockerHub hosted image in a Kubernetes YML. | |
export DOCKER_REGISTRY_SERVER=https://index.docker.io/v1/ | |
export DOCKER_USER=Type your dockerhub username, same as when you `docker login` | |
export DOCKER_EMAIL=Type your dockerhub email, same as when you `docker login` | |
export DOCKER_PASSWORD=Type your dockerhub pw, same as when you `docker login` | |
kubectl create secret docker-registry myregistrykey \ | |
--docker-server=$DOCKER_REGISTRY_SERVER \ | |
--docker-username=$DOCKER_USER \ |
NewerOlder