Skip to content

Instantly share code, notes, and snippets.

@deeja
deeja / nuxt-layout-full-height.vue
Created May 25, 2020 14:52
Full height Nuxt.js layout hack
<style>
div#__nuxt,
#__layout,
#__layout > div,
#app {
min-height: 100vh;
}
</style>
@oseme-techguy
oseme-techguy / docker_output.py
Created August 1, 2018 06:53 — forked from ifiok/docker_output.py
Docker Python logger output to stdout
import logging
from sys import stdout
# Define logger
logger = logging.getLogger('mylogger')
logger.setLevel(logging.DEBUG) # set logger level
logFormatter = logging.Formatter\
("%(name)-12s %(asctime)s %(levelname)-8s %(filename)s:%(funcName)s %(message)s")
consoleHandler = logging.StreamHandler(stdout) #set streamhandler to stdout
@Swalloow
Swalloow / dynamo_delete_all.py
Created May 18, 2018 06:38
Boto3 DynamoDB delete all items
import boto3
dynamodb = boto3.resource('dynamodb', 'region-name')
table = dynamodb.Table('table-name')
scan = table.scan(
ProjectionExpression='#k',
ExpressionAttributeNames={
'#k': 'name'
}
@ddnn55
ddnn55 / README.md
Last active January 26, 2021 08:32 — forked from pecigonzalo/delete_all_object_versions.sh
Remove all latest delete markers under an s3 prefix, thereby "restoring a deleted directory"

Usage

./s3_remove_delete_markers_recursive.sh <bucket_name> <prefix>

Dependencies

@remarkablemark
remarkablemark / vim-prettier-vundle.md
Created March 19, 2018 15:03
How to install vim-prettier with Vim Vundle

vim-prettier

Open vimrc:

vim ~/.vim/vimrc

Add Vundle plugin to vimrc:

Plugin 'prettier/vim-prettier'
@shortjared
shortjared / list.txt
Last active April 19, 2024 10:41
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
$ cd /var/lib/docker
$ btrfs subvolume delete btrfs/subvolumes/*
@nikhita
nikhita / update-golang.md
Last active April 20, 2024 20:38
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

2Dデザイン・特殊効果
2Dワークス・特殊効果
2D・モニターデザイン
2D・特殊効果
3Dディレクター・モデリング
3Dディレクター・モデルデザイン
3Dメカニックデザイン・3D監修
3Dヴィジュアル・ディレクター
3D・CG制作・モニターグラフィックス
CAD・メカニックデザイン
@dschep
dschep / raspbian-python3.6.rst
Last active October 24, 2023 14:57 — forked from BMeu/raspbian-python3.5.rst
Installing Python 3.6 on Raspbian

Installing Python 3.6 on Raspbian

As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.

  1. Install the required build-tools (some might already be installed on your system).