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
Sets the project name. | |
name: docker-reverse-proxy | |
# The Docker services. | |
services: | |
# The Caddy server container. | |
caddy: | |
# https://hub.docker.com/_/caddy | |
image: caddy:alpine | |
container_name: caddy_reverse_proxy |
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
version: '3.9' | |
services: | |
app: | |
networks: | |
- proxynet | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
build: | |
context: . |
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
Show hidden characters
{ | |
"name": "Devcontainer app", | |
"dockerComposeFile": "./docker-compose.yml", | |
"service": "app", | |
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | |
// Configure tool-specific properties. | |
"customizations": { | |
"vscode": { | |
"extensions": [ |
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
require 'json' | |
require 'csv' | |
puts "======= JSON Parser for Instagram =========" | |
puts "================== v1.0 ===================" | |
puts "============== Megumi Aliya ===============" | |
def parse_posts(account_name) | |
pages = Dir.glob("#{account_name.chomp}/#{account_name.chomp}_posts_page_*.json") | |
total_pages = pages.sort_by { |s| s.scan(/\d+/).first.to_i }.last.split("_").last.delete(".json").to_i |
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
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'fileutils' | |
puts "============= Instagram Scraper =============" | |
puts "================== v1.0 ===================" | |
puts "============== Megumi Aliya ===============" | |
3.times do | |
puts "" |
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
class TrackingService | |
def self.track(*args, &block) | |
new(*args, &block).execute | |
end | |
def initialize(no_resi, expedition_type) | |
@no_resi = no_resi | |
@expedition_type = expedition_type | |
end |