Skip to content

Instantly share code, notes, and snippets.

View angelorodem's full-sized avatar
🐇

Ângelo Rodem angelorodem

🐇
  • Kvatch, Cyrodiil
View GitHub Profile
@leandro-hermes
leandro-hermes / setup.sh
Last active November 18, 2021 02:11
Script de setup para a máquina BASTION
#!/bin/bash
echo "#######################"
echo "## Environment setup ##"
echo "#######################"
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
apt full-upgrade -yy
@karpathy
karpathy / nes.py
Last active October 23, 2023 17:50
Natural Evolution Strategies (NES) toy example that optimizes a quadratic function
"""
A bare bones examples of optimizing a black-box function (f) using
Natural Evolution Strategies (NES), where the parameter distribution is a
gaussian of fixed standard deviation.
"""
import numpy as np
np.random.seed(0)
# the function we want to optimize
@ipbastola
ipbastola / clean-up-boot-partition-ubuntu.md
Last active May 2, 2024 01:27
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r