Skip to content

Instantly share code, notes, and snippets.

View releu's full-sized avatar
🕶️
I may be slow to respond.

Jan Bernacki releu

🕶️
I may be slow to respond.
View GitHub Profile
@releu
releu / readme.md
Created November 4, 2020 13:03
ADD-THE-COLOR

Раскраска для детей и взрослых. 0+

После использования напишите пожалуйста что понравилось, а что нет в телеграмм.

https://t.me/releu

@releu
releu / tv.rb
Created March 21, 2019 12:34
tv
@channel = 1
@channel_map = {
1 => "./ocean.mp4",
2 => "./fireplace.mp4",
3 => "./ocean.mp4",
4 => "./fireplace.mp4",
}
@emulator = Thread.new do
@releu
releu / list.json
Created February 21, 2018 10:34
Images to MDS
{"http://i41-cdn.woman.ru/images/gallery/3/e/g_3ebeef4c1a53cc4430a0b42b8168247b_2_800x600.jpg?02":"?","http://i41-cdn.woman.ru/images/gallery/0/5/g_05beef0b885ff114be3470bc772800f0_2_800x600.jpg?02":"?","http://i41-cdn.woman.ru/images/gallery/6/8/g_68beefaa03a8e4f4ab6812598cb03011_2_800x600.jpg?02":"?","http://i41-cdn.woman.ru/images/gallery/c/4/g_c4beef79c07f6f0cc703bc7f18e8f39f_2_800x600.jpg?02":"?","http://i42-cdn.woman.ru/images/gallery/7/e/g_7ebeef2590c85e6c775030c644513ce2_2_800x600.jpg?02":"?","http://i42-cdn.woman.ru/images/gallery/d/2/g_d2beef15a62ba4ee27e1954de5b2a6df_2_800x600.jpg?02":"?","http://i42-cdn.woman.ru/images/gallery/1/8/p_5753_18bc30b683cb1bf903c06dafde1750b5_2_300x300.jpg?02":"?","http://i43-cdn.woman.ru/images/gallery/2/d/g_2dbeef62a8d97f654efbd996ab30f0d6_2_800x600.jpg?02":"?","http://i43-cdn.woman.ru/images/gallery/5/6/g_56beef72d6ce40186ccc2d7aa6da561c_2_800x600.jpg?02":"?","http://i43-cdn.woman.ru/images/gallery/5/7/g_57beef1b46d5a321179ccc28bb70725c_2_800x600.jpg?02":"?","http://
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
@releu
releu / gist:033485719fdc957771b0
Created October 27, 2014 09:06
piwik mysql schema
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: 127.0.0.1 (MySQL 5.5.40-0ubuntu0.14.04.1)
# Database: piwik
# Generation Time: 2014-10-27 09:03:36 +0000
@releu
releu / gist:7dc0f0bca329e5ed3099
Created October 21, 2014 10:26
indesign 100%
main();
function main(){
app.generalPreferences.customMonitorPpi = 72;
app.generalPreferences.useCustomMonitorResolution = true;
}
@releu
releu / gist:8548672
Created January 21, 2014 21:23
retina images for twitter
var replaceImages = function(){
$("img").each(function(i, img){
var src = img.src.replace(/_normal/, "")
src = src.replace(/_bigger/, "")
if (img.src != src)
img.src = src
})
}
setInterval(replaceImages, 100)
files = Dir["./**/*"]
files.each do |file|
next if File.directory?(file)
words = []
begin
File.read(file).scan /[\u0400-\u04FF\-]+/ do |match|
words << match
end
Gem::Specification.new do |s|
s.name = 'openssh-key-checker'
s.version = '0.1.0'
s.platform = Gem::Platform::RUBY
s.author = 'Jan Bernacki'
s.email = 'releu@me.com'
s.summary = 'OpenSSH checker'
s.description = 'OpenSSH checker with system tools'
s.files = ['openssh-key-checker.rb']
queue = []
gargling = Thread.new do
loop do
queue << "It's time to gargle"
sleep 60 * 60
end
end
pills = Thread.new do