Skip to content

Instantly share code, notes, and snippets.

View ixth's full-sized avatar
🎯
Focusing

Mikhail Menshikov ixth

🎯
Focusing
View GitHub Profile

Being aesthetically displeased with jpeg artifacts on @TfTHacker's avatar, I found similar image, spent half an hour in GIMP and got a decent hi-res version:

astrolabe

@ixth
ixth / backup-github.sh
Created March 8, 2022 22:19
Backup GitHub Repos
PAGE=0
while true; do
PAGE=$(($PAGE + 1))
REPOS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/user/repos?visibility=all&page=$PAGE" | jq -r '.[].ssh_url')
if [ -z "$REPOS" ]; then
break;
fi
for REPO in $REPOS; do
git clone --no-checkout "$REPO"
done
@ixth
ixth / proto.msg
Last active April 27, 2022 08:43 — forked from alexeypegov/proto.msg
ProtoBuffers debug with CURL. ProtoBuffers should be installed first: "yum install protobuf" or "brew install protobuf".
key:"string value"
int_key:22
@ixth
ixth / index.js
Last active September 26, 2021 10:53
babel-preset-env issue
const source = 'Math.clamp(1, 2, 3)';
const config = {
presets: [
[
'@babel/preset-env',
{
'modules': false,
'corejs': '3.18.0',
'useBuiltIns': 'usage',
'shippedProposals': true,
@ixth
ixth / index.html
Created January 30, 2018 08:26 — forked from Dmitry-7/index.html
vanillaJsSlider
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div class="menu">
@ixth
ixth / grid.sass
Last active August 23, 2017 16:11
$debug: false;
$column: 50px;
$gutter: 30px;
.wrap {
margin: 0 auto;
}
.row {
display: flex;
@ixth
ixth / AdBlock.txt
Last active August 29, 2015 14:15
Blacklist annoying social networks comments
! Лочим виджеты «100500 пользователям нравится это»
|vk.com/widget_community.php*|
|facebook.com/plugins/like_box.php*|
## .fb-like-box, #vk_groups
! Лочим каменты на ютубе
|apis.google.com/*/*/*/*/*/widget/render/comments*|
youtube.com## #watch-discussion
! Лочим каменты в vk
@ixth
ixth / submit.js
Last active August 29, 2015 14:15
$('[data-send-request] form').submit(self.submit);
$('[data-send-request] [data-send-request-submit]').click(self.submit);
//...
self.inProgress = false;
self.submit = function (event) {
e.preventDefault();
if (self.inProgress) {
return false;
}
@ixth
ixth / test.eml
Created January 31, 2015 20:09
Inline images test
From: ixth <ainop@ya.ru>
To: ainop@ya.ru
Subject: test
Content-Type: multipart/related; boundary="iddqdboundary"
--iddqdboundary
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 8bit
<!doctype html>
<html>
@ixth
ixth / jquery-serializeJSON.js
Last active August 29, 2015 14:07
jquery-serializeJSON.js
(function ($) {
$.fn.serializeJSON = function () {
return $.fn.serializeArray.call(this).reduce(function (result, param) {
result[param.name] = param.value;
return result;
}, {});
};
}(jQuery));