Skip to content

Instantly share code, notes, and snippets.

View t3hk0d3's full-sized avatar
🏠
Working from home

Igor Yamolov t3hk0d3

🏠
Working from home
  • Booking.com
  • Amsterdam, Netherlands
View GitHub Profile
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul class="nav nav-pills">
<li class="active"><a href="clients#index">Клиенты</a></li>
<li><a href="clients#index">Дети</a></li>
<li><a href="clients#index">Группы</a></li>
<li><a href="clients#index">Расписание</a></li>
<li><a href="clients#index">Статистика</a></li>
$ traceroute scrumbleship.com
traceroute to scrumbleship.com (204.45.31.171), 30 hops max, 60 byte packets
1 192.168.5.1 (192.168.5.1) 0.275 ms 0.595 ms 0.763 ms
2 * net80.195.109-100.spb.ertelecom.ru (109.195.80.100) 2.879 ms 3.047 ms
3 net80.195.109-101.spb.ertelecom.ru (109.195.80.101) 23.923 ms 3.149 ms 3.647 ms
4 spb15.spb31.transtelecom.net (217.150.56.34) 3.369 ms 3.411 ms 3.440 ms
5 amm15ra.transtelecom.net (80.81.194.117) 51.198 ms 51.357 ms 51.390 ms
6 tge1-3.fra01-1.eu.as5580.net (80.81.195.66) 55.608 ms 37.823 ms 38.222 ms
7 tge4-3.ams02-1.eu.as5580.net (80.94.64.221) 41.256 ms 41.041 ms tge2-2.par02-1.fr.as5580.net (78.152.34.62) 55.488 ms
8 tge3-1.lon01-1.uk.as5580.net (78.152.34.78) 73.856 ms tge1-2.ash01-1.us.as5580.net (78.152.34.114) 128.389 ms 128.680 ms
java.lang.NullPointerException
at net.minecraftforge.common.ForgeInternalHandler.onEntityJoinWorld(ForgeInternalHandler.java:30)
at net.minecraftforge.event.ASMEventHandler_0_ForgeInternalHandler_onEntityJoinWorld_EntityJoinWorldEvent.invoke(.dynamic)
at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:35)
at net.minecraftforge.event.EventBus.post(EventBus.java:103)
at xe.d(World.java:1430)
at awz.d(WorldClient.java:157)
at awz.a(WorldClient.java:226)
at awr.a(NetClientHandler.java:192)
at cf.a(SourceFile:58)
--- BEGIN ERROR REPORT d593db47 --------
Generated 01.12.12 21:03
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.6.0_26, Sun Microsystems Inc.
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
- Memory: 148389792 bytes (141 MB) / 305987584 bytes (291 MB) up to 954466304 bytes (910 MB)
- JVM Flags: 2 total; -Xms256M -Xmx1024M
- AABB Pool Size: 10817 (605752 bytes; 0 MB) allocated, 10817 (605752 bytes; 0 MB) used
2013-06-10 21:14:01
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007f8844002000 nid=0x6c5f waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"RubyThread-11: /home/deploy/apps/mts_integration/shared/bundle/jruby/1.9/gems/bunny-0.9.0.pre12/lib/bunny/reader_loop.rb:20" daemon prio=10 tid=0x00007f8840016800 nid=0x4835 runnable [0x00007f884831f000]
java.lang.Thread.State: RUNNABLE
at java.util.Random.nextInt(Unknown Source)
at sun.misc.Hashing.randomHashSeed(Unknown Source)
2013-06-10 21:39:22
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007fac98001000 nid=0x7747 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"pool-1-thread-3" prio=10 tid=0x00007fac8c5cd000 nid=0x729c waiting on condition [0x00007facb8ac8000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000e1f4a528> (a java.util.concurrent.SynchronousQueue$TransferStack)
@t3hk0d3
t3hk0d3 / unixtime.c
Last active April 15, 2022 18:16
Naive implementation of Unix Timestamp to DateTime conversion
typedef struct _DateTime {
uint16_t year;
uint8_t month;
uint8_t day;
uint8_t hour;
uint8_t minute;
uint8_t second;
} DateTime;
uint8_t monthDays[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
@t3hk0d3
t3hk0d3 / gist:6756947
Created September 29, 2013 21:55
RPM upgrade log
$ brew upgrade rpm
==> Upgrading 1 outdated package, with result:
rpm 5.4.11
==> Upgrading rpm
==> Downloading http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.11-0.20130708.src.rpm
######################################################################## 100,0%
rpm-5.4.11.tar.gz
23758 blocks
==> Patching
patching file system.h
@t3hk0d3
t3hk0d3 / rpm.magic
Created October 3, 2013 13:58
rpm.magic
#------------------------------------------------------------------------------
#
# RPM: file(1) magic for Red Hat Packages
#
0 beshort 0xedab
>2 beshort 0xeedb RPM
>>4 byte x v%d
>>6 beshort 0 bin
>>6 beshort 1 src
>>8 beshort 1 i386
@t3hk0d3
t3hk0d3 / IntervalType.java
Last active December 26, 2015 06:49
written in browser, have no IDE there
//
protected enum IntervalType {
UNKNOWN(0),
MINUTE(60, "minute", "m"),
HOUR(3600, "hour", "h"),
DAY(86400, "day", "d"),
WEEK(604800, "week", "w"),
MONTH(2592000, "month"),
YEAR(31104000, "year");