Skip to content

Instantly share code, notes, and snippets.

View flrngel's full-sized avatar
๐Ÿฅƒ

Derrick flrngel

๐Ÿฅƒ
View GitHub Profile
@mkremins
mkremins / pbcopy.js
Created April 17, 2014 21:41
node.js: put text into OS X clipboard
function pbcopy(data) {
var proc = require('child_process').spawn('pbcopy');
proc.stdin.write(data);
proc.stdin.end();
}
@bobbygrace
bobbygrace / trello-css-guide.md
Last active May 12, 2025 16:46
Trello CSS Guide

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examplesโ€ฆ check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

โ€œI perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and itโ€™s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.โ€

You often hear updog saying stuff like this. Whoโ€™s updog? Not much, who is up with you?

@rauchg
rauchg / effective-es6.md
Last active July 11, 2023 09:38
Writing ES6 today, effectively.

Effective transpiling of ES6

After publishing my article on ECMAScript 6, some have reached out to ask how I exactly I make it all work.

I refrained from including these details on the original post because they're subject to immiment obsoletion. These tools are changing and evolving quickly, and some of these instructions are likely to become outdated in the coming months or even weeks.

The main tool

When evaluating the available transpilers, I decided to use 6to5, which has recently been renamed to Babel. I chose it based on:

@obfusk
obfusk / break.py
Last active July 11, 2025 11:12
python "breakpoint" (more or less equivalent to ruby's binding.pry); for a proper debugger, use https://docs.python.org/3/library/pdb.html
import code; code.interact(local=dict(globals(), **locals()))
@e9t
e9t / README.md
Last active January 10, 2018 14:29
์„œ์šธ์‹œ ์Šค์‹œ์•ผ ๊ธฐํ–‰

๋‹ค์–‘ํ•œ ๊ฐ€๊ฒฉ๋Œ€์˜ ์„œ์šธ์‹œ๋‚ด ์Šค์‹œ์•ผ๋ฅผ ์‹œ๊ฐํ™”ํ•œ ์ง€๋„.

๋ง›์ง‘ ์ด๋ฆ„๋“ค์ด ๊ฒน์น˜์ง€ ์•Š๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•ด forced layout์„ ์ ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค.

  • ๋ฐ์ดํ„ฐ ์ˆ˜์ง‘: ์ˆ˜์ž‘์—…
  • Author: Lucy Park
  • License: Apache v2
@protrolium
protrolium / ffmpeg.md
Last active July 5, 2025 20:17
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@ruseel
ruseel / aws-docker-high-tracffic-kernel.md
Last active May 24, 2024 14:18
AWS์—์„œ docker๋ฅผ ์“ธ ๋•Œ high traffic server๋ผ๋ฉด ์ด๋ ‡๊ฒŒ

AWS์—์„œ docker๋ฅผ ์“ธ ๋•Œ high traffic server๋ผ๋ฉด ์ด๋ ‡๊ฒŒ ํ•˜๋Š” ๊ฒƒ์ด ์ข‹๊ฒ ๋‹ค. amazon linux๋ฅผ ์“ด๋‹ค๊ณ  ํ•˜์ž.

ulimit

ulimit๋ฅผ ์˜ฌ๋ ค์ฃผ์–ด์•ผ ํ•œ๋‹ค. /etc/security/limit.conf ์—์„œ ๊ณ ์ณ์ฃผ์–ด๋„ docker์—๋Š” ์ ์šฉ๋˜์ง€ ์•Š๋Š”๋‹ค. limit.conf๋Š” PAM์„ ํ†ตํ•ด์„œ ๋กœ๊ทธ์ธํ–ˆ์„ ๋•Œ๋งŒ ๋จน๋Š” ์„ค์ •์ด๋ผ ๊ทธ๋ ‡๋‹ค. docker๋กœ ๋„์šด process์˜ pid๋ฅผ ์ฐพ๊ณ  cat /proc/<pid>/limits๋ฅผ ์‹คํ–‰ํ•ด์„œ ๋ณด๋ฉด ์ ์šฉ๋˜์—ˆ๋Š”์ง€ ์•„๋‹Œ์ง€ ํ™•์‹คํ•˜๊ฒŒ ์•Œ ์ˆ˜ ์žˆ๋‹ค. kernel์—์„œ ์ง์ ‘ ๊ทธ ํ”„๋กœ์„ธ์Šค์— ์–ด๋–ค ulimit์ด ์ ์šฉ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค.

๊ทธ๋ž˜์„œ /etc/sysconfig/docker ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ  ์•„๋ž˜๋ฅผ ์ถ”๊ฐ€ํ•œ๋‹ค.

@haje01
haje01 / TensorFlow ์‹œ์ž‘ํ•˜๊ธฐ.md
Last active May 3, 2024 07:30
TensorFlow ์‹œ์ž‘ํ•˜๊ธฐ

ํ…์„œํ”Œ๋กœ์šฐ ์‹œ์ž‘ํ•˜๊ธฐ

๊ธ€์“ด์ด: ๊น€์ •์ฃผ([email protected])

์ด ๋ฌธ์„œ๋Š” ํ…์„œํ”Œ๋กœ์šฐ ๊ณต์‹ ํŽ˜์ด์ง€ ๋‚ด์šฉ์„ ๋ฐ”ํƒ•์œผ๋กœ ๋งŒ๋“ค์–ด์กŒ์Šต๋‹ˆ๋‹ค.


์†Œ๊ฐœ

ํ…์„œํ”Œ๋กœ์šฐ(TensorFlow)๋Š” ๊ธฐ๊ณ„ ํ•™์Šต๊ณผ ๋”ฅ๋Ÿฌ๋‹์„ ์œ„ํ•ด ๊ตฌ๊ธ€์—์„œ ๋งŒ๋“  ์˜คํ”ˆ์†Œ์Šค ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ ํ”Œ๋กœ์šฐ ๊ทธ๋ž˜ํ”„(Data Flow Graph) ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•˜์˜€์Šต๋‹ˆ๋‹ค.

@zacwest
zacwest / ios-font-sizes.swift
Last active July 17, 2025 22:46
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
@aaronpolhamus
aaronpolhamus / map_clsloc.txt
Created May 12, 2016 01:21
Image net classes + labels
n02119789 1 kit_fox
n02100735 2 English_setter
n02110185 3 Siberian_husky
n02096294 4 Australian_terrier
n02102040 5 English_springer
n02066245 6 grey_whale
n02509815 7 lesser_panda
n02124075 8 Egyptian_cat
n02417914 9 ibex
n02123394 10 Persian_cat