Skip to content

Instantly share code, notes, and snippets.

View tkamag's full-sized avatar

Thierry K. tkamag

  • AVISIA
  • Paris
  • 05:38 (UTC +01:00)
  • X @tkamag
View GitHub Profile
@tkamag
tkamag / containers.yml
Created February 24, 2023 19:56
Containers Files
AWSTemplateFormatVersion: "2010-09-09"
Description: "Containers Exercise"
Parameters:
VpcCIDR:
Default: 10.16.0.0/16
Description: "The CIDR block for the VPC"
Type: String
AllowedValues:
- 10.16.0.0/16
@tkamag
tkamag / credential.sh
Created February 24, 2023 20:04
AWS CLI Credentials
# Get ACCOUNT_ID and the REGION, and insert these values into the aws ecr command.
export ACCOUNT_ID=$(aws sts get-caller-identity --output text --query Account)
export REGION="`wget -q -O - http://169.254.169.254/latest/meta-data/placement/region`"
aws ecr get-login-password | docker login --username AWS --password-stdin ${ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com
# Add a new tag to first-container that references the Amazon ECR container registry.
docker tag first-container ${ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com/first-container:latest
# Import Python packages
import pandas as pd
import cassandra
import re
import os
import glob
import numpy as np
import json
import csv
@tkamag
tkamag / ImageCenter.md
Created May 6, 2023 06:30 — forked from innat/ImageCenter.md
Center Images in GitHub README.md

For left alignment

 <img align="left" width="600" height="200" src="https://www.python.org/python-.png">

For right alignment

<img align="right" width="600" height="200" src="https://www.python.org/python-.png">

And for center alignment

@tkamag
tkamag / test1.py
Last active August 30, 2023 17:51
test
import numpy as np
@tkamag
tkamag / template.yaml
Created October 21, 2023 05:17
An example SAM template that creates a DynamoDB table, a Lambda function that writes to DynamoDB, and a CloudWatch Event trigger
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: An app that includes a DynamoDB table, Lambda function that writes to DynamoDB, and CloudWatch Event trigger
Resources:
LambdaWriteToDynamoDB:
# A function that writes to a DynamoDB table on a schedule
Type: 'AWS::Serverless::Function'
Properties:
FunctionName: LambdaWriteToDynamoDB
@tkamag
tkamag / fix_a_corrupt_zsh_history_file.md
Last active January 5, 2025 21:46 — forked from acampagnaro/How to fix a corrupt zsh history file
How to fix a corrupt zsh history file
@tkamag
tkamag / README.md
Created November 9, 2023 06:25 — forked from roachhd/README.md
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@tkamag
tkamag / gist:998e5b8f4f59570297e0983ff1f0edb5
Created November 9, 2023 06:26 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue: