Skip to content

Instantly share code, notes, and snippets.

View altilunium's full-sized avatar

Altilunium altilunium

  • Altilunium
  • Indonesia
View GitHub Profile
@altilunium
altilunium / mon.py
Created December 25, 2023 15:32
access.log reader
import web
urls = (
'/', 'FileViewer'
)
class FileViewer:
def GET(self):
file_path = 'access.log'
@altilunium
altilunium / mon3.py
Created December 25, 2023 15:26
access log parser
import os
from datetime import datetime, timedelta
import re
import mistune
import web
def merge_and_process_txt_files(directory_path):
if not os.path.exists(directory_path):
print(f"Directory '{directory_path}' does not exist.")
return
# Specify the file path
file_path = 'a1.txt'
zatot = 0
# Open the file in read mode
with open(file_path, 'r') as file:
# Process each line in the file
for line in file:
# Do something with the line (replace this with your processing logic)
processed_line = line.strip() # Removing leading and trailing whitespaces
@altilunium
altilunium / jalanjakbar.txt
Created October 11, 2023 17:33
jalan di jakbar
This file has been truncated, but you can view the full file.
Jalan EE --> Kebon Jeruk - Sukabumi Utara - RW 01
Jalan Budi Raya --> Kebon Jeruk - Kebon Jeruk - RW 04
Jalan Budi Raya --> Kebon Jeruk - Kebon Jeruk - RW 12
Jalan Kali Besar Barat --> Tambora - Roa Malaka - RW 03
Jalan Tambora III --> Tambora - Tambora - RW 05
Jalan SMPN 125 --> Kalideres - Pegadungan - RW 11
Jalan Michelia 3 --> Kembangan - Joglo - RW 01
Gang Nangka --> Cengkareng - Rawa Buaya - RW 02
Jalan Eco Culture --> Kalideres - Pegadungan - RW 08
Jalan Profesor Doktor Latumeten --> Grogol Petamburan - Jelambar - RW 04
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1
00:00:00,000 --> 00:00:03,740
Welcome to another episode of the Mapscaping Podcast.
2
00:00:03,740 --> 00:00:07,960
My name is Daniel and this is a podcast for the Geospatial Community.
3
00:00:07,960 --> 00:00:10,480
@altilunium
altilunium / Altai-Krai.geojson
Created September 13, 2023 07:34
Altai Krai
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
lang_dict = {
'sma':'Southern Sami',
'ace':'Achinese',
'ang':'Old English',
'agq':'Aghem',
'af':'Afrikaans',
'ak':'Akan',
'gsw':'Swiss German',
'als':'Alemannisch',
'en-us':'American English',
This file has been truncated, but you can view the full file.
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' upload='false' generator='JOSM'>
<node id='-552207' lat='-10.43571623147' lon='121.91601042819' />
<node id='-552208' lat='-10.43571465776' lon='121.91593802924' />
<node id='-552209' lat='-10.43576540439' lon='121.91593690348' />
<node id='-552210' lat='-10.4357669781' lon='121.91600930244' />
<node id='-552211' lat='-10.53804116209' lon='121.7915149079' />
<node id='-552212' lat='-10.53798479834' lon='121.79149513005' />
<node id='-552213' lat='-10.53801091698' lon='121.79141911377' />
<node id='-552214' lat='-10.53806728073' lon='121.7914388916' />