Skip to content

Instantly share code, notes, and snippets.

View gumeniukcom's full-sized avatar
:octocat:
Focusing

Stanislav Gumeniuk gumeniukcom

:octocat:
Focusing
View GitHub Profile
@gumeniukcom
gumeniukcom / iterm2-solarized.md
Created April 19, 2024 06:40 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

BEGIN MESSAGE.
egMOu0utVv8q5c5 MeTcOZPUPABmd7x 5GPcGNtZ02VnAle pBAoxEWvsefNiY2
rIvYlwd8FCpL0Rd 3EPe0GiiRXvTCKq 6Xr2MZHgg4WqbhQ VMRQFPvEsqYg0Hw
JhqxdKlqpCQblEI AHopIFYE49eAsEH DN2YyGkpx05XaQV 6m7moiKT2gYEHdV
1ZYplFqt9evpiLx HmVBllqSjaZxjqK YL4en0aLMzWSiL.
END MESSAGE.
@gumeniukcom
gumeniukcom / main.go
Created April 2, 2020 16:52
leetcode.com 202. Happy Number
func isHappy(n int) bool {
if n <=0 {
return false
}
used := make(map[int]bool)
used[n] = true
for n!=1 {
fmt.Println(n)
k:= n
sum := 0
@gumeniukcom
gumeniukcom / keybase.md
Created January 27, 2020 09:34
keybase.md

Keybase proof

I hereby claim:

  • I am gumeniukcom on github.
  • I am gumeniukcom (https://keybase.io/gumeniukcom) on keybase.
  • I have a public key whose fingerprint is 5BE8 0A02 55D4 0756 1961 025E C82D 0927 467D E438

To claim this, I am signing this object:

@gumeniukcom
gumeniukcom / README.md
Created May 28, 2017 11:07
Install PHP7 on OS X El Capitan

Install PHP7 on OS X El Capitan

add the taps, unlink the old PHP if required and add php7

brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew unlink php56
brew install php70
@gumeniukcom
gumeniukcom / kill-rmq-connections.sh
Created June 22, 2016 11:20 — forked from thiagooak/kill-rmq-connections.sh
kill ALL rabbitmq connections
rabbitmqctl list_connections pid port state user vhost recv_cnt send_cnt send_pend name | awk '{print "rabbitmqctl close_connection \"" $1 "\" \"manually closing idle connection\"" | "/bin/bash" }'
@gumeniukcom
gumeniukcom / task.yml
Last active September 8, 2015 15:14 — forked from maxim/task.yml
Adding github to known_hosts with ansible
- name: ensure github.com is a known host
lineinfile:
dest: /root/.ssh/known_hosts
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
regexp: "^github\\.com"
@gumeniukcom
gumeniukcom / .gitconfig
Last active November 11, 2016 12:10
Pretty gitconfig!
[color]
status=auto
branch=auto
interactive=auto
diff=auto
[alias]
s = status
st = status
b = branch

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

<?php
/**
* @author Stan Gumeniuk [email protected]
*/
function getPrimeNumbers($n = 100)
{
$resheto = [];
$current = 2;