Skip to content

Instantly share code, notes, and snippets.

@andreswebs
andreswebs / visual_studio_msbuild_manual.md
Created December 14, 2021 15:09 — forked from nicolasdao/visual_studio_msbuild_manual.md
Visual Studio & MSBuild manual. Keywords: msbuild visual studio visualstudio
#!/bin/sh
set -eufo pipefail
if [ "$#" -ne 2 ]; then
echo "usage: $0 source_repo_url target_repo_url" >&2
exit 1
fi
SOURCE_URL="$1"
@andreswebs
andreswebs / Clean Samsung Galaxy A40 bloatwares
Created June 2, 2021 01:10 — forked from joaofl/Clean Samsung Galaxy A40 bloatwares
Script I used to clean preinstalled shit out of my brand new Samsung A40 (while there is still no LineageOS for it)
#!/bin/sh
# ref: https://piunikaweb.com/2019/03/25/samsung-galaxy-s10-remove-bundled-bloatwares-without-root/
# install the following app to see the packages names:
# use the following command to generate the unistall command, for easy copy and paste:
# adb shell 'pm list packages' | sed -e 's/^/adb uninstall --user 0 /' | grep FILTER_HERE | sort
#things to install if removing keyboard
# F-Droid
# APK Analyser
@andreswebs
andreswebs / android-backup-apk-and-datas.md
Created June 2, 2021 00:43 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Fetch application APK

To get the list of your installed applications:

@andreswebs
andreswebs / import-tsv-sqlite.md
Created May 8, 2021 14:11
How to import a TSV file into a SQLite database

How to import a TSV file into a SQLite database

Example:

.mode tabs
.import data.tsv my-table

If the TSV file contains a header row, SQLite will create the table.

@andreswebs
andreswebs / aws_iam_secret_to_smtp_password.md
Created April 25, 2021 01:59 — forked from damusix/aws_iam_secret_to_smtp_password.md
Convert AWS IAM credentials to AWS SMTP credentials

Convert AWS IAM credentials to AWS SMTP credentials

If you do, or want to, use AWS to deploy your apps, you will end up using AWS SES via SMTP when you're launching an app that sends out emails of any kind (user registrations, email notifications, etc). For example, I have used this configuration on various Ruby on Rails apps, however, it is just basic SMTP configurations and crosses over to any framework that supports SMTP sendmail.

There are two ways to go about this:

Luckily, you found this MD file and the NOT SO EASY WAY is suddenly copy-pasta... sudo yum....

@andreswebs
andreswebs / rdp-setup.md
Created April 17, 2021 14:48
RDP Setup for Ubuntu instance on AWS EC2

0. prerequisites

  • create an EC2 instance on AWS with an Ubuntu AMI.

  • allow ingress traffic on port 3389 on the instance security group (this will be used for RDP)

  • connect to it with SSH

  • run the commands below on the instance shell session

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@andreswebs
andreswebs / aws_sso.py
Last active February 16, 2021 01:00 — forked from sgtoj/aws_sso.py
AWS SSO Credentials external process
#!/usr/bin/env python3
import json
import os
import sys
import hashlib
from configparser import ConfigParser
from datetime import datetime
from pathlib import Path
@andreswebs
andreswebs / eksctl-demo.md
Last active February 9, 2021 17:10
`eksctl` demo

eksctl demo

1. Download and install eksctl

#!/usr/bin/env bash

echo "Downloading ekstcl ..."
curl --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp