Skip to content

Instantly share code, notes, and snippets.

View y0ngb1n's full-sized avatar
๐Ÿ
Fighting

BINGGGOOOOOO y0ngb1n

๐Ÿ
Fighting
View GitHub Profile
@xkyii
xkyii / gitไนฑ็ ่งฃๅ†ณๆ–นๆกˆๆฑ‡ๆ€ป.txt
Created July 13, 2011 05:41
gitไนฑ็ ่งฃๅ†ณๆ–นๆกˆๆฑ‡ๆ€ป
ๅŽŸๅธ–ๅœฐๅ€: http://topic.csdn.net/u/20110113/19/b0d5d506-4307-428b-a61d-7974aa66a2da.html
้ฆ–ๅ…ˆ่ฆ่ฏดๆ˜Ž็š„ๆ˜ฏ๏ผš่ฟ™้‡Œไป‹็ป็š„ๆ–นๆณ•้ƒฝๆ˜ฏๅคง้ƒจๅˆ†ๆ˜ฏๆœฌไบบโ€œๆ‚Ÿโ€ๅ‡บๆฅ็š„๏ผŒๆ‰€ไปฅ็ฝ‘ไธŠ้šพๆœ‰ๆตไผ ๏ผ
ๅฅฝๆ–นๆณ•ไธ่ƒฝ่‡ชๅทฑ็ง่—๏ผŒๅฆๅˆ™ๅฐฑ็™ฝๅฟ™ไนŽ่ฟ™ๅ‡ ๅคฉไบ†๏ผŒๅˆ†ไบซ็ป™ๆœ‰้œ€่ฆ็š„ๆœ‹ๅ‹ไปฌใ€‚ๅฆ‚ๆžœๆœ‰่ฝฌ่ฝฝ๏ผŒๆ•ฌ่ฏทๆณจๆ˜Žๆฅ่‡ช*CSDN่€้‚“*ไฝœๅ“ใ€‚
ๅ‘ตๅ‘ต๏ผŒ็ป™่‡ชๅทฑๆ‰“ๅนฟๅ‘Š๏ผŒๅฎžๅœจๆ˜ฏๆ— ่€ปไน‹ๆž๏ผŒๆƒๅฝ“ๆ— ่Šไน‹ๆ—ถๆ‰“ๅญ—ไน‹็”จใ€‚
ๆฌข่ฟŽๆตไผ ๏ผŒไธบๆœ€ไผ˜็ง€็š„ๅˆ†ๅธƒๅผ็‰ˆๆœฌ็ฎก็†็ณป็ปŸGitๅšๅฎฃไผ ๏ผ๏ผ
ๆญฅ้ชค๏ผš
1. ไธ‹่ฝฝ๏ผšhttp://loaden.googlecode.com/files/gitconfig.7z
2. ่งฃๅŽ‹ๅˆฐ๏ผš<MsysGitๅฎ‰่ฃ…็›ฎๅฝ•>/cmd/๏ผŒไพ‹ๅฆ‚๏ผšD:\Program Files\Git\cmd
@jasonrudolph
jasonrudolph / git-branches-by-commit-date.sh
Created February 12, 2012 20:40
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@willerce
willerce / fontconfig.properties
Last active August 11, 2019 18:15
JAVA IDE ็š„ๅญ—ไฝ“้…็ฝฎ
# %W% %E%
#
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
#
# Version
version=1
# Component Font Mappings
@jirutka
jirutka / analytics.conf
Created March 31, 2013 01:03
Add Google Analytics tracking code to HTML via nginx
#
# Add Google Analytics tracking code to HTML response
#
# Usage:
# set $tracking_id 'UA-12345678-9';
# include incl/analytics.conf;
#
# It needs nginx compiled with option --with-http_sub_module.
# Uses optimized GA code from: http://mathiasbynens.be/notes/async-analytics-snippet
#
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@somandubey
somandubey / gist:52bff8c7cc8639292629
Created August 28, 2014 19:56
How to increase ulimit in Linux

How to increase ulimit in Linux:

  • Step 1 (ulimit): open the sysctl.conf and add this line fs.file-max = 65536

      vi /etc/sysctl.conf   
    

    add following at end of file in above file:

      fs.file-max = 65536
    

save and exit.

@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active March 7, 2026 04:23
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
@mrlojam
mrlojam / ApacheCommonExample.java
Last active June 11, 2023 15:08
POJO to Map conversion
/**
* Using Apache Common Bean Utils.
*/
import org.apache.commons.beanutils.BeanUtils;
import java.util.HashMap;
public class ApacheCommonExample throws IllegalAccessException,
InvocationTargetException, NoSuchMethodException {
public HashMap<String,Object> convert(Person person) {
@vasanthk
vasanthk / System Design.md
Last active July 29, 2026 19:39
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@Dev-Dipesh
Dev-Dipesh / ELK with Nginx.md
Last active June 6, 2025 19:31
Setting up Elasticsearch, Logstash and Kibana with Nginx.

ELK (Elasticsearch Logstash Kibana)

Though we're focused more on server setup procedure in this document, I will still give a very brief explanation in laymen terms for ELK. To those who are starting new in this stack, must have already heard of MVC (Model View Controller), so take it like this:

  • Model => Elasticsearch (for Storage, Indexing & Search)
  • View => Kibana (for DataViz & G-Man, yeah the one in half life ๐Ÿ˜)
  • Controller => Logstash (For Logs & Filtering)