adapted from this blog
# YAML
name: Jon# YAML
object:| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules] | |
| "{723B2CF9-6C17-40CF-AD64-382DAF2BC7BD}"="v2.32|Action=Allow|Active=TRUE|Dir=Out|App=%ProgramFiles%\\NVIDIA Corporation\\NVIDIA Broadcast\\NVIDIA Broadcast UI.exe|Name=Allow NVidia Broadcast Updates|" |
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules] | |
| "{723B2CF9-6C17-40CF-AD64-382DAF2BC7BD}"="v2.32|Action=Allow|Active=TRUE|Dir=Out|App=%ProgramFiles%\\NVIDIA Corporation\\NVIDIA Broadcast\\NVIDIA Broadcast UI.exe|Name=Allow NVidia Broadcast Updates|" |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
adapted from this blog
# YAML
name: Jon# YAML
object:| // fb-rotate.c | |
| #include <getopt.h> | |
| #include <IOKit/graphics/IOGraphicsLib.h> | |
| #include <ApplicationServices/ApplicationServices.h> | |
| #define PROGNAME "fb-rotate" | |
| #define MAX_DISPLAYS 16 | |
| // kIOFBSetTransform comes from <IOKit/graphics/IOGraphicsTypesPrivate.h> |
| ... | |
| ... | |
| <textarea froala="froalaOptions"></textarea> | |
| ... | |
| ... |
| # Ways to execute a shell script in Ruby | |
| # Example Script - Joseph Pecoraro | |
| cmd = "echo 'hi'" # Sample string that can be used | |
| # 1. Kernel#` - commonly called backticks - `cmd` | |
| # This is like many other languages, including bash, PHP, and Perl | |
| # Returns the result of the shell command | |
| # Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111 |
| ############################################################################### | |
| # The MIT License | |
| # | |
| # Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>. | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
| { | |
| "parserOptions": { | |
| "ecmaFeatures": { | |
| "jsx": true | |
| } | |
| }, | |
| "env": { | |
| "es6": true | |
| } | |
| } |
| db:create Creates the database for the current RAILS_ENV environment. If RAILS_ENV is not specified it defaults to the development and test databases. | |
| db:create:all Creates the database for all environments. | |
| db:drop Drops the database for the current RAILS_ENV environment. If RAILS_ENV is not specified it defaults to the development and test databases. | |
| db:drop:all Drops the database for all environments. | |
| db:migrate Runs migrations for the current environment that have not run yet. By default it will run migrations only in the development environment. | |
| db:migrate:redo Runs db:migrate:down and db:migrate:up or db:migrate:rollback and db:migrate:migrate depending on the specified migration. I usually run this after creating and running a new migration to ensure the migration is reversable. | |
| db:migrate:up Runs the up for the given migration VERSION. | |
| db:migrate:down Runs the down for the given migration VERSION. |