Skip to content

Instantly share code, notes, and snippets.

View gurkanakdeniz's full-sized avatar

Gürkan Akdeniz gurkanakdeniz

View GitHub Profile
@cosimo
cosimo / parse-options.sh
Created September 21, 2012 09:31
Example of how to parse options with bash/getopt
#!/bin/bash
#
# Example of how to parse short/long options with 'getopt'
#
OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi
echo "$OPTS"
@edokeh
edokeh / index.js
Last active July 23, 2024 14:08
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@guweigang
guweigang / git_toturial
Last active July 23, 2024 08:39
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 22, 2024 02:29
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@endel
endel / number-pad-zero.js
Last active August 1, 2023 11:54
Simplest way for leading zero padding in JavaScript
Number.prototype.pad = function(size) {
var s = String(this);
while (s.length < (size || 2)) {s = "0" + s;}
return s;
}
(1).pad(3) // => "001"
(10).pad(3) // => "010"
(100).pad(3) // => "100"
@xfffrank
xfffrank / UnitedTranslators.py
Created July 9, 2018 12:28
有道、腾讯、谷歌、百度四大翻译api聚合接口[python实现]
import time
import hashlib
import requests
import json
from googletrans import Translator
import urllib
import hmac
import base64
from urllib.parse import quote
import time
@gurkanakdeniz
gurkanakdeniz / gitconf.sh
Created July 4, 2019 17:08
git configuration changer bash shell
#!/bin/sh
param=$1
config="gurkan"
name="defaultname"
mail="defaultmail"
BLUE='\033[0;34m'
ORANGE='\033[0;33m'
GREEN='\033[0;32m'
@gurkanakdeniz
gurkanakdeniz / GitProperties.java
Last active July 4, 2019 17:32
eclipse jgit and git utility java and spring boot
import java.util.Optional;
import javax.annotation.PostConstruct;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
@Configuration("application")
@PropertySource("application.properties")