Skip to content

Instantly share code, notes, and snippets.

View askareija's full-sized avatar
💯
Focusing

Aden Aziz H askareija

💯
Focusing
View GitHub Profile
@askareija
askareija / docker-compose.yml
Created April 14, 2024 11:58
Caddy docker compose
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
@askareija
askareija / docker-compose.yml
Last active March 1, 2024 03:39
Newest docker compose file for Visual Studio Code Dev Container
version: '3.9'
services:
app:
networks:
- proxynet
extra_hosts:
- "host.docker.internal:host-gateway"
build:
context: .
@askareija
askareija / devcontainer.json
Last active February 29, 2024 03:51
Newest devcontainer config for Visual Studio Code
{
"name": "Devcontainer app",
"dockerComposeFile": "./docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
@askareija
askareija / ig_json_parser.rb
Last active July 31, 2019 04:33
JSON Parser to CSV for Instagram scraper
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
@askareija
askareija / instagram_scraper.rb
Last active July 3, 2019 09:04
Instagram Scraper Metadata Script
require 'json'
require 'net/http'
require 'uri'
require 'fileutils'
puts "============= Instagram Scraper ============="
puts "================== v1.0 ==================="
puts "============== Megumi Aliya ==============="
3.times do
puts ""
@askareija
askareija / tracking_service.rb
Last active July 31, 2019 04:28
Tracking Resi
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