Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
maxx
/
geologist
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Pull-pyynnöt
0
Julkaisut
0
Wiki
Activity
Selaa lähdekoodia
Added comments about sqlite db creation
master
Maxime Wack
6 vuotta sitten
vanhempi
9f7104f195
commit
414c20489b
1 muutettua tiedostoa
jossa
4 lisäystä
ja
0 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
geoip.R
+ 4
- 0
geoip.R
Näytä tiedosto
@@ -1,6 +1,10 @@
library(tidyverse)
library(RSQLite)
library(ipapi)
# sqlite3 access.db
# create table access(ip, null1, user, timestamp, zone, req, status, size, referer, agent, null2);
# .separator " "
# .import access.log access
dbConnect(SQLite(), "access.db") %>%
dbGetQuery("delete from access where ip = '192.168.0.254' or user = 'maxx' or agent like '%bot%' or ip = '164.2.255.244';")
Write
Preview
Loading…
Peruuta
Tallenna