Skip to content

Instantly share code, notes, and snippets.

View ahorek's full-sized avatar

Pavel Rosický ahorek

View GitHub Profile
set/export TZ=EST
test.rb
puts File.open('aaa.txt') {|f| f.mtime }
puts File.open('aaa.txt') {|f| f.mtime }.zone
puts File.open('aaa.txt') {|f| f.mtime }.utc_offset
puts Time.now.utc_offset
puts Time.at(0).utc_offset
ENV["TZ"] = "CET"
==13258== Memcheck, a memory error detector
==13258== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==13258== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==13258== Command: ruby -S rake easyproject:install RAILS_ENV=production
==13258== Parent PID: 1655
==13258==
==13258== Warning: client switching stacks? SP change: 0x1fff000520 --> 0x1ffe8020e0
==13258== to suppress, use: --max-stackframe=8381504 or greater
==13258== Invalid write of size 1
==13258== at 0x5051C55: reserve_stack (thread_pthread.c:868)
@ahorek
ahorek / evp.h
Created September 10, 2018 14:21
evp.h
/* crypto/evp/evp.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions