Skip to content

Instantly share code, notes, and snippets.

@ansulev
ansulev / calibration_datav5.txt
Created March 25, 2026 11:23 — forked from bartowski1182/calibration_datav5.txt
Calibration data used for latest imatrix. Includes work from Dampf, Kalomaze, and extra dataset from combined_all_small from edaddario
This file has been truncated, but you can view the full file.
In addition to a significant decrease in hepatic lipid accumulation in the IOE group, which inhibited energy intake by propionate enrichment, hepatic lipids were also significantly reduced in the mice in the IOP group, which was largely enriched with butyrate. Compared with the IOE group, IOP had a stronger regulatory effect on hepatic metabolism and triglyceride metabolism and higher levels of TCA cycle in the host. In addition, butyrate has the ability to promote browning of white adipose tissue (WAT) to brown adipose tissue (BAT).^[@ref39],[@ref40]^ WAT stores energy, whereas BAT uses energy for heating and consequently host energy expenditure increases.^[@ref41],[@ref42]^ However, adipose tissue weight does not change after WAT browning.^[@ref43]^ Therefore, the weight of adipose tissue of mice in the IOP group dominated by butyrate was greater than that of the mice in the IOE group dominated by propionate.
@ansulev
ansulev / pagespeed_optimize_images.sh
Created December 7, 2024 21:46 — forked from julianxhokaxhiu/pagespeed_optimize_images.sh
Recursively optimize all PNG and JPG files wherever they are from the script position and inner ( based on OPTING, PNGCRUSH, ADVANCECOMP and JPEGOPTIM )
#!/bin/bash
# Improved as per feedback from @pascal - https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873#gistcomment-3086462
find . -type f -iname "*.png" -exec optipng -nb -nc {} \;
find . -type f -iname "*.png" -exec advpng -z4 {} \;
find . -type f -iname "*.png" -exec pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow {} \;
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec jpegoptim -f --strip-all {} \;
@ansulev
ansulev / install-java-temurin-debian-12.txt
Created December 15, 2023 12:56
Install Java 8 or 11 on Debian 12
mkdir -p /etc/apt/keyrings
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
apt update
apt install temurin-8-jdk
@ansulev
ansulev / Optimizations_Artix.md
Created April 8, 2023 05:21 — forked from themagicalmammal/Optimizations_Artix.md
Set of optimizations, I use on my Artix Setup
@ansulev
ansulev / security.conf
Created May 1, 2022 06:59 — forked from ambroisemaupate/security.conf
Nginx CSP example
# config to don't allow the browser to render the page inside an frame or iframe
# and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking
# if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri
# https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
add_header X-Frame-Options SAMEORIGIN;
# when serving user-supplied content, include a X-Content-Type-Options: nosniff header along with the Content-Type: header,
# to disable content-type sniffing on some browsers.
# https://www.owasp.org/index.php/List_of_useful_HTTP_headers
# currently suppoorted in IE > 8 http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx
@ansulev
ansulev / basic-html-skeleton.html
Created February 3, 2022 17:43
Basic HTML Skeleton
<!DOCTYPE html>
<html lang="es" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="[SITE DESCRIPTION]">
<meta name="keywords" content="">
<meta name="robots" content="index, follow, archive">
@ansulev
ansulev / mysql.txt
Created October 11, 2021 05:39 — forked from sarvar/mysql.txt
Changing WordPress URLs in MySQL Database
UPDATE wp_options SET option_value = replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'oldurl.com','newurl.com');
UPDATE wp_posts SET post_content = replace(post_content, 'oldurl.com', 'newurl.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'oldurl.com','newurl.com');
@ansulev
ansulev / install-arch-linux-btrfs-dual-boot-t480s.txt
Last active February 3, 2022 17:40
Install Arch Linux with Btrfs - dual boot with Win10 on ThinkPad t480s
# Install Arch Linux dual boot with Windows 10 on Thinkpad T480s.
# Btrfs subvolumes inside. UEFI and Secure Boot enabled.
# filename: install-arch-linux-btrfs-dual-boot-t480s.txt
# The official guide: https://wiki.archlinux.org/index.php/Installation_Guide
# Shrink Windows partition to make room for the linux.
# Remove BitLocker encryption and Fast Boot. After install can re-enable BitLocker.
# Need to setup again Bitlocker, PIN, Fingerprint (tested on Win10 1909)
# Download the archiso image from https://www.archlinux.org/download/
# Add suri repo
sudo apt -y install lsb-release apt-transport-https ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo update
# install php7.4
sudo apt-get install php7.4
# for nginx
apt install php7.4-fpm php7.4-{apcu,bcmath,bz2,cgi,cli,common,curl,dba,enchant,intl,gd,imap,json,,mbstring,mysql,odbc,opcache,phpdbg,redis,snmp,soap,sqlite3,tidy,xml,xsl,zip}
@ansulev
ansulev / Browser Extensions
Last active February 3, 2022 17:39
Must-Have Browser Extensions
#
# Must-Have Browser Extensions
# Privacy, Development, Hacking
# Last edit: 24/02/2021
#
* Mozilla Firefox
AdNaseum (or Ublock Origin)
Auto Tab Discard