Skip to content

Instantly share code, notes, and snippets.

View mche's full-sized avatar
🎄
Focusing

Михаил Че (Mikhail Che) mche

🎄
Focusing
  • есть
  • North Korea
  • 21:46 (UTC +05:00)
View GitHub Profile
@mche
mche / key.txt
Last active May 14, 2020 06:33
Монтирование LUKS раздела
tuhG8Jg7aBtF4X7NV6FddzAkZw7ZpnpBEjm9wq5SMCnl/lrwIQVp/XEhj72nhxg7FDA6bZY/Mw/4qhmq7+PRBZ26bSRncd6uVz8XtOoK4cDmNX4E380YdnmjLoaqKP1h2bNJwegSZtMbmY2/yQcjWU+xBsfLLbq4B1vsaTfdCIWxi9tItQqmMzR8PIGdLVcIzb3Ur/SPmoJ/l4wvwD9W7OBHQSaAONuXpDfj8NlwZhVrcksVv3dvQ60XgHHUc7ZKy8irlBmRn5V6cuHwlZrGeejGQ4hvbCQw1kdqWR2BcgtxvGndGf+xwUilNEvVBP3rRkoZV2rdtvGyeojzNxD6PLGxhDGlq8pqpFBKyaLdtDXSz/T+EzDzaDPa2/XgXO+a9d54rL+naMkp0iW6JWUa4nhVlsGxWZybFFV3LG6GpjZw2w5q6mXBkHu9zUhbm5ELimzNHJqol17QWfdInbhvWYMT+mAaWswzqs9Elp9WRmCnjAL6nRTHSdybhh14vI+ANiK29Clf//Y04Pte4rpsllMeLk7CIIf+tCxIrxlzbtTh7i4BHXK2UiOhxwt1wpFtcPGu4gQRknh3K5fV++xG9zWiCIfnODMZRvN1X69Q5TEmIyxDZuw20Ir3ya95o211jpBKKC03w9YSreulZErTajmsujk+RRYOwKOXr2Y3nw9ldHUtk9ZIeo4FME4bvBc3lQ0nz1K4sklLOVq/tOd/+SPgu1Mvoe8gVrniXZZJHRJwuW310TguPaRp0xrC2J5gASUbWxHBthwc4jYZlLnE2cgA6pnyIZiXMNiKM6B0WAOp1hhgwC7STuW/V7LTQsjeRvAc2dMFOLet37uVfqcKT0cbO9nsLBVxiRw5sk0BkLl2HmbAxdrN+SnlxSdGxKaF9p17zrcsczcULdSUz2JbbqGwWvNH9MabntLLndvgwRqA9bw/1rnuyk0XQHe/TCGzS2sPEZwR4V/ZkB0JKYVoGORZ5PAyvCivAilDbf08JmZMNKLwJTUNegSc4LQhkFo6
@newcloudtech
newcloudtech / karma.config.js
Last active June 15, 2021 04:00
Webpack and karma configs
var webpackConfig = require('../webpack.config.js');
module.exports = function () {
autoWatch: true,
frameworks: ['jasmine'],
preprocessors: {
'../app/**/*.js': ['webpack'],
'../app/**/scripts/**/*.js': ['coverage']
},
webpack: {
resolve: webpackConfig.resolve,
use Mojolicious::Lite;
use DBM::Deep;
use Mojo::JWT;
plugin 'Bcrypt';
plugin 'Minion' => {SQLite => 'minion.db'};
helper users => sub { state $db = DBM::Deep->new('users.db') };
@briandfoy
briandfoy / mojo_static_with_default_index.pl
Last active October 26, 2017 10:29
A small static file server with a default index file, in Mojolicious
#!/Users/brian/bin/perls/perl5.20.0
use v5.10;
say "ARGV is @ARGV";
use Mojolicious::Lite;
my $default_index = 'index.html';
@denji
denji / http-benchmark.md
Last active May 2, 2024 06:26
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
package Mojolicious::Plugin::GZip;
use Mojo::Base 'Mojolicious::Plugin';
use IO::Compress::Gzip 'gzip';
# Just set "gzip => 1" in the stash and it will try to compress your content
sub register {
my ($self, $app) = @_;
$app->hook(
after_dispatch => sub {
@svlasov-gists
svlasov-gists / gist:2383751
Created April 14, 2012 11:31 — forked from padolsey/gist:272905
JavaScript: merge two objects
function merge(target, source) {
/* Merges two (or more) objects,
giving the last one precedence */
if ( typeof target !== 'object' ) {
target = {};
}
for (var property in source) {
require "try-catch"
try {
function()
error('oops')
end,
catch {
function(error)
print('caught error: ' .. error)