Skip to content

Instantly share code, notes, and snippets.

@v1ct0rv
v1ct0rv / ansible-macos-homebrew-packages.yml
Last active May 31, 2021 12:55 — forked from mrlesmithjr/ansible-macos-homebrew-packages.yml
Install MacOS Homebrew Packages With Ansible
# Run these commands before run the playbook:
# $ xcode-select --install
# $ sudo easy_install pip
# $ sudo pip install ansible --quiet
# $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# to update ansible use: sudo pip install ansible --upgrade
# Then, run the playbook:
# $ curl https://gist.githubusercontent.com/V1ct0rV/def163b7d97408979afc8247c3699cc9/raw/ansible-macos-homebrew-packages.yml -o playbook.yml
# $ ansible-playbook playbook.yml
---
switch ( $env:BoxstarterVSVersion )
{
Community
{
Write-BoxstarterMessage "Installing Visual Studio Community Edition"
}
Professional
{
Write-BoxstarterMessage "Installing Visual Studio Professional Edition"
@v1ct0rv
v1ct0rv / boxstarter-step1.ps1
Last active October 17, 2018 12:33 — forked from sgarcesc/boxstarter-pc.ps1
Boxstarter installation script
# Before running this script run:
# Set-ExecutionPolicy RemoteSigned
# on an elevated powershell console
# Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Boxstarter
iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force
@v1ct0rv
v1ct0rv / boxstarter-step2.ps1
Last active September 9, 2020 03:19
Boxstarter powershell script
# This script is based on jessfraz boxstarter.ps1 script https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
# and NickCraver Windows10-Setup.ps1 script https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
# all the configurations here are my personal preferences, use it at your own discretion.
# the configurations here are meant to be run by boxstarter, and some will not work when running the ps1 by itself
##################
# Temporal: Disable UAC
##################
Disable-UAC
@v1ct0rv
v1ct0rv / update.sh
Created August 28, 2015 21:14
Update clodflare record from command line
# List Cloudflare zones and copy the zone do you want to update
curl -X GET "https://api.cloudflare.com/client/v4/zones?name=example.com&status=active&page=1&per_page=20&order=status&direction=desc&match=all" \
-H "X-Auth-Email: cloudflere_email" \
-H "X-Auth-Key: cloudflare_apikey" \
-H "Content-Type: application/json"
# List DNS Records paste the zone from previous command
curl -X GET "https://api.cloudflare.com/client/v4/zones/paste_here_zone_id/dns_records?type=A&page=1&per_page=20&order=type&direction=desc&match=all" \
-H "X-Auth-Email: cloudflere_email" \
-H "X-Auth-Key: cloudflare_apikey" \
@v1ct0rv
v1ct0rv / Readme.md
Created March 13, 2014 05:30
Puzzle test

Put both files in the same directory and run 'node app'