#VIM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature | GKE Autopilot | AWS Karpenter | |
---|---|---|---|
Abstraction Level | Fully managed, no need to manage nodes | Node management required (via EC2 instances) | |
Billing Model | Pay-per-pod resource usage | Pay-per-node (EC2 instance costs) | |
Control Plane | Managed and included in pricing | User-managed (EKS costs $0.10/hour per cluster) | |
Scaling | Pod-based scaling with automated node provisioning | Dynamic node provisioning based on pod needs | |
Spot Instances | Supported via pod annotations | Supported, up to 90% cost savings | |
Discount Model | Committed Usage Discounts (CUD) | Reserved Instances (RIs) and Savings Plans | |
Operational Overhead | Minimal (Google manages everything) | Moderate (user manages infrastructure) | |
Customization Limited | (highly opinionated, no node-level control) | High (complete control over instance types, zones) | |
Instance Flexibility | N/A (abstracted) | Flexible EC2 instance selection (on-demand, spot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}${ZSH_THEME_GIT_PROMPT_CLEAN}${ZSH_THEME_GIT_PROMPT_SUFFIX}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import requests | |
import sys | |
import os,argparse,sys | |
import random | |
import re | |
def print_help(functions): | |
l = [] | |
l += functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os,argparse | |
import xml.etree.ElementTree as ET | |
import shutil | |
def check_project(p): | |
if not os.path.isabs(p): | |
p = os.path.join(os.getcwd(),p) | |
if not os.path.isdir(p) or not os.path.isfile(os.path.join(p,'AndroidManifest.xml')): | |
raise argparse.ArgumentTypeError('invalid project folder') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim color file | |
" Maintainer: Tiza | |
" Last Change: 2002/04/28 Sun 19:35. | |
" version: 1.0 | |
" This color scheme uses a dark background. | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set ts=8 et sw=4 sts=4 | |
colorscheme candy | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'fatih/vim-go' | |
Plugin 'zhchang/quick_file' | |
Plugin 'rosenfeld/conque-term' | |
call vundle#end() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os,argparse,sys | |
import xml.etree.ElementTree as ET | |
from subprocess import call,check_output | |
import random | |
def get_package_and_activity(folder): | |
package = None | |
activity = None | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
common_deps_framework = [':framework-res',':aquery',':google-play',':volley',':adjust',':ad4push',':shouldit',':view-indicator',':hockeyapp',':holo'] | |
common_deps_view= [':view-res',':framework',':aquery',':google-play',':volley',':adjust',':ad4push',':shouldit',':view-indicator',':hockeyapp',':holo'] | |
common_libs = [':framework-lib1',':framework-lib2',':framework-lib3',':framework-lib4',':framework-lib5',':ad4push-lib1',':holo-lib1',':holo-lib2',':view-lib1',':view-lib2',':google-play-lib1'] | |
android_binary( | |
name = 'zalora', | |
manifest = 'com.zalora.android/AndroidManifest.xml', | |
target = 'android-18', | |
package_type = 'release', | |
keystore = ':debug_keystore', | |
proguard_config = 'com.zalora.android/proguard-project.txt', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/pypy | |
import asyncore | |
from greenlet import greenlet | |
import socket | |
class Scheduler(asyncore.dispatcher): | |
def __init__(self,host,port): | |
asyncore.dispatcher.__init__(self) | |
self.glet = greenlet(self.routine) | |
self.create_socket(socket.AF_INET,socket.SOCK_STREAM) |
NewerOlder