Skip to content

Instantly share code, notes, and snippets.

🎹
🎼 🎵 https://youtu.be/WNcsUNKlAKw 🎶 🎹

SADIK KUZU sadikkuzu

🎹
🎼 🎵 https://youtu.be/WNcsUNKlAKw 🎶 🎹
Block or report user

Report or block sadikkuzu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sadikkuzu
sadikkuzu / review.js
Created Jan 22, 2020
Review pull request changes, view'em all, and submit.
View review.js
var els = document.getElementsByClassName('js-reviewed-checkbox')
Array.prototype.forEach.call(els, function(el) { el.click() });
document.getElementsByName('pull_request_review[event]')[1].click()
document.getElementsByClassName('btn btn-sm btn-primary float-left mr-1')[0].click();
View fix.sh
#!/usr/bin/env sh
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
apt install libqt5gui5 -y
sudo wget -O /usr/local/bin/dropbox "https://www.dropbox.com/download?dl=packages/dropbox.py"
sudo chmod +x /usr/local/bin/dropbox
dropbox status
echo dropbox start
View Jekyll_tags_by_name.html
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first | downcase }}#{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_hashes = site_tags | split:',' | sort %}
<ul class="list-group">
{% for hash in tag_hashes %}
{% assign keyValue = hash | split: '#' %}
{% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
<li class="list-group-item">
<a href="/tags/{{ tag_word }}">
{{ tag_word }}
<span class="badge pull-right">{{ site.tags[tag_word].size }}</span>
@sadikkuzu
sadikkuzu / JiraCloudOutage.txt
Created Sep 26, 2018
Jira Cloud outage - 9/26/18
View JiraCloudOutage.txt
HTTP Status 500 – Internal Server Error
Type Exception Report
Message TenantContextCommand short-circuited and fallback disabled.
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
com.netflix.hystrix.exception.HystrixRuntimeException: TenantContextCommand short-circuited and fallback disabled.
@sadikkuzu
sadikkuzu / JiraCloudOutage.html
Created Sep 26, 2018
Jira Cloud outage - 9/26/18
View JiraCloudOutage.html
<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> TenantContextCommand short-circuited and fallback disabled.</p><p><b>Description</b> The server encountered an unexpected condition that prevented it
@sadikkuzu
sadikkuzu / happy_numbers.py
Created Sep 23, 2018
Exploring happy numbers
View happy_numbers.py
# https://www.wikiwand.com/en/Happy_number
# http://mathworld.wolfram.com/HappyNumber.html
def square(x):
return int(x) * int(x)
def happy(number):
return sum(map(square, list(str(number))))
def is_happy(number):
You can’t perform that action at this time.