Skip to content

Instantly share code, notes, and snippets.

View AntouanK's full-sized avatar

Antonios Karamitros AntouanK

View GitHub Profile
@AntouanK
AntouanK / favicons.js
Created April 20, 2022 12:18 — forked from frabert/COPYING
Favicons for HN
// ==UserScript==
// @name Favicons for HN
// @version 1
// @grant none
// ==/UserScript==
for(let link of document.querySelectorAll('.titlelink')) {
const domain = new URL(link.href).hostname
const imageUrl = `https://icons.duckduckgo.com/ip3/${domain}.ico`
const image = document.createElement('img')
@AntouanK
AntouanK / nginx.conf
Created May 13, 2020 15:43 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@AntouanK
AntouanK / sketch-never-ending.md
Created February 21, 2020 11:56 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@AntouanK
AntouanK / web-servers.md
Created January 18, 2020 14:05 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@AntouanK
AntouanK / cookies.hs
Created February 9, 2018 16:07 — forked from hdgarrood/cookies.hs
Scotty cookies example
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad (forM_)
import Data.Text.Lazy (Text)
import qualified Data.Text.Lazy as T
import qualified Data.Text.Lazy.Encoding as T
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BSL
import qualified Blaze.ByteString.Builder as B
@AntouanK
AntouanK / README.md
Created May 1, 2017 21:12 — forked from m-basov/README.md
XFCE4 Terminal Snazzy Colorsheme

Snazzy for XFCE4 Terminal

preview

Install

  1. Copy snazzy.theme to ~/.local/share/xfce4/terminal/colorschemes/.
  2. Preferences -> Colors -> Presets -> Snazzy

Links

@AntouanK
AntouanK / OverEncrypt.md
Created November 30, 2016 22:29 — forked from mapmeld/OverEncrypt.md
OverEncrypt - paranoid HTTPS

OverEncrypt

This is a guide that I wrote to improve the default security of my website https://fortran.io , which has a certificate from LetsEncrypt. I'm choosing to improve HTTPS security and transparency without consideration for legacy browser support.

WARNING: if you mess up settings, lose your certificates, or decide to no longer maintain HTTPS certs, these steps can and will make your domain inaccessible.

I would recommend these steps only if you have a specific need for information security, privacy, and trust with your users, and/or maintain a separate secure.example.com domain which won't mess up your main site. If you've been thinking about hosting a site on Tor, then this might be a good option, too.

The best resources that I've found for explaining these steps are https://https.cio.gov , https://certificate-transparency.org , and https://twitter.com/konklone

@AntouanK
AntouanK / ExternalCSS.elm
Created August 3, 2016 16:27
Load external CSS in Elm
{--
You *can* load an external CSS file in Elm, but currently,
in Pure Elm that means adding a style element to the body instead of the head.
It does cause a flash of unstyled content, so I think it's only useful
for testing in Reactor.
--}
import Html exposing (..)
@AntouanK
AntouanK / zeromq-vs-redis.md
Created April 6, 2016 14:56 — forked from hmartiro/zeromq-vs-redis.md
Comparison of ZeroMQ and Redis for a robot control platform

ZeroMQ vs Redis

This document is research for the selection of a communication platform for robot-net.

Goal

The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.

Requirements: