Skip to content

Instantly share code, notes, and snippets.

View ybbarng's full-sized avatar

Bang Yongbae (Brice) ybbarng

  • Buzzvil
  • Seoul, Republic of Korea
View GitHub Profile
@ybbarng
ybbarng / TrueColour.md
Created June 19, 2017 04:15 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
@ybbarng
ybbarng / license-badges.md
Created March 24, 2017 06:09 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail (lukas@himsel.me)

Keybase proof

I hereby claim:

  • I am ybbarng on github.
  • I am ybbarng (https://keybase.io/ybbarng) on keybase.
  • I have a public key ASApKwUSNXdhCa6FX3PTZc-PBkZjfUFCc5wxjL61biOA8Qo

To claim this, I am signing this object:

import urllib2
request = urllib2.Request('http://maps.googleapis.com/maps/api/geocode/json?latlng=37.553169,127.035721', headers={'Accept-Language': 'ko-KR,ko;'})
contents = urllib2.urlopen(request).read()
print(contents)
import httplib
import urllib
header = {'Accept-Language': 'ko-KR,ko;'}
connect = httplib.HTTPConnection('maps.googleapis.com')
connect.request('GET', '/maps/api/geocode/json?latlng=37.553169,127.035721', headers=header)
response = connect.getresponse()
print response.read()

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

#!/usr/bin/python
'''
Python implementation of passcode hashing algorithm used on the Samsung Galaxy S4 GT-I9505 4.2.2
Correct PIN for hash and salt below is 1234.
Get 40-character hash value in ascii hex format from file /data/system/password.key on the phone
Get salt in signed numeric format by doing sqlite3 query SELECT value FROM locksettings WHERE name = 'lockscreen.password_salt' on /data/system/locksettings.db
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
  • 가나다라
  • 마바사
  • 아자차카
    • 타파하
    • 거너더러
  • 머버서
    • 어저처커
      • 터퍼허
        • 44444444
  • 5555555555