Skip to content

Instantly share code, notes, and snippets.

View fawix's full-sized avatar
🐱
Seeking wonders

Fatima Silveira fawix

🐱
Seeking wonders
View GitHub Profile
@fawix
fawix / gcloud_config.sh
Last active August 29, 2023 15:21
gcloud config activate
$ gcloud config configurations create config-name
Created [demo-config].
Activated [demo-config].
$ gcloud config set project my-project-id
Updated property [core/project].
$ gcloud config set account my-account@example.com
Updated property [core/account].
@fawix
fawix / verbose.py
Created April 13, 2017 13:34
Python - Verbose Flag
#!/usr/bin/python
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--verbose', action='count', default=0)
for c in ['', '-v', '-v -v', '-vv', '-vv -v', '-v -v --verbose -vvvv']:
print parser.parse_args(c.split())
'''
Created on Oct 1, 2015
@author: fawix
'''
from gi.repository import Gtk, Gdk
import os, sys, cairo, math, random
class FunNewStuff: