Skip to content

Instantly share code, notes, and snippets.

:octocat:
www. www always changes

Artur Parkhisenko arturparkhisenko

:octocat:
www. www always changes
Block or report user

Report or block arturparkhisenko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@arturparkhisenko
arturparkhisenko / iterm2-solarized.md
Created Nov 21, 2019 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

@arturparkhisenko
arturparkhisenko / ffmpeg.md
Created Oct 13, 2019 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files
View ffmpeg.md

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@arturparkhisenko
arturparkhisenko / Wasm-FAQ-2019.md
Created May 1, 2019 — forked from MaxGraey/Wasm-FAQ-2019.md
WebAssembly FAQ для телеграм сообщества WebAssembly_ru
View Wasm-FAQ-2019.md

Введение

Данный FAQ был специально создан для телеграм сообщества https://t.me/WebAssembly_ru.

Он базируется на статье от Andre Weissflog, но так же содержит множество моих дополнений и мыслей, которые могут быть уже не слишком актуальны на момент прочтения. Прошу это учитывать.

0. Какие цели у WebAssembly?

  • Определение переносимого двоичного формата с эффективным размером и временем загрузки, который будет служить целью компиляции и выполняться с предсказуемой скоростью;
View fonts-multi-language-support-test-string.js
// https://pages.ucsd.edu/~dkjordan/chin/unitestuni.html
// https://fonts.google.com/specimen/Noto+Sans
const multiLanguageText = "00:00, : ,Ā Á Ă À ā á ă à Ǖ Ǘ Ǚ Ǜ ǖ ǘ ǚ ǜĈ ĉ Ĝ ĝ Ĥ ĥĴ ĵ Ŝ ŝ Ŭ ŭ Я не говорю по-русски. Я також не розмовляю Українською. Μῆνιν ἄειδε θεὰ Πηληϊάδεω Ἀχιλῆος. אני לא לומד עברית 𓂝𓃀𓅡𓄿𓌂 𓋴𓅓𓏏𓇏𓇌𓀀 我们刚才从 图书馆来了。 我們剛才從 圖書館來了。 𦮙, ABCČĆDĐEFGHIJKLMNOPQRSŠTUVWXYZŽ abcčćdđefghijklmnopqrsštuvwxyzž АБВГҐДЂЕЁЄЖЗЅИІЇЙЈКЛЉМНЊОПРСТЋУЎФХЦЧЏШЩЪЫЬЭЮЯ абвгґдђеёєжзѕиіїйјклљмнњопрстћуўфхцчџшщъыьэюя ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ αβγδεζηθικλμνξοπρστυφχψωά ΆέΈέΉίϊΐΊόΌύΰϋΎΫὰάὲέὴήὶίὸόὺύὼώ ΏĂÂÊÔƠƯăâêôơư आईऊऋॠऌॡऐऔऎअं अँकखगघङचछजझञटठडढणतथदधनपफबभयरवळशषसह 1234567890 ०१२३४५६७८९‘?’“!”(%) [#]{@}&<-+÷×=> ®©$€£¥¢:;,.*₹"
@arturparkhisenko
arturparkhisenko / cors.js
Created Feb 27, 2019 — forked from balupton/cors.js
Acheiving CORS via a Node HTTP Server
View cors.js
// Create our server
var server;
server = http.createServer(function(req,res){
// Set CORS headers
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Request-Method', '*');
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
res.setHeader('Access-Control-Allow-Headers', '*');
if ( req.method === 'OPTIONS' ) {
res.writeHead(200);
View windows-to-usb-on-macos.sh
# download image here https://www.microsoft.com/en-us/software-download/windows10ISO
# mount it
diskutil list
# check identifier, it's could be like disk2
# format disk using identifier in the end
diskutil eraseDisk ExFat "WINDOWS10" MBR disk2
# copy all files from the image mounted
cp -rp /Volumes/CCCOMA_X64FRE_EN-US_DV9/* /Volumes/WINDOWS10/
# WAY 2, (for image path - just grab iso and drag it into console)
View video.sh
# This redirects the ffprobe help to a file
ffprobe -h > ffprobe_help.txt
# This creates a report next to your file
ffprobe -report SOMEFILE.mp4
# This creates your report as .json file next to your file
ffprobe -v quiet -print_format json -show_format -show_streams SOMEFILE.mp4 > ffprobe.json
View js-enum.js
// https://twitter.com/rauschma/status/1088778137452924929
// TypeScript
enum Response {
No,
Yes
}
// JavaScript
const Response = Object.freeze({
@arturparkhisenko
arturparkhisenko / no-animations.css
Created Jan 12, 2019
pause js animations and disable css animations
View no-animations.css
/* https://dev.webonomic.nl/how-to-disable-css-transforms-transistions-and-animations */
*, :before, :after {
/*CSS transitions*/
transition-property: none !important;
/*CSS transforms*/
transform: none !important;
/*CSS animations*/
animation: none !important;
}
View full-width.css
/*
https://twitter.com/Una/status/951519740840873984
"Break out" of a parent's containing width to take the full screen of a page w/this nice utility class:
*/
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
You can’t perform that action at this time.