Skip to content

Instantly share code, notes, and snippets.

@assiless
assiless / install_rsync.ps1
Last active November 18, 2024 14:58 — forked from LuisEGR/install_rsync.ps1
Install rsync in Windows 11, easy
# open powershell as admin
# $HOME\install_rsync.ps1
# Download and install Git for Windows if not already installed
if (-not (Test-Path "C:\Program Files\Git\bin\git.exe")) {
Write-Host "Git for Windows not found. Downloading installer..."
Invoke-WebRequest -Uri "https://github.com/git-for-windows/git/releases/download/v2.31.1.windows.1/Git-2.31.1-64-bit.exe" -OutFile "git-installer.exe"
Write-Host "Installing Git for Windows..."
Start-Process -FilePath ".\git-installer.exe" -ArgumentList "/VERYSILENT" -Wait
Remove-Item ".\git-installer.exe"
@assiless
assiless / instagram_video_ctrls.js
Created January 1, 2023 23:45 — forked from jeansordes/instagram_video_ctrls.js
Userscript for adding video controls on Instagram in your browser
// ==UserScript==
// @name Instagram Video Controls
// @namespace https://jzs.fr/
// @version 1.0
// @description Adds video player controls to Instagram videos
// @author JZS
// @match https://www.instagram.com/
// @match https://www.instagram.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=instagram.com
// @grant none
@assiless
assiless / optimize_html.py
Last active November 21, 2022 23:06 — forked from slowkow/optimize_html.py
Optimize base64 encoded PNG images in an HTML file.
#!/usr/bin/env python
"""
################################
sudo apt-get install -y pngquant
################################
optimize_html.py
Kamil Slowikowski
November 14, 2016