Skip to content

Instantly share code, notes, and snippets.

toni dy tonidy

Block or report user

Report or block tonidy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tonidy
tonidy / gist:cfad869bf96e60c67454a41faa64e06f
Last active Jul 19, 2019
Install Docker Toolbox with Hyper-V on Windows 8.1
View gist:cfad869bf96e60c67454a41faa64e06f
Install Docker Toolbox:
# Docker and DockerMachine are required.
> DockerToolbox-<version>.exe /COMPONENTS="Docker,DockerMachine"
# Edit "Docker Quick Terminal" with this patch -> https://github.com/docker/toolbox/issues/463#issuecomment-335318852
> docker-machine create -d "hyperv" --hyperv-virtual-switch "Network Name" default
@tonidy
tonidy / author.sh
Last active Jul 3, 2019
Change git author name & email
View author.sh
#!/bin/bash
## https://help.github.com/en/articles/changing-author-info
git filter-branch --env-filter '
OLD_EMAIL="user@email.id"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
View gist:d8252d21fcb4e09ee010f87991db6cf3
1. Update manjaro awesome
2. Install google chrome
3. Turn on account sync in chrome
4. Install Linuxbrew (http://linuxbrew.sh/)
5. https://thiagoreis.netlify.com/essential-things-to-do-after-install-manjaro-18
6.
View InitialiseConfiguration.cs
private void InitialiseConfiguration(string webConfigPath)
{
// Resetting is based on http://stackoverflow.com/questions/6150644/change-default-app-config-at-runtime
AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", webConfigPath);
typeof(ConfigurationManager).GetField("s_initState", BindingFlags.NonPublic | BindingFlags.Static).SetValue(null, 0);
typeof(ConfigurationManager).GetField("s_configSystem", BindingFlags.NonPublic | BindingFlags.Static).SetValue(null, null);
typeof(ConfigurationManager).Assembly.GetTypes().Where(x => x.FullName == "System.Configuration.ClientConfigPaths")
.First()
.GetField("s_current", BindingFlags.NonPublic | BindingFlags.Static)
@tonidy
tonidy / install.sh
Created Jun 4, 2018
Install Android SDK on MacOS
View install.sh
# Source: https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03#gistcomment-2376496
# Update:
# Use Homebrew to install Android dev tools:
brew cask install android-sdk
brew cask install android-ndk
# Update your environment variables:
export ANDROID_NDK_HOME=/usr/local/share/android-ndk
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk
View keybase.md

Keybase proof

I hereby claim:

  • I am tonidy on github.
  • I am tonidy (https://keybase.io/tonidy) on keybase.
  • I have a public key ASAF-b8TxTCEA4EOcjkRVnBHWzNj_OB4aQfJlS1Yf8ecSwo

To claim this, I am signing this object:

View homebrew-permissions-issue.md

Homebrew Permissions Denied Issues Solution

Installing and fixing node.JS


brew install node

View egd.cmd
@echo off
IF [%1] == [] GOTO paramEmpty
egghead-downloader -c https://egghead.io/courses/%1 %1
:paramEmpty
echo.Please set parameter
echo.Example: egd courseName
@tonidy
tonidy / README.md
Created Sep 28, 2016 — forked from addyosmani/README.md
108 byte CSS Layout Debugger
View README.md

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

You can’t perform that action at this time.