Skip to content

Instantly share code, notes, and snippets.

View vlameiras's full-sized avatar
🇺🇦

Vasco Lameiras vlameiras

🇺🇦
  • Springer Nature
  • Lisbon, Portugal
View GitHub Profile
@mnogom
mnogom / Centos7-fix-mirrors.md
Last active March 31, 2025 11:23
Centos 7 fix yum mirrors

Shooting trouble on Centos 7 (in 2024)

https://vault.centos.org/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14]
curl#35 - "Peer reports incompatible or unsupported protocol version."

Part I

on Centos 7:

sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/*
@veekaybee
veekaybee / normcore-llm.md
Last active June 5, 2025 08:38
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@rain-1
rain-1 / LLM.md
Last active June 3, 2025 16:35
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.

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active June 6, 2025 19:54
set -e, -u, -o, -x pipefail explanation
@fulv
fulv / main.yml
Last active March 29, 2025 14:42
Ansible - Creating users and copying ssh keypair files to the remote server
Put this in your `local-configure.yml` file, add as many users as you need:
users:
- name: fulvio
sudoer: yes
auth_key: ssh-rsa blahblahblahsomekey this is actually the public key in cleartext
- name: plone_buildout
group: plone_group
sudoer: no
auth_key: ssh-rsa blahblahblah ansible-generated on default
@parmentf
parmentf / GitCommitEmoji.md
Last active June 6, 2025 16:10
Git Commit message Emoji
@SamuelChristie
SamuelChristie / tls_1_deprecation.md
Created November 2, 2015 16:08
Explanation of how to detect TLS 1.0 connections and, by way of custom headers, warn the user about the coming change to more modern TLS versions.
@squarism
squarism / iterm2.md
Last active June 7, 2025 17:51
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@hosackm
hosackm / flaskaudiostream.py
Created September 2, 2015 22:30
Flask streaming an audio file
from flask import Flask, Response
app = Flask(__name__)
@app.route("/wav")
def streamwav():
def generate():
with open("signals/song.wav", "rb") as fwav:
data = fwav.read(1024)
@jaceklaskowski
jaceklaskowski / deployment-tool-ansible-puppet-chef-salt.md
Last active February 20, 2025 16:38
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution