Skip to content

Instantly share code, notes, and snippets.

View augustine-tran's full-sized avatar

Khanh Tran augustine-tran

  • Ho Chi Minh, Vietnam
  • 20:00 (UTC +07:00)
View GitHub Profile
@miry
miry / 01_extract_crt.rb
Last active September 3, 2023 06:32
Extract certificate from the kubernetes config.
require 'optparse'
require 'yaml'
require 'base64'
options = {
config_path: File.join(ENV['HOME'], '.kube', 'config'),
write_dir: File.join(ENV['HOME'], '.kube')
}
OptionParser.new do |opts|
@PTKC
PTKC / SomeComponent.tsx
Last active October 22, 2023 15:31
Google Autocomplete Example with Ant Design
import { Card, Col, Divider, Form, Input, Row } from "antd";
import { LocationSearchInput } from "./location-search";
import { geocodeByAddress, getLatLng } from "react-places-autocomplete";
import { FormComponentProps } from "antd/lib/form/Form";
type Props = {} & FormComponentProps;
type State = {
address: string;
};