Showing posts with label Stuff. Show all posts
Showing posts with label Stuff. Show all posts

2020-09-27

MP4 to GIF with FFMpeg

 $ ffmpeg -i INPUT.mp4 -f gif OUTPUT.gif
Additional options
 -ss 60.0 : skip 60 seconds
 -t 5 : for 5 seconds
 -r 12 : framerate 12fps
 -y : replace existing file
Example
 $ ffmpeg -i INPUT.mp4 -y -f gif -r 24 -ss 63.0 -t 2.5 OUTPUT.gif

2020-04-23

ISO to USB on Mac Mojave

  1. List devices
    $ diskutil list
    /dev/disk0 (internal, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *251.0 GB   disk0
       1:                        EFI EFI                     314.6 MB   disk0s1
       2:                 Apple_APFS Container disk1         250.7 GB   disk0s2
    
    /dev/disk1 (synthesized):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      APFS Container Scheme -                      +250.7 GB   disk1
                                     Physical Store disk0s2
       1:                APFS Volume Macintosh HD - Data     77.5 GB    disk1s1
       2:                APFS Volume Preboot                 82.0 MB    disk1s2
       3:                APFS Volume Recovery                528.1 MB   disk1s3
       4:                APFS Volume VM                      1.1 GB     disk1s4
       5:                APFS Volume Macintosh HD            11.1 GB    disk1s5
    
    /dev/disk2 (external, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *124.2 GB   disk2
       1:             Windows_FAT_32 CCCOMA_X64F             124.2 GB   disk2s1
    
  2. Unmount USB stick
    $ diskutil unmountDisk /dev/disk2
    Unmount of all volumes on disk2 was successful
    
  3. $ sudo dd if=kali-linux-2020.1b-installer-amd64.iso of=/dev/disk2 bs=1m
    Password:
    2075+1 records in
    2075+1 records out
    2176778240 bytes transferred in 656.146374 secs (3317519 bytes/sec)
    

2020-04-17

2019-08-10

Paper Size in millimeter

A1 594X841 A2 420X594 A3 297X420 A4 210X297 A5 148X210 2절 545X788 4절 394X545 8절 272X394 16절 197X272 32절 136X197 A1 594X841 A2 420X594 A3 297X420 A4 210X297 A5 148X210 2절 545X788 4절 394X545 8절 272X394 16절 197X272 32절 136X197

2019-07-20

Broken attachment filename with Apple mail

With Apple mail, Korean attachment filename is broken.
Attachment filename is encoded to UTF-8
Run the following command within Terminal, then restart Apple mail.
$ defaults write com.apple.mail NSPreferredMailCharset "UTF-8"

2017-12-10



Paul Graham's Quote

  • You need three things to create a successful startup: to start with good people, to make something customers actually want, and to spend as little money as possible.
성공적인 스타트업 만드는 데 필요한 3가지: 좋은 사람들과 시작하기, 고객들이 실제로 원하는 건 만들기, 돈은 적게 쓰기
  • A startup is like a mosquito. A bear can absorb a hit and a crab is armored against one, but a mosquito is designed for one thing : to score. No energy is wasted on defense. The defense of mosquitos, as a species, is that there are a lot of them, but this is little consolation to the individual mosquito.
스타트업은 모기와 같다. 곰은 충격을 흡수하고 게는 껍질이 있지만 모기는 한 가지를 위해 만들어졌다. 득점(성공?승리?)하기. 방어에 허비되는 에너지는 없다. 하나의 종으로서 모기의 방어는 수가 많다는 점이지만 개별 모기에게는 아무런 위로가 되지 않는다.
  • Don't ignore your dreams; don't work too much; say what you think; cultivate friendships; be happy.
꿈을 무시하지 마라: 너무 많이 일하지 마라; 생각하는 걸 얘기해라; 우정을 쌓아라; 행복해라
  • I'm not saying there's no such thing as genius. But if you're trying to choose between two theories and one gives you an excuse for being lazy, the other one is probably right.
천재성이라는 게 없다고 말하지는 않겠다. 그런데 두 가지 이론 중에서 선택하고자 할 때, 그 중 한가지가 당신이 게을러져도 괜찮다고 한다면, 아마도 다른 것이 맞다.
  • The most important thing is not to let fundraising get you down. Startups live or die on morale. If you let the difficulty of raising money destroy your morale, it will become a self-fulfilling prophecy.
가장 중요한 것은 자금조달이 당신을 실망시키게 두지 마라. 스타트업은 사기에 죽고 산다. 만약 자금조달의 어려움이 의욕을 꺾는다면, 그것은 자기성취예언(다른 상황들도 악화시키게 됨)이 될 것이다.

2017-09-17

Difference among tall tales, legends, myths, fairy tales and fables

TALL TALEs humorously exaggerate facts with plausible story lines.

LEGENDs embellish and glorify historical facts or fiction passed down through generations.

MYTHs explain natural phenomena with supernatural beings or creators based on religion.

FAIRY TALEs usually conflict between clearly separated good and evil with magic and imaginary creatures.

FABLEs teach a moral with talking animals.

2012-08-10

How to hide user accounts on Windows 7/Vista logon

I found user accounts on Windows logon after setting up the GIT service on my Windows box.
However, they are important to run GIT. So, I want to hide them.


  1. Run [regedit]
  2. Find the following key with [regedit]
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
  3. Add a new key under [Winlogon]
    1. Click right button on [Winlogon]
    2. Click [New]
    3. Click [Key]
    4. Type [SpecialAccounts]
  4. Add one more new key under [SpecialAccounts]
    1. Click right button on [SpecialAccounts]
    2. Click [New]
    3. Click [Key]
    4. Type [UserList]
  5. Add [DWORD (32bit) Value]s
    1. Click right button on right panel of [UserList]
    2. Click [New]
    3. Click [DWROD (32bit) Value]
    4. Type user account that you want to hide
    • Repeat this 4 steps as many as accounts that you want to hide
    • Make sure it is 0(zero). If this value is 1, you can see the user account on logon

2012-07-12

How to add SyntaxHighlighter to blog on Blogger.com

Visit SyntaxHighlighter homepage for more detailed information.
  1. Enter the setup page of your blog and then click [Template] > [Edit HTML]
  2. Copy the following code and paste it just above </head>
  3. <!--Core of SyntaxHighlighter-->
    <link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
    <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeEclipse.css' rel='stylesheet' type='text/css'/>
    
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'/>
    
    <!--Support languages-->
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushDiff.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js' type='text/javascript'/>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/>
    
    <!--Activate SyntaxHighlighter-->
    <script language='javascript'>
     SyntaxHighlighter.config.bloggerMode = true;
     SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf';
     SyntaxHighlighter.all();
    </script>
    
  4. Write your code between <pre class="brush:[TYPE]"> and </pre> tags in HTML mode.
    [TYPE] can be one of language that can be found at shBrush[TYPE].js at the above code.
    <pre class='brush:html'>
    YOUR SOURCE CODE
    </pre>
    
  5. Expand the below for more themes
    Default <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
    Django
    <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDjango.css' rel='stylesheet' type='text/css'/>
    
    Eclipse
    <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeEclipse.css' rel='stylesheet' type='text/css'/>
    
    Emacs
    <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeEmacs.css' rel='stylesheet' type='text/css'/>
    
    FadeToGrey
    <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeFadeToGrey.css' rel='stylesheet' type='text/css'/>
    
    Midnight
    <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeMidnight.css' rel='stylesheet' type='text/css'/>
    
    RDark
    <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeRDark.css' rel='stylesheet' type='text/css'/>
    
  6. Visit here for more bundled brushes