adi's recent activity

  1. Comment on hack.css, new.css, Water.css, sakura, Pico themes for my static site generator (mkws) in ~comp

    adi
    Link
    Please provide feedback or request new themes!

    Please provide feedback or request new themes!

    2 votes
  2. Comment on Made a couple of themes for my static site generator (mkws) in ~comp

    adi
    Link Parent
    Which CDN provider would you recommend?

    Which CDN provider would you recommend?

    1 vote
  3. Comment on Made a couple of themes for my static site generator (mkws) in ~comp

    adi
    Link Parent
    I'll be looking into the slowness issue! Thanks! Regarding the sizes, it's a matter of preference, you can easily change that. These are just simple starter themes all add more themes!

    I'll be looking into the slowness issue! Thanks! Regarding the sizes, it's a matter of preference, you can easily change that. These are just simple starter themes all add more themes!

    2 votes
  4. Comment on Made a couple of themes for my static site generator (mkws) in ~comp

    adi
    Link Parent
    Thanks! I'll look into the slowness issue! Thanks for for the https://www.webpagetest.org/ link, didnt know about it!

    Thanks! I'll look into the slowness issue! Thanks for for the https://www.webpagetest.org/ link, didnt know about it!

    1 vote
  5. Comment on Made a couple of themes for my static site generator (mkws) in ~comp

    adi
    Link
    Please provide feedback and tell me what other kind of themes you would like to see!

    Please provide feedback and tell me what other kind of themes you would like to see!

    2 votes
  6. Comment on What did you do this weekend? in ~talk

    adi
    (edited )
    Link
    Worked on mkws themes, specifically used Plan 9 mk's regular expression targets in order the pack the themes in .tgz format for distribution. Also built a small https tunnel: package main import (...

    Worked on mkws themes, specifically used Plan 9 mk's regular expression targets in order the pack the themes in .tgz format for distribution. Also built a small https tunnel:

    package main
    
    import (
    	"crypto/tls"
    	"flag"
    	"log"
    	"net/http"
    	"net/http/httputil"
    	"net/url"
    	"os"
    )
    
    func main() {
    
    	f := flag.String("f", "", "listen host")
    	t := flag.String("t", "", "connect host")
    	crt := flag.String("c", "", "path to cert file")
    	key := flag.String("k", "", "path to key file")
    
    	flag.Parse()
    
    	if *f == "" {
    		flag.Usage()
    		os.Exit(1)
    	}
    	if *t == "" {
    		flag.Usage()
    		os.Exit(1)
    	}
    	if *crt == "" {
    		flag.Usage()
    		os.Exit(1)
    	}
    	if *key == "" {
    		flag.Usage()
    		os.Exit(1)
    	}
    
    	proxy := httputil.NewSingleHostReverseProxy(&url.URL{
    		Scheme: "http",
    		Host:   *t,
    	})
    
    	cert, err := tls.LoadX509KeyPair(*crt, *key)
    	if err != nil {
    		log.Println(err)
    		os.Exit(1)
    	}
    
    	config := &tls.Config{Certificates: []tls.Certificate{cert}, NextProtos: []string{"h2", "http/1.1"}}
    	listener, err := tls.Listen("tcp", *f, config)
    	if err != nil {
    		log.Println(err)
    		os.Exit(1)
    	}
    	defer listener.Close()
    
    	err = http.Serve(listener, proxy)
    	if err != nil {
    		log.Println(err)
    		os.Exit(1)
    	}
    }
    

    Build with go build httpst.go.

    I run it as doas httpst -f adi.onl:443 -t 127.0.0.1:9000 -c /etc/ssl/adi.onl.crt -k /etc/ssl/private/adi.onl.key

    1 vote
  7. Comment on What programming/technical projects have you been working on? in ~comp

    adi
    Link
    Still working on mkws theme related stuff. Previews: https://files.mills.io/download/plain.jfif, https://files.mills.io/download/mono.jfif. Deleted some files by mistake (minor deal) and...

    Still working on mkws theme related stuff. Previews: https://files.mills.io/download/plain.jfif, https://files.mills.io/download/mono.jfif. Deleted some files by mistake (minor deal) and investigated https://github.com/rushsteve1/trash-d/ but it's written in D and doesn't provide OpenBSD binaries so I started working on my own solution.

    2 votes
  8. Comment on What did you do this week? in ~talk

    adi
    Link
    Working on a new version of mkws. Also, working on a couple of themes: preview 1, preview 2.

    Working on a new version of mkws. Also, working on a couple of themes: preview 1, preview 2.

    2 votes
  9. Comment on What programming/technical projects have you been working on? in ~comp

  10. Comment on Simple, small, awk analytics HTTP log parsers in ~comp

    adi
    Link Parent
    Thanks! I updated the analytics scripts in the mean time. Here are the ones for logs in Combined Log Format (I believe this is the most common?) https://adi.onl/cbl.html

    Thanks! I updated the analytics scripts in the mean time. Here are the ones for logs in Combined Log Format (I believe this is the most common?) https://adi.onl/cbl.html

    2 votes
  11. Comment on Looking for recommendations for self-hostable static blog software in ~comp

    adi
    Link
    You can take a look at my own https://mkws.sh, it's templates are sh based, it's super simple and highly customizable, people like https://nemic.dev/log.html and https://www.andrewjvpowell.com/...

    You can take a look at my own https://mkws.sh, it's templates are sh based, it's super simple and highly customizable, people like https://nemic.dev/log.html and https://www.andrewjvpowell.com/ have been using it to write blogs with it.

    2 votes
  12. Comment on New MacBook Pros in ~tech

    adi
    Link
    In The Anti-iPhone Linus argues that you don't really need a flagship phone for everyday use, I believe that's the future for computers also. We're building faster CPU's to run bloat.

    In The Anti-iPhone Linus argues that you don't really need a flagship phone for everyday use, I believe that's the future for computers also. We're building faster CPU's to run bloat.

    2 votes
  13. Comment on mkws - A simple static site generator in ~comp

    adi
    Link Parent
    That binary is a shell script 🙃. It counts as sources.

    That binary is a shell script 🙃. It counts as sources.

    5 votes
  14. Comment on mkws - A simple static site generator in ~comp

  15. Comment on Help open-source contributors escape Afghanistan - Open Collective in ~comp

    adi
    Link Parent
    Not sure what their situation is, but this is what my highschool girlfriend had to say on 20 August:

    Not sure what their situation is, but this is what my highschool girlfriend had to say on 20 August:

    My dears,
    Thank you all for the birthday wishes. This surely turned out to be a memorable one. I am in Kabul, safe, and despite the scenes at the airport that you all see on TV nowadays, most of the city is calm, and there is no reason for me to leave. I have passed through Taliban checkpoints without an issue, as a woman and a foreigner. I have bought vegetables in the bazaar and spoke to shopkeepers. Shops are open, electricity and telecommunications work. I have not been directly threatened. What I need from you is not pressure to go out – I cannot leave right now even if I wanted to, given the situation at the airport, and I do not want to leave. I am safe. Yes, the environment is fluid, shocking for many, and many Afghans have legitimate concerns about their safety. Tragically, the international community, including some western embassies that many Afghan friends looked up to as bastions of human rights and security, are fleeing, and countries are imposing an unannounced sanctions regime that will affect Afghan civilians the most, and not the new government. Banks, cash availability, and the economic situation are the main concern right now. What I need is your trust in the value of humanitarian and development assistance in Afghanistan, and, personally, support and patience.
    For those working in media, be aware that titles such as “The Afghan Inferno” and “Crisis in Afghanistan” are dangerous. The chaos at Hamid Karzai International Airport right now is due to such irresponsible media coverage, which is swiftly translated into Afghan media. To an extent, the Islamic Emirate of Afghanistan did not win militarily, but won a battle of narratives. This was because of alarmist media that sells, fuelled by an ill-fated western push to get “peace negotiations” going by undermining the legitimacy of the government. Rumours transform into facts through hungry journalism, and this has included reputable publications. Sometimes I wonder, sincerely, how some things pass through an editor. These reports also create concern and pressure on us internationals left here from families and friends back home; I have personally been contacted by hundreds of people urging me to get out, some of whom I have issues remembering; my parents are terrified because of this one-sided narrative, and they have stopped trusting my judgement even as I have lived for over seven years in this country outside the confines of a militarised compound. Our families’ and friends’ concerns are entirely on you. As such, I am happy to speak, off the record and as my time allows, to anyone in the media.

  16. Comment on mkws - A simple static site generator in ~comp

    adi
    (edited )
    Link Parent
    Wouldn't compare it to a deathtrap. 😛

    Wouldn't compare it to a deathtrap. 😛

    1 vote