Skip to content

Instantly share code, notes, and snippets.

View moiseevigor's full-sized avatar
🎯
Focusing

Igor Moiseev moiseevigor

🎯
Focusing
View GitHub Profile
@moiseevigor
moiseevigor / gist:1548565
Created January 1, 2012 22:49
ui.tabs.closable
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/ui.tabs.closable.js"></script>
</head>
<body>
<script type="text/javascript">
@moiseevigor
moiseevigor / gist:5631703
Last active December 17, 2015 15:29
Onelife - widget fullscreen
<!-- One Life Widget -->
<div style="width:100%">
<iframe src="http://onelife.fm/places/orsohobo/countries/IT.wgt1" frameborder="0" style="overflow:hidden;background-color:#fff;height:100%;width:100%;border: solid 1px #ccc;" height="100%" width="100%">Browser not compatible.</iframe>
<div style="font-size:12px;color:#8c8c8c;background-color: #fff;padding: 15px 0 15px 0px;width:100%;clear:both;display: table;border: solid 1px #ccc; border-top: none;">
<div style="float:left;margin-left:10px;">Powered by <a href="http://onelife.fm/places" target=blank>Onelife.fm</a></div>
<div style="float:right;margin-right: 20px;"><a href="http://onelife.fm/places" target=blank><img src=http://onelife.fm/assets/places/img/p_small.png></a></div>
</div>
</div>
<!-- One Life Widget -->
@moiseevigor
moiseevigor / xstat
Last active October 12, 2022 06:32
xstat bash function to get file creation time on Linux with EXT4
xstat() {
for target in "${@}"; do
inode=$(ls -di "${target}" | cut -d ' ' -f 1)
fs=$(df "${target}" | tail -1 | awk '{print $1}')
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null |
grep -oP 'crtime.*--\s*\K.*')
printf "%s\t%s\n" "${crtime}" "${target}"
done
}
@moiseevigor
moiseevigor / Dockerfile.tf15-py3-cv3
Last active November 18, 2018 17:16
Tensorflow 1.5 + OpenCV 3.4.1 + Python 3
FROM gcr.io/tensorflow/tensorflow:1.5.0-gpu-py3
LABEL maintainer="Igor Moiseev <[email protected]>"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
wget \
unzip \
@moiseevigor
moiseevigor / Dockerfile
Last active May 28, 2020 12:21
Dockerfile - OpenPose 1.4.0, OpenCV, CUDA 8, CuDNN 6, Python2.7
# inspired by https://gist.github.com/sberryman/6770363f02336af82cb175a83b79de33
FROM bvlc/caffe:gpu
RUN apt-get update -y && apt-get --assume-yes install \
build-essential unzip \
# General dependencies
libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler \
libboost-all-dev \
# Remaining dependencies, 14.04
libgflags-dev libgoogle-glog-dev liblmdb-dev \
@moiseevigor
moiseevigor / dns.md
Last active October 15, 2020 12:54
dns on macos

DNS and VPN on Macos

Install brew, it will install xcode-shell

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"