Skip to content

Instantly share code, notes, and snippets.

View DiegoAscanio's full-sized avatar
🎓
Lecturing computer classes @CEFET-MG Divinópolis

Diego Ascanio Santos DiegoAscanio

🎓
Lecturing computer classes @CEFET-MG Divinópolis
  • CEFET-MG
  • Divinópolis
View GitHub Profile
@DiegoAscanio
DiegoAscanio / markdown_tips.md
Created August 13, 2023 21:09 — forked from chrischoy/markdown_tips.md
Markdown Tips

Rendering latex Eqs in Markdown

  • Github doesn't allow javascript in a markdown file. Try to compile equations using readme2tex presents an elegant solution for rendering latex equations.

  • grip runs a simple http server to visualize a readme file on a browser. It also tracks changes in a readme file and refresh the page whenever there is a change. However, you need to embed the following script so that the Mathjax renders eqs.

    <script async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"></script>
    <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" onload="javascript:MathJax.Hub.Queue(['Typeset', MathJax.Hub]);">
@DiegoAscanio
DiegoAscanio / LLM.md
Created March 31, 2023 20:39 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@rain-1
rain-1 / LLM.md
Last active April 27, 2024 11:08
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@ywwwtseng
ywwwtseng / host-react-app-on-apache-server.md
Last active March 8, 2024 12:16
Host react application on Apache server

Host react application on Apache server

Step 1 : Create your app

$ npm install -g create-react-app 
$ create-react-app my-app

Step 2 : Build it for production

@urakozz
urakozz / command.sh
Created October 9, 2017 18:09
ffmpeg video downloader
ffmpeg -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2000 \
-timeout 2000000000 -y -thread_queue_size 5512 -nostdin -hide_banner -fflags +genpts \
-probesize 10000000 -analyzeduration 15000000 -strict -2 \
-i "http://185.38.12.37/sec/1507602961/37303231b693a468b631da8dce8ab261f039288f1e73a0e5/ivs/69/18/89f2c8aa6418.mp4/hls/tracks-1,4/index.m3u8" 2bg.s04e07.ts
@chrischoy
chrischoy / markdown_tips.md
Last active August 13, 2023 21:09
Markdown Tips

Rendering latex Eqs in Markdown

  • Github doesn't allow javascript in a markdown file. Try to compile equations using readme2tex presents an elegant solution for rendering latex equations.

  • grip runs a simple http server to visualize a readme file on a browser. It also tracks changes in a readme file and refresh the page whenever there is a change. However, you need to embed the following script so that the Mathjax renders eqs.

    <script async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"></script>
    <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" onload="javascript:MathJax.Hub.Queue(['Typeset', MathJax.Hub]);">
@hjhee
hjhee / ipcSmtpd.go
Created January 29, 2017 09:19
a smtp listener for zoneminder external record trigger
// IP Camera supports motion detection, which can be configured to send
// emails upon alarm is fired
// This go programme serve as a minimal smtp server, listening login requests
// from IP Camera, and triggers zmtrigger.pl through unix socket.
package main
import (
"github.com/op/go-logging"
"net"
@timsavage
timsavage / __init__.py
Last active November 12, 2019 00:49
Customising Django Auth username length for Django 1.8+
default_app_config = 'myapp.auth.apps.MyAuthAppConfig'
@janikvonrotz
janikvonrotz / Configure Lets Encrypt auto renewal for certificates.md
Last active April 27, 2024 17:05
Configure Lets Encrypt auto renewal for certificates #Markdown #OpenSSL

This post is part of my Your own Virtual Private Server hosting solution project.
Get the latest version of this article here: https://gist.github.com/ddce334cd8ab21a40941.

Introduction

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. So far it works well and makes it easy to obtain a free certificate. Now the created certificates will expire withing 90 days. This post will show you how you can auto renew these certificates before they expire.

Requirements