Skip to content

Instantly share code, notes, and snippets.

View kvantor's full-sized avatar
🤔
Out sick

Kvantor kvantor

🤔
Out sick
View GitHub Profile
@kvantor
kvantor / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kvantor
kvantor / rails_resources.md
Last active August 29, 2015 14:13 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@kvantor
kvantor / javascript_resources.md
Last active August 29, 2015 14:13 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@kvantor
kvantor / rmprepusb.bat
Last active August 29, 2015 14:13
DELETE SYSTEM FILES AND FOLDERS FROM A DRIVE
@echo off
:: SteveSi (c)2014 www.rmprepusb.com www.easy2boot.com
cls
color 1f
echo.
echo DELETE SYSTEM FILES AND FOLDERS FROM A DRIVE
echo ============================================
echo.
echo THIS COMMAND: %0 %1
echo.
Verifying that "kvantor.id" is my Blockstack ID. https://onename.com/kvantor
@kvantor
kvantor / outlook_ADsign.vbs
Created June 1, 2017 13:23
Скрипт создания корпоративной подписи и наведения порядка в MS Outlook
' Скрипт создания корпоративной подписи и наведения порядка в MS Outlook
' Работает в Outlook 2000 - 2010.
' Делает очень полезные вещи:
' - Выставляет имя отправителя почты из поля DisplayName в домене
' - Отключает HTML-просмотр писем и отправку писем в HTML.
' - Создаёт простую текстовую подпись и выставляет её для всех учеток.
' Если есть вопросы или жгучее желание дать мне денег\набить морду -
' моя электропочта [email protected] .
' Конфигурационные параметры:

Исходные данные: роутер имеет адрес 192.168.1.1, tor и i2pd подняты на 192.168.1.10 (если роутер достаточно мощный, можно поднять их прямо на нём, соответственно скорректировав адреса)

В LEDE для загрузки списка заблокированных доменов проще всего использовать поставляемую по умолчанию утилиту uclient-fetch. Необходимо лишь добавить ей поддержку SSL:

opkg update
opkg install libustream-mbedtls

Впрочем, вы можете использовать wget или curl, если предпочитаете. Особенности wget см. ниже.

@kvantor
kvantor / openpgp.txt
Created May 14, 2018 20:04
Связанный идентификатор OpenKeychain
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:92ae72916c184bb80b87f129f3c865a005cb56e9]
1,2.16.106.51-2.16.106.51
2,2.16.106.91-2.16.106.91
3,111.221.29.177-111.221.29.177
4,111.221.29.253-111.221.29.253
5,131.253.40.37-131.253.40.37
6,134.170.30.202-134.170.30.202
7,134.170.115.60-134.170.115.60
8,134.170.165.248-134.170.165.248
9,134.170.165.253-134.170.165.253
10,134.170.185.70-134.170.185.70
2606:2800:50a6::/48
2606:2800:4262::/48
152.195.16.0/24
2606:2800:420::/48
152.199.17.0/24
192.16.9.0/24
192.16.36.0/24
2606:2800:4242::/48
2606:2800:4002::/47
192.229.145.0/24