Skip to content

Instantly share code, notes, and snippets.

View yumitsu's full-sized avatar
🐢
I LIEK TURTLES

Alex Zinchenko yumitsu

🐢
I LIEK TURTLES
  • St. Petersburg, Russia
View GitHub Profile
@yumitsu
yumitsu / formula-example.rb
Created July 6, 2020 13:11
Formula example
# This is a non-functional example formula to showcase all features and
# therefore, it's overly complex and dupes stuff just to comment on it.
# You may want to use `brew create` to start your own new formula!
# Documentation: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
## Naming -- Every Homebrew formula is a class of the type `Formula`.
# Ruby classes have to start Upper case and dashes are not allowed.
# So we transform: `example-formula.rb` into `ExampleFormula`. Further,
# Homebrew does enforce that the name of the file and the class correspond.
# Check with `brew search` that the name is free.
@yumitsu
yumitsu / # remake - 2020-07-06_15-16-07.txt
Created July 6, 2020 12:21
remake on macOS 10.13.6 - Homebrew build logs
Homebrew build logs for remake on macOS 10.13.6
Build date: 2020-07-06 15:16:07
@yumitsu
yumitsu / gist:ec0c8f1f03dbc94eed8c
Created August 29, 2014 09:22
ST3 build 3065, Linux x64 - licenses

These licenses will be valid after sublime_text patching:

- BEGIN License -
Love
Unlimited user license
EA7E-8441
918381ACA844A0379CCAC729059720A4
BC9D409098618744BB45FF23E67568DB
82B926D92157127DB3B4054834D0477F
@yumitsu
yumitsu / digest.rb
Created January 21, 2018 05:38 — forked from jfcalvo/digest.rb
Hash of files an strings with Ruby using MD5 and SHA256
require 'digest'
# Get SHA256 Hash of a file
puts Digest::SHA256.hexdigest File.read "data.dat"
# Get MD5 Hash of a file
puts Digest::MD5.hexdigest File.read "data.dat"
# Get MD5 Hash of a string
puts Digest::SHA256.hexdigest "Hello World"
# Get SHA256 Hash of a string using update
@yumitsu
yumitsu / sed cheatsheet
Created January 21, 2018 05:38 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
java.io.FileNotFoundException: /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunmscapi.jar (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:225)
at java.util.zip.ZipFile.<init>(ZipFile.java:155)
at java.util.zip.ZipFile.<init>(ZipFile.java:169)
at com.javadeobfuscator.deobfuscator.utils.Utils.loadBytes(Utils.java:390)
at com.javadeobfuscator.deobfuscator.utils.TransformerHelper.newVirtualMachine(TransformerHelper.java:159)
at com.javadeobfuscator.deobfuscator.transformers.stringer.v3_1.StringEncryptionTransformer.transform(StringEncryptionTransformer.java:39)
at com.javadeobfuscator.deobfuscator.Deobfuscator.runFromConfig(Deobfuscator.java:325)
at com.javadeobfuscator.deobfuscator.Deobfuscator.start(Deobfuscator.java:285)
#!/usr/bin/env ruby
# encoding: utf-8
# By Uğur Özyılmazel, @vigobronx | @ugurozyilmazel
# http://vigodome.com | http://ugur.ozyilmazel.com | http://github.com/vigo
def get_paged_memory_usage(match_string, paging=4096)
mvar = 3
if match_string.split(/[^\w]/).length > 1
mvar = 4
@yumitsu
yumitsu / jquery-cookie.coffee
Created October 8, 2013 08:29
jQuery.cookie method
@yumitsu
yumitsu / console.log
Created November 6, 2014 16:18
Welcome to JS
> Object()
{}
> Object() == {}
false
> Object() == new Object()
false
> {} == new Object()
false
@yumitsu
yumitsu / gist:5015386
Last active December 14, 2015 02:39
Ruby 1.9.3 RVM installation with railsexpress patchset and patch for Clang compatibility.
#!/bin/bash
rvm get head
rvm install 1.9.3-p385 --with-gcc=clang --patch http://bit.ly/dwpatch,railsexpress -C --disable-werror