Skip to content

Instantly share code, notes, and snippets.

View ragazzid's full-sized avatar

Diego Ragazzi ragazzid

View GitHub Profile
#!/bin/bash
sudo apt -y install curl apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt update
sudo apt -y install vim git curl wget kubelet kubeadm
sudo apt-mark hold kubelet kubeadm
#!/bin/bash
# Simple script to update discord :)
# Download
wget https://discord.com/api/download\?platform\=linux\&format\=deb -O /tmp/discord.deb
# Install
sudo dpkg -i /tmp/discord.deb
# Update
#!/bin/bash
AGORA=$(date)
# Basic
echo "Updating APT"
sudo apt update 2>/dev/null
echo "Installing basic packages"
sudo apt install \
a8599023591b8d977012e60924f0664a29fa300566be2b12ed541edaf1b0344a
@ragazzid
ragazzid / s3_upload_grant_acl_aws.py
Created October 9, 2019 11:34
adicionar acl bucket upload aws
import boto3
s3 = boto3.client('s3')
s3.upload_file(
'file', 'object', 'key',
ExtraArgs={
'GrantFullControl': 'id=canonicalId',
}
)

Keybase proof

I hereby claim:

  • I am ragazzid on github.
  • I am ragazzid (https://keybase.io/ragazzid) on keybase.
  • I have a public key ASBgxMzEyGMFPMH1qcf-Zy3VbkMJnRG7JasTL_CJI_5IVAo

To claim this, I am signing this object: