Skip to content

Instantly share code, notes, and snippets.

View rajaskakodkar's full-sized avatar
🤔
curious

Rajas Kakodkar rajaskakodkar

🤔
curious
View GitHub Profile
@rajaskakodkar
rajaskakodkar / kaggle_download.py
Created December 1, 2018 15:57 — forked from jayspeidell/kaggle_download.py
Sample script to download Kaggle files
# Info on how to get your api key (kaggle.json) here: https://github.com/Kaggle/kaggle-api#api-credentials
!pip install kaggle
api_token = {"username":"USERNAME","key":"API_KEY"}
import json
import zipfile
import os
with open('/content/.kaggle/kaggle.json', 'w') as file:
json.dump(api_token, file)
!chmod 600 /content/.kaggle/kaggle.json
!kaggle config path -p /content
@rajaskakodkar
rajaskakodkar / keychron_linux.md
Created July 24, 2021 13:45 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux (+ bluetooth fixes)

Here the best setup (I think so :D) for Keychron + Linux

Make Fn + F-keys work

  • Step 1: Set fkeyfirst by:
    • Create the file /etc/modprobe.d/hid_apple.conf. Add this line to the file: options hid_apple fnmode=2
    • Save the file and execute the following command: sudo update-initramfs -u
    • Reboot
  • Step 2: Use the keyboard in Windows/Android mode
  • Step 3: If get stuck with numpad mode: Double hit F6 or fn + F6. I've been using this config since the very first day, both bluetooth and cable with no problem.
@rajaskakodkar
rajaskakodkar / deploy-prow-on-tce-aws.sh
Last active April 27, 2022 17:37
Deploy Prow on Tanzu Community Edition on AWS
#!/bin/sh
# Prerequisites:
# ~/env.sh exists with aws
export CLUSTER_NAME=mc-test
tanzu management-cluster create -f community-edition/test/aws/cluster-config.yaml
kubectl config use-context mc-test-admin@mc-test
@rajaskakodkar
rajaskakodkar / prow-logs-s3.md
Last active March 31, 2022 18:14
S3 bucket for Prow
aws s3api create-bucket --bucket tanzu-prow-logs --region us-east-1

aws iam create-user --user-name prow-logs-user

cat > prow-logs-policy.json <<EOF
{
    "Version": "2012-10-17",
    "Statement": [
        {