Skip to content

Instantly share code, notes, and snippets.

@jehy
jehy / Android-get-owner-contact-info.java
Created October 17, 2012 08:00
Simple class which allows to get email, phone and name of owner of the android device.
gist was moved to a separate repo, please visit
https://github.com/jehy/Android-GetOwnerInfo
@jehy
jehy / git rename author
Created April 11, 2017 06:25
git-rename.sh
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='Jehy'; GIT_AUTHOR_EMAIL='fate@jehy.ru'; GIT_COMMITTER_NAME='Jehy'; GIT_COMMITTER_EMAIL='fate@jehy.ru';" HEAD
@jehy
jehy / default.conf
Created July 2, 2018 10:25
websocket with nginx and ssl
upstream websocket {
server 127.0.0.1:8080;
}
server {
index index.html index.htm index.nginx-debian.html;
server_name shodan.onutotrip.ru;
@jehy
jehy / fixTestFile.js
Created May 27, 2020 15:02
move test data from js file to json
'use strict';
// TODO small and primitive values should not be put to separate files
const fs = require('fs');
const path = require('path');
const args = process.argv;
console.log('args', args);
@jehy
jehy / CAME.ino
Created January 25, 2022 21:27 — forked from superyarik/CAME.ino
#define pinRX 2
#define pinTX 8
#define CM_MAX_TE 450
#define CM_MIN_TE 250
#define CM_BITS12 12
#define CM_BITS24 24
#define Te 320
volatile byte level = 255;