Skip to content

Instantly share code, notes, and snippets.

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@tunght13488
tunght13488 / SketchSystems.spec
Created June 20, 2023 02:15
Player State Machine*
Player State Machine*
Grounded*
jump -> Airborne
fall -> Airborne
Idle*
Moving
Airborne
@tunght13488
tunght13488 / SketchSystems.spec
Created June 20, 2023 02:15
Player State Machine*
Player State Machine*
Grounded*
jump -> Airborne
fall -> Airborne
Idle*
Moving
Airborne
@tunght13488
tunght13488 / SketchSystems.spec
Created June 20, 2023 02:15
Player State Machine*
Player State Machine*
Grounded*
jump -> Airborne
fall -> Airborne
Idle*
move -> Moving
Moving
stop -> Idle

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8

@tunght13488
tunght13488 / nginx-cors.conf
Created February 27, 2021 12:34 — forked from sbuzonas/nginx-cors.conf
Nginx CORS maps
map $http_origin $allow_origin {
default "";
"~^https?://(?:[^/]*\.)?(stevebuzonas\.(?:com|local))(?::[0-9]+)?$" "$http_origin";
}
map $request_method $cors_method {
default "allowed";
"OPTIONS" "preflight";
}

PageSpeed

Serve resources from a consistent URL

The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 67.3KiB. => same image should reuse instead of uploading with different name

Optimize images

Optimize the following images to reduce their size by 76.0KiB (5% reduction).

Keybase proof

I hereby claim:

  • I am tunght13488 on github.
  • I am tunght13488 (https://keybase.io/tunght13488) on keybase.
  • I have a public key ASB-wtB7RGY8RKEDfgNgj71rA5sfTIqEfVbiIo1CIQQNhwo

To claim this, I am signing this object:

<?php
// https://magento.stackexchange.com/questions/159346/magento-2-add-custom-extesion-html-file-in-shipping-method-block
// http://oyenetwork.com/articles/magento2-devliery-date-module-creation-from-scratch/
public function getShippingData($quoteId)
{
return [
[
'calendar_type' => 'ONLINE',
'date' => '22/03/2016',
@tunght13488
tunght13488 / # hhvm - 2016-07-22_01-56-49.txt
Created July 22, 2016 06:47
hhvm (mcuadros/hhvm/hhvm) on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for mcuadros/hhvm/hhvm on Mac OS X 10.11.5
Build date: 2016-07-22 01:56:49