Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

sudo cp '/disks/extDrive1/$MFT' ~/mft
analyzeMFT.py -f ./mft -o mft.csv
use OpenRefine https://openrefine.org/download.html
to open the large csv file
openrefine 3.5.0-1 didn't work , edit pkgbuild
-pkgver=3.5.0
+pkgver=3.5.2
-sha512sums=('f9e6a82f73bfe739ed586ab5560739ab27a9f451f1047e7bd1f9e6b91a7bad9a0150ceaadeff11dad4eb82b51379fbcb048bfa56afe3e0d1b3d8ebfa3f26484e'
+sha512sums=('8e5f818aaee7048f572474e356a4dc170a92f011cd07d6aa2840b1ab8aa8f7a181d900ecc6664bff5068109b83daabd36e6777485c38ad9af1036a80a579ff5d'
#create a list of all files execluding directories
find ./ru -type f > files_ru.txt
#extract a list of untique words from files_ru.txt [because the file list is too large to translate using google trandslate]
grep -o -E '\w+' ./files.txt | sort -u -f > words_ru.txt
#moves files and creates missing parent directories, add to the end of ~/.bashrc
function mvp ()
{
@He1my
He1my / ffmpeg h265
Last active September 5, 2022 13:41
ffmpeg -i in.mp4 -vf scale=-1:720 -vcodec libx265 -crf 29 -c:a copy out.mkv
Scale down 4K video , change width only, change frame rate
ffmpeg -i in.mp4 -vf "fps=24,scale=2880:-1,format=yuv420p" -c:v libx264 -crf 20 -c:a copy out.mp4
@He1my
He1my / charles.txt
Created July 25, 2021 21:16 — forked from zhoufenfens/charles.txt
charles
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@He1my
He1my / gist:f0e94907bc1797814d48ca267df90849
Last active October 3, 2019 22:01 — forked from dosjota/gist:9666a7274b4036588b92987b84267245
Downgrade php 7.2 to 7.1 in Ubuntu 18.04 LTS
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.1
sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm php7.1-intl php7.1-simplexml php7.1-curl php7.1-gd
sudo a2dismod php7.2
sudo a2enmod php7.1
sudo service apache2 restart
sudo update-alternatives --set php /usr/bin/php7.1
sudo update-alternatives --set phar /usr/bin/phar7.1
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1

Beyond Compare 4.x

Licensed to: ASIO Allsoftinone Quantity: 1 user Serial number: 1822-9597 License type: Pro Edition for Linux

First delete away trial mode:

sudo sed -i "s/keexjEP3t4Mue23hrnuPtY4TdcsqNiJL-5174TsUdLmJSIXKfG2NGPwBL6vnRPddT7tH29qpkneX63DO9ECSPE9rzY1zhThHERg8lHM9IBFT+rVuiY823aQJuqzxCKIE1bcDqM4wgW01FH6oCBP1G4ub01xmb4BGSUG6ZrjxWHJyNLyIlGvOhoY2HAYzEtzYGwxFZn2JZ66o4RONkXjX0DF9EzsdUef3UAS+JQ+fCYReLawdjEe6tXCv88GKaaPKWxCeaUL9PejICQgRQOLGOZtZQkLgAelrOtehxz5ANOOqCaJgy2mJLQVLM5SJ9Dli909c5ybvEhVmIC0dc9dWH+/N9KmiLVlKMU7RJqnE+WXEEPI1SgglmfmLc1yVH7dqBb9ehOoKG9UE+HAE1YvH1XX2XVGeEqYUY-Tsk7YBTz0WpSpoYyPgx6Iki5KLtQ5G-aKP9eysnkuOAkrvHU8bLbGtZteGwJarev03PhfCioJL4OSqsmQGEvDbHFEbNl1qJtdwEriR+VNZts9vNNLk7UGfeNwIiqpxjk4Mn09nmSd8FhM4ifvcaIbNCRoMPGl6KU12iseSe+w+1kFsLhX+OhQM8WXcWV10cGqBzQE9OqOLUcg9n0krrR3KrohstS9smTwEx9olyLYppvC0p5i7dAx2deWvM1ZxKNs0BvcXGukR+/g" /usr/lib/beyondcompare/BCompare
@He1my
He1my / mitmproxy cheat sheet
Created February 18, 2018 20:27 — forked from 2bard/mitmproxy cheat sheet
mitmproxy cheat sheet
Movement:
j, k down, up
h, l left, right (in some contexts)
space page down
pg up/down page up/down
arrows up, down, left, right
#!/bin/sh
charles=/usr/lib/charles-proxy/charles.jar
dir=charleshack
mkdir $dir
cd $dir
cat >> oFTR.java <<EOF
package com.xk72.charles;
public final class oFTR {
#!/usr/bin/python
# coding: utf-8
try:
from urlparse import urlparse
from urllib2 import Request, urlopen
from urllib import urlencode
v = 2
except: