Skip to content

Instantly share code, notes, and snippets.

View netoxico's full-sized avatar
🏠
Working from home

Ernesto Vargas netoxico

🏠
Working from home
View GitHub Profile
@netoxico
netoxico / KeychainItemWrapper.h
Created May 7, 2012 06:52 — forked from dhoerl/KeychainItemWrapper.h
KeychainItemWrapper ARCified
/*
File: KeychainItemWrapper.h
Abstract:
Objective-C wrapper for accessing a single keychain item.
Version: 1.2 - ARCified
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
@netoxico
netoxico / gist:3055245
Created July 5, 2012 17:59
Disable Apple Press And Hold
defaults write -g ApplePressAndHoldEnabled -bool false

Selenium with Python

Author: Baiju Muthukadan
Email:baiju.m.mail AT gmail.com
Version: 0.3.2
@netoxico
netoxico / gist:3315989
Created August 10, 2012 17:35
Mac - Toggling VPN Connection
#!/bin/sh
osascript <<END
tell application "System Events"
tell current location of network preferences
set VPNservice to service "VPN-NAME"
set isConnected to connected of current configuration of VPNservice
if isConnected then
disconnect VPNservice
else
connect VPNservice
@netoxico
netoxico / gist:3346135
Created August 14, 2012 03:50
Mirror full site
wget -e robots=off --wait 1 -x -m -k http://site/
@netoxico
netoxico / redmine.py
Created August 30, 2012 15:49
Selenium fill personal Redmine
# Requires selenium==2.24.0
# Pip install selenium
# To run:
# python redmine.py
try:
import unittest2 as unittest
except ImportError:
import unittest
@netoxico
netoxico / gist:3667187
Last active October 10, 2015 09:08
Git Notes

Git Notes

Create a new branch from develop remote branch

git checkout -b BID-XXX origin/develop

//Do Development here.

git checkout develop // Switch branch to'develop'

git merge --no-ff BID-XXX // Update

@netoxico
netoxico / passwordgen.py
Created November 28, 2012 22:21
Password generator
#!/usr/bin/env python
# This file was created by Noam Yorav-Raphael.
# It is put in the public domain.
import random
import math
LEFT = '123456qwertasdfgzxcvb'
RIGHT = '7890-=yuiop[]hjkl;\'nm,./'
@netoxico
netoxico / gist:4176964
Created November 30, 2012 16:54 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
```ruby
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
config.vm.forward_port 8000, 8000
config.vm.network :hostonly, "33.33.00.10"
config.vm.share_folder("v-root", "/vagrant", ".", :extra => 'dmode=770,fmode=770', :nfs => true)