Skip to content

Instantly share code, notes, and snippets.

View sgeto's full-sized avatar

Ali Abdulkadir sgeto

View GitHub Profile
#!/bin/bash
# geoip-update.sh -- update geoip lite database(s).
# author: massimo.scamarcia@gmail.com
#prg="wget --quiet"
prg="wget"
download_path="/usr/share/GeoIP/download"
geolite_path="/usr/share/GeoIP"
#!/bin/sh
#
# WE SO COOL. WE WRITE /etc/*-release IN DIFFRENT FORMATS!!11
# welcome to linux.
release=`grep 'SUSE\|ubuntu\|Red Hat\|CentOS' -A10 -B10 /etc/*release | tr '[:upper:]' '[:lower:]'`
case $release in
*suse*version*11*patchlevel*0) RELSTRING=sles-11-sp0 ;;
*suse*version*11*patchlevel*1) RELSTRING=sles-11-sp1 ;;
*suse*version*11*patchlevel*2) RELSTRING=sles-11-sp2 ;;
@sgeto
sgeto / gitconfig.ini
Created April 22, 2017 20:02 — forked from tdd/gitconfig.ini
Nice, useful global Git configuration
# Put this in your ~/.gitconfig or ~/.config/git/config
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName>
[user]
name = Your Full Name
email = your@email.tld
[color]
# Enable colors in color-supporting terminals
ui = auto
[alias]
st = status
@sgeto
sgeto / batch.bat
Last active August 16, 2017 23:03 — forked from bangonkali/batch.bat
Attaching Notepad++ to git commit editor.
git config core.editor "'C:\Program Files (x86)\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
@sgeto
sgeto / .gitconfig
Created April 22, 2017 20:10 — forked from derekriemer/.gitconfig
Example configuration for setting notepad++ up to be your commit message editor
[user]
name = derekriemer
email = derek.riemer@colorado.edu
[alias]
co = checkout
new = checkout -B
[core]
editor=\"c:/program files (x86)/Notepad++/notepad++.exe\" -multiInst -nosession]
#git config --global core.editor "eval c:/progra~2/notepad++/notepad++.exe -multiInst
@sgeto
sgeto / cyanogen_sshd.sh
Created April 27, 2017 00:15 — forked from alainwolf/cyanogen_sshd.sh
SSH server on CyanogenMod Smaprtphones
#!/bin/sh
adb root
adb remount
#
# Create a minimal but safe SSH Daemon configuration
cat <<EndOfSSHDConfigFile > sshd_config
# Minimal OpenSSH daemon configuration for CyanogenMod 10.1+
AuthorizedKeysFile /data/.ssh/authorized_keys
ChallengeResponseAuthentication no
PasswordAuthentication no
@sgeto
sgeto / gist:1f96c151daf94a30de1b7baa242fc6a6
Created May 18, 2017 23:05 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@sgeto
sgeto / symlink.sh
Created August 24, 2017 19:14 — forked from pocke/symlink.sh
add symlink for busybox on Android(Nexus7)
@sgeto
sgeto / ..git-pr.md
Created October 28, 2017 23:46 — forked from gnarf/..git-pr.md
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
@sgeto
sgeto / win32.mak
Created November 19, 2017 23:28 — forked from ynkdir/win32.mak
win32.mak
# Win32.Mak - Win32 application master NMAKE definitions file for the
# Microsoft Windows SDK programming samples
# Copyright (C) Microsoft Corporation
# -------------------------------------------------------------------------
# This files should be included at the top of all MAKEFILEs as follows:
# !include <Win32.Mak>
# -------------------------------------------------------------------------
#
# Define APPVER = [ 4.0 | 5.0 | 5.01 | 5.02 | 6.0 | 6.1] prior to including win32.mak to get
# build time checking for version dependencies and to mark the executable