Skip to content

Instantly share code, notes, and snippets.

@DiogoDoreto
DiogoDoreto / update-dns.md
Created September 14, 2024 21:37
Update DNS on Livebox 6 router from Orange

Orange unfortunately blocks manually updating the DNS servers for my own network, since I wanted to have my home server running dnsmasq, I went ahead and found a way around this limitation. It does, however, get reset to original values when the router is restarted.

Instructions

Login to the admin page of the router and navigate to Advanced Settings > DNS.

Inspect the DNS field and go to the console tab. We want to run the following commands inside the advanced_network_dns.htm frame context.

Update the IPs as needed.

@abelcallejo
abelcallejo / README.md
Last active July 23, 2026 14:51
Installing GDAL 3.2.1 on Amazon Linux 2

Installing GDAL 3.2.1 on Amazon Linux 2

gdal linux yum

As of this day, this is probably the only and fastest way of installing it.

Package requirements

Based from the GDAL and PROJ build requirements, here is the full list of required packages to install:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rseon
rseon / Prestashop_exports.md
Last active June 4, 2024 14:58
Quelques scripts SQL d'export pour Prestashop

Prestashop exports

URL replacement

ps_configuration.name (PS_SHOP_DOMAIN, PS_SHOP_DOMAIN_SSL, PS_SSL_ENABLED)
ps_shop_url.domain
ps_shop_url.domain_ssl
@ed-cooper
ed-cooper / json-lang.tex
Created February 20, 2018 14:25
Latex lstlisting json language style
\definecolor{delim}{RGB}{20,105,176}
\definecolor{numb}{RGB}{106, 109, 32}
\definecolor{string}{rgb}{0.64,0.08,0.08}
\lstdefinelanguage{json}{
numbers=left,
numberstyle=\small,
frame=single,
rulecolor=\color{black},
showspaces=false,
@styblope
styblope / docker-api-port.md
Last active October 22, 2026 08:46
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@levsthings
levsthings / docker-ce-ubuntu-17.10.md
Last active August 25, 2026 11:34
Install Docker CE on Ubuntu 17.10

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

If you are used to installing Docker to your development machine with get-docker script, that won't work either. So the solution is to install Docker CE from the zesty package.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@russellhoff
russellhoff / CheckInternet.java
Created September 27, 2017 13:51
Check Internet Connection in Java
package internetcon;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
public class CheckInternet {
public static void main(String[] args) {
System.out.println(
"Online: " +
@chrisjm
chrisjm / README.md
Last active December 8, 2023 04:00 — forked from tache/README-SSL-Certificates.md
LetsEncrypt, AWS Certificate Manager, and CloudFront

Using LetsEncrypt SSL certificates with AWS Certificate Manager and CloudFront

This is a document for managing LetsEncrypt certificates on AWS using AWS Certificate Manager and configuring on CloudFront using the AWS CLI.

Setup

Follow the instructions to set up the certbot and aws commands on your local machine:

@russellhoff
russellhoff / GeometriesFactory.java
Created May 25, 2017 08:48
A simple factory to create Points and Linestrings with 4326 srid.
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.LineString;
import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.geom.PrecisionModel;
public class GeometriesFactory {
private static GeometryFactory factory4326 = new GeometryFactory(new PrecisionModel(PrecisionModel.FLOATING), 4326);