Skip to content

Instantly share code, notes, and snippets.

View lolgesten's full-sized avatar
🌴
barcelona

Martin Algesten lolgesten

🌴
barcelona
View GitHub Profile
@vsx-gh
vsx-gh / s3_full_delete.py
Created September 22, 2017 14:42
Remove completely S3 objects that have delete markers
#!/usr/bin/env python3
'''
Program: s3_full_delete.py
Author: https://github.com/vsx-gh
Created: 20170920
Program finds S3 objects with delete markers and deletes all versions
of those objects.
@TomRyan-321
TomRyan-321 / security-group-cleanup.py
Last active October 10, 2022 09:38 — forked from lingmann/security-group-cleanup.py
Security Group Cleanup using boto3 with RDS check fixed
#!/usr/bin/env python
import boto3
import argparse
def lookup_by_id(sgid):
sg = ec2.get_all_security_groups(group_ids=sgid)
return sg[0].name
@nosix
nosix / AndroidManifest.xml
Last active September 24, 2021 06:42
Floating App for Android (SDK 21) in Kotlin 1.0.3
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxx">
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application
...
<service android:name=".FloatingAppService"/>