Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://e.csdd.lv/examp/
// @grant none
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @require https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js
@kandrejevs
kandrejevs / startup.sh
Last active October 2, 2024 15:00
amazon lightsail startup script to install docker and docker compose and dependencies
# Create swap file
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
# Install dependencies
@kandrejevs
kandrejevs / exs.js
Created April 4, 2018 18:04
delete exs.lv miniblogs
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://exs.lv/
// @grant none
// @require http://underscorejs.org/underscore-min.js
// ==/UserScript==
@kandrejevs
kandrejevs / concat_gopro.bat
Created January 24, 2018 22:35
Batch script for merging GoPro videos in current dir
for /r %%i in (*.mp4) do echo file '%%i'>> list.txt
ffmpeg -f concat -safe 0 -i list.txt -c copy output.mp4
pause