Skip to content

Instantly share code, notes, and snippets.

View tonidy's full-sized avatar

toni dy tonidy

View GitHub Profile
@tonidy
tonidy / gist:cfad869bf96e60c67454a41faa64e06f
Last active July 19, 2019 12:27
Install Docker Toolbox with Hyper-V on Windows 8.1
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 July 3, 2019 04:58
Change git author name & email
#!/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" ]
@tonidy
tonidy / gist:d8252d21fcb4e09ee010f87991db6cf3
Last active February 24, 2019 05:01
After installed manjaro
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.
@tonidy
tonidy / gist:cd9e1783b75bfe9b195a55f9424d613a
Last active December 31, 2018 16:40
So Easy Pattern (really?)
n=1
x
n=2
x
x x
x
n=3
x
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 June 4, 2018 06:52
Install Android SDK on MacOS
# 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

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:

Homebrew Permissions Denied Issues Solution

Installing and fixing node.JS


brew install node

@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 September 28, 2016 09:54 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

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