Skip to content

Instantly share code, notes, and snippets.

View ZogStriP's full-sized avatar

Régis Hanol ZogStriP

View GitHub Profile
@ZogStriP
ZogStriP / dot.sh
Last active July 15, 2024 08:09
dotfiles
# https://www.atlassian.com/git/tutorials/dotfiles
git init --bare $HOME/.dotfiles
echo "alias dot='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.bashrc
source $HOME/.bashrc
dot config --local status.showUntrackedFiles no
/**********/
/* GLOBAL */
/**********/
.powered-by-discourse {
display: none !important;
}
.badge-category__name {
text-transform: lowercase;

Unordered lists

  • a
    • b
      • c
      • d
        • e
    • f
    • f
  • h
@ZogStriP
ZogStriP / .vimrc
Last active October 30, 2019 09:44
" tabs & spaces
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
" search
set ignorecase " case insensitive
set smartcase " use case if any caps used
set incsearch " show match as search proceeds
@ZogStriP
ZogStriP / spam_classifier.rb
Created August 10, 2016 08:01
Bayesian SPAM Classifier
require "set"
require "active_support"
require "active_support/core_ext"
class SpamClassifier
TOKEN_REGEX ||= /(?:\d+[.,])+\d+|[[[:alnum:]]_\-']+/
ONLY_DIGIT_REGEX ||= /^\d+$/
SPAM_PROBABILITY_THRESHOLD ||= 0.9
Verifying that +regishanol is my blockchain ID. https://onename.com/regishanol
/original/1X/#{sha}#{extension}
/original/2X/#{sha[0]}/#{sha}#{extension}
/original/3X/#{sha[0]}/#{sha[1]}/#{sha}#{extension}
/original/4X/#{sha[0]}/#{sha[1]}/#{sha[2]}/#{sha}#{extension}
/optimized/1X/#{sha}_#{version}_#{width}x#{height}#{extension}
/optimized/2X/#{sha[0]}/#{sha}_#{version}_#{width}x#{height}#{extension}
/optimized/3X/#{sha[0]}/#{sha[1]}/#{sha}_#{version}_#{width}x#{height}#{extension}
/optimized/4X/#{sha[0]}/#{sha[1]}/#{sha[2]}/#{sha}_#{version}_#{width}x#{height}#{extension}
@ZogStriP
ZogStriP / pro-finder.rb
Last active August 29, 2015 14:21
Startup Weekend Hack
require "mechanize"
BASE_URL = "http://www.societe.com"
SEARCH_URL = "#{BASE_URL}/cgi-bin/liste?ape={APE}&dep={DEP}"
APE = %W{
4120A 4120B
4311Z 4312A 4312B 4313Z 4321A 4321B 4322A 4322B 4329A 4329B 4331Z 4332A 4332B 4332C 4333Z 4334Z 4339Z 4391A 4391B 4399A 4399B 4399C 4399D 4399E
}

Keybase proof

I hereby claim:

  • I am zogstrip on github.
  • I am zogstrip (https://keybase.io/zogstrip) on keybase.
  • I have a public key ASDIGmEupQFtHCwDh0Pnrx_XTkjSBpel_K4Cjz0CS37YjQo

To claim this, I am signing this object:

[2014-02-13 01:05:01] EXCEPTION: Tried to use a connection from a child process without reconnecting. You need to reconnect to Redis after forking.
[2014-02-13 01:05:01] /home/regis/.rvm/gems/ruby-2.1.0/gems/redis-3.0.6/lib/redis/client.rb:287:in `ensure_connected'
/home/regis/.rvm/gems/ruby-2.1.0/gems/redis-3.0.6/lib/redis/client.rb:179:in `block in process'
/home/regis/.rvm/gems/ruby-2.1.0/gems/redis-3.0.6/lib/redis/client.rb:258:in `logging'
/home/regis/.rvm/gems/ruby-2.1.0/gems/redis-3.0.6/lib/redis/client.rb:178:in `process'
/home/regis/.rvm/gems/ruby-2.1.0/gems/redis-3.0.6/lib/redis/client.rb:84:in `call'
/home/regis/.rvm/gems/ruby-2.1.0/gems/redis-3.0.6/lib/redis.rb:675:in `block in set'
/home/regis/.rvm/gems/ruby-2.1.0/gems/redis-3.0.6/lib/redis.rb:36:in `block in synchronize'
/home/regis/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/home/regis/.rvm/gems/ruby-2.1.0/gems/redis-3.0.6/lib/redis.rb:36:in `synchronize'