Skip to content

Instantly share code, notes, and snippets.

@andrei15
andrei15 / rename-camel-to-dash.js
Created March 19, 2018 04:20 — forked from finalclass/rename-camel-to-dash.js
recursively renames every file and directory in the script path from camelCase and UpperCamelCase to dash-case
/*jshint node:true*/
'use strict';
/**
* This scripts recursively renames every file and directory in the script path
* from camelCase and UpperCamelCase to dash-case
*
* Do a backup before executing this script
*
* @lecense MIT
@andrei15
andrei15 / rules-both.iptables
Created April 28, 2018 12:57 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@andrei15
andrei15 / elasticsearch.yml
Created October 3, 2018 07:43 — forked from ignasio/elasticsearch.yml
elasticsearch config for russian morphology based on hunspell
index:
number_of_shards: 3
number_of_replicas: 0 # not for production
analysis:
char_filter:
ru:
type: mapping
mappings: ['Ё=>Е', 'ё=>е']
analyzer:
ru_RU:
@andrei15
andrei15 / CryptoKitties.sol
Created June 7, 2019 09:05 — forked from yogin/CryptoKitties.sol
CryptoKitties
// Copied from: https://ethfiddle.com/09YbyJRfiI
// CryptoKitties Source code
// Copied from: https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control