A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
#!/bin/bash | |
# Find duplicate files using shell script | |
# Remove duplicate files interactively | |
TMP_FILE=$(mktemp /tmp/temp_file.XXX) | |
DUP_FILE=$(mktemp /tmp/dup_file.XXX) | |
function add_file() { | |
# Store the hash of the file if not already added | |
echo "$1" "$2" >> $TMP_FILE | |
} |
const assert = require("assert").strict; | |
const child_process = require("child_process"); | |
const path = require("path"); | |
const crypto = require("crypto"); | |
const glob = require("glob"); | |
const fs = require("fs-extra"); | |
const _ = require("lodash"); | |
const sort = require("alphanum-sort"); | |
const Kuroshiro = require("kuroshiro"); | |
const KuromojiAnalyzer = require("kuroshiro-analyzer-kuromoji"); |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
cat<<'EOT'>~/.vimrc | |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
let g:fzf_install = 'yes | ./install' | |
" Plugin outside ~/.vim/plugged with post-update hook | |
Plug 'junegunn/fzf', { 'do': g:fzf_install } |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Blue Component</key> | |
<real>0.25882352941176473</real> |
Obfuscation isn't difficult in most programming languages. It's why we have "good practices" because it is so easy to hide what you mean in badly written code.
Obfuscation tends to be even easier in dynamic languages because of how forgiving they tend to be - and because they tend to give you direct access to the environment so that you can manipulate it.
Today, for fun, I'm going to obfuscate this code:
def _(n):
if n <= 0:
#!/bin/bash | |
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.** | |
## **This updated version has more options and less hardcoded variables.** | |
# Take one argument from the commandline: VM name | |
if ! [ $# -eq 1 ]; then | |
echo "Usage: $0 <node-name>" | |
exit 1 | |
fi |
brew unlink thrift | |
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9d524e4850651cfedd64bc0740f1379b533f607d/Formula/thrift.rb |
from __future__ import print_function | |
import os | |
import glob | |
import sys | |
from shutil import rmtree, copyfile | |
unzip_path = '"C:/Program Files/7-Zip/7z.exe"' | |
unrar_path = '"C:/Program Files/WinRAR/rar.exe"' | |
dst = "D:/download/books1" |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm