Skip to content

Instantly share code, notes, and snippets.

Hasan Tayyar BEŞİK hasantayyar

Block or report user

Report or block hasantayyar

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
$ sudo apt-get update && sudo apt-get install -y \
build-essential \
git \
libopenblas-dev python-dev python-pip \
python-nose python-numpy python-scipy
# or `sudo pip install ...`
$ pip install --upgrade --no-deps git+git://
hasantayyar /
Created Mar 10, 2019
Deploy missing deployment to clusters
if [ -z $SEARCH ]; then
echo "Missing param. 1st param is the search phrase"
exit 1
hasantayyar / .htaccess
Last active Mar 2, 2019
Maintenance page redirection with htaccess
View .htaccess
# check if there is a file named maintenance.html
# so when you want to disable maintenance mode just remname "mv maintenance.html maintenance.html.disabled"
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /maintenance.html [R=503,L]
ErrorDocument 503 /maintenance.html
# list code lines
find . -type f -name "*.ts" -exec cat {} + | sort -u
# count them
find . -type f -name "*.ts" -exec cat {} + | sort -u | wc -l
hasantayyar /
Created Nov 19, 2018 — forked from kn0ll/
a simple nodejs request proxy as connect middleware. developed as a cross domain ajax proxy.
a small connect middleware proxy for cross domain ajax
@path first match group will be forwarded
@host the host you want to proxy
connect_server.use proxy '^(/.+)', ''
connect_server.use proxy '^/gh(/.+)', ''
View html_for_international_calling coes.htm
<!-- country codes (ISO 3166) and Dial codes. -->
<select name="countryCode" id="">
<option data-countryCode="GB" value="44" Selected>UK (+44)</option>
<option data-countryCode="US" value="1">USA (+1)</option>
<optgroup label="Other countries">
<option data-countryCode="DZ" value="213">Algeria (+213)</option>
<option data-countryCode="AD" value="376">Andorra (+376)</option>
<option data-countryCode="AO" value="244">Angola (+244)</option>
<option data-countryCode="AI" value="1264">Anguilla (+1264)</option>
<option data-countryCode="AG" value="1268">Antigua &amp; Barbuda (+1268)</option>
hasantayyar / graph.js
Last active Sep 14, 2018
extracte the state machien svg graph library from aws bundle
View graph.js
/*global dagreD3*/
/*global d3*/
/*global WheelEvent*/
/*global window */
(function () {
"use strict";
var module = angular.module("WorkflowGraph", []);
function intersectRect(node, point) {
You can’t perform that action at this time.