Skip to content

Instantly share code, notes, and snippets.

View inceabdullah's full-sized avatar
🏢
Working from office

inceabdullah

🏢
Working from office
View GitHub Profile
@inceabdullah
inceabdullah / sudownload.sh
Created August 14, 2011 16:24
sudownload.sh
#!/bin/bash
#
# Doğan Aydın a saygılar
#
# https://gist.github.com/1144607 adresindeki sudownload.py python uygulamasının sudownload.sh bash uygulamasıdır :D
#
#
# Abdullah ince - pax.castrensis@gmail.com - bilgi@kesinbilgi.com - http://kesinbilgi.com
#
@inceabdullah
inceabdullah / gun_ay_yil_rakamlarinin_toplami.py
Created November 24, 2020 06:01
Gün ay ve yılın rakamlarının toplamı
pin = []
g = int(input("gün:"))
a = int(input("ay:"))
y = int(input("yil:"))
def rakam_toplami (x):
if x < 10:
return x
else:
return (x%10)+int(x/10)

Keybase proof

I hereby claim:

  • I am inceabdullah on github.
  • I am nomorecoins (https://keybase.io/nomorecoins) on keybase.
  • I have a public key ASBkSm34xMWqqLjJDmXtFRiI53lz8HKFQwHl1teGnMA8UQo

To claim this, I am signing this object:

@inceabdullah
inceabdullah / .gitignore
Last active April 3, 2021 11:51
node.js project recommended .gitignore file
node_modules/
package-lock.json
.env
@inceabdullah
inceabdullah / git_aliases
Last active August 17, 2023 08:26
Most Useful Git Aliases
#Git
alias ga='git add'
alias gc='git commit -m'
alias gca='git commit -am'
alias gcam='git commit --amend -m'
alias gf='git fetch'
alias gb='git branch -av'
alias glo='git log --oneline'
alias gp='git push'
alias gst='git status'
@inceabdullah
inceabdullah / object2Html.js
Created August 23, 2021 11:34
in email body, to read any json-like object as html formatted to be seen easy
exports.object2Html = (obj) => JSON.stringify(obj, null, 2)
.replace(/\n\s\s\s\s\s\s/g, "<br />&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;")
.replace(/\n\s\s\s\s\s/g, "<br />&emsp;&emsp;&emsp;&emsp;&emsp;")
.replace(/\n\s\s\s\s/g, "<br />&emsp;&emsp;&emsp;&emsp;")
.replace(/\n\s\s\s/g, "<br />&emsp;&emsp;&emsp;")
.replace(/\n\s\s/g, "<br />&emsp;&emsp;")
.replace(/\n\s/g, "<br />&emsp;")
.replace(/\n/, "<br />");
#!/bin/bash
journalctl-container() {
COMMAND="journalctl CONTAINER_NAME=\"$1\" -a $2"
bash -c "$COMMAND"
}
psg() {
CMD="ps auxw | grep --color -i \[${1:0:1}\]${1:1}"
bash -c "$CMD"
alias watch='watch '
alias xargs='xargs '
alias aprint='awk "{print \$1}"'
alias bprint='awk "{print \$2}"'
alias cprint='awk "{print \$3}"'
alias zprint='awk "{print \$NF}"'
cdrun () {
( cd "$1" && shift && command "$@" )
}
alias cdd='cd ..'
@inceabdullah
inceabdullah / docker-aliases.sh
Last active November 16, 2021 06:43 — forked from jgrodziski/docker-aliases.sh
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
alias nr="npm run"