In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
defaults write com.apple.Dock appswitcher-all-displays -bool true | |
killall Dock |
persistence: | |
enabled: true | |
accessModes: | |
- ReadWriteOnce | |
size: 5Gi | |
datasources: | |
datasources.yaml: | |
apiVersion: 1 | |
datasources: |
You can check here for getting the latest version. Change the wget url to download newer versions.
#!/bin/bash | |
#Heavily inspired by clivewalkden/centos-7-package.sh | |
# ( https://gist.github.com/clivewalkden/b4df0074fc3a84f5bc0a39dc4b344c57 ) | |
#However, this one was tested... 2017-JAN-09 | |
vagrant init centos/7 | |
vagrant up | |
vagrant ssh -c "sudo yum -y update" | |
vagrant ssh -c "sudo yum -y install wget nano kernel-devel gcc" |
import boto3 | |
ec2 = boto3.resource('ec2') | |
def lambda_handler(event, context): | |
# create filter for instances in running state | |
filters = [ | |
{ | |
'Name': 'instance-state-name', | |
'Values': ['running'] |
#!/usr/bin/env python | |
from __future__ import print_function | |
import boto3 | |
import base64 | |
client = boto3.client(service_name='ec2', region_name='us-east-1') | |
for region in client.describe_regions()['Regions']: | |
ec2 = boto3.resource(service_name='ec2', region_name=region['RegionName']) | |
for instance in ec2.instances.all(): | |
response = instance.describe_attribute(Attribute='userData') |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
##Here we'll set the brightness level at startup
Use xbacklight
utility.
xbacklight -set 30