Skip to content

Instantly share code, notes, and snippets.

View gep13's full-sized avatar

Gary Ewan Park gep13

View GitHub Profile
@gep13
gep13 / Git Rebase Commands
Created April 26, 2013 22:12
A set of steps which can be used to update a pull request based on changes to upstream master branch and to reduce number of commits to a single one.
# The following assuming that you have both an "origin" and an "upstream" remote created
# If you don't then you will need to configure this. You can verify what the current state is using
# git remote -v
# Which should look something like the following
# origin git@github.com:rismoney/chocolatey.git (fetch)
# origin git@github.com:rismoney/chocolatey.git (push)
# upstream git@github.com:chocolatey/chocolatey.git (fetch)
# upstream git@github.com:chocolatey/chocolatey.git (push)
# If you don't have this, go ahead and add a new remote using what is detailed here
# https://help.github.com/articles/adding-a-remote
@gep13
gep13 / Clean Working Directory
Last active August 29, 2015 13:56
Git Commands
# Revert changes to modified files.
git reset --hard
# Remove all untracked files and directories.
git clean -fd
@gep13
gep13 / PR Accept
Created March 5, 2014 20:12
Accepting a pull request
Here is the process that I have followed:
git remote add TomOne https://github.com/TomOne/chocolatey.org.git
git fetch TomOne
git checkout -b PR61 TomOne/owner-to-maintainer
git rebase master
Now I checked thoroughly through the changes to make sure that everything was ok.
git checkout master
@gep13
gep13 / BuildSteps.yml
Last active August 29, 2015 14:06
Build Steps for AppVeyor Deployment of Octopress Site to GitHub Pages
build_script:
- cmd: bundle install
- cmd: if not exist _deploy (git clone https://%GithubUsername%:%GithubPassword%@github.com/%GithubUsername%/%GithubUsername%.github.io.git _deploy)
- cmd: cd _deploy
- cmd: git checkout master
- cmd: cd ..
- cmd: rake gen_deploy
@gep13
gep13 / index.md
Last active August 29, 2015 14:06
Debugging SSL issue with Ruby

What I am trying to do is debug an issue with my Ruby installation. There is a known "issue" where the CA cert file path is hardcoded to a location that doesn't exist anywhere except the build machine that the Ruby package was made on. This is detailed here:

https://groups.google.com/forum/#!topic/rubyinstaller/DVIDvs7xKC0

There are a number of "solutions" to this problem, most of which are captured here in this Stackoverflow Question:

http://stackoverflow.com/questions/11703679/opensslsslsslerror-on-heroku

I also found this gist:

@gep13
gep13 / gist:a29122edbcf15fd924ce
Created February 18, 2015 07:21
Output of choco list chocolateygui -all
The default install location has been changed to 'C:\ProgramData\chocolatey'.
This install will be updated to that location in the next version. It
is strongly suggested you move this installation to the new location
as soon as possible to limit write access from all users. Do not forget
to update PATH & ChocolateyInstall environment variables.
ChocolateyGUI 0.0.1
ChocolateyGUI 0.0.2
ChocolateyGUI 0.0.3
ChocolateyGUI 0.0.4
ChocolateyGUI 0.0.5
@gep13
gep13 / Program.cs
Created March 6, 2015 07:57
Create ChocolateyGUI release notes using OctoKit
var github = new GitHubClient(new ProductHeaderValue("ChocolateyGUI"));
var lst = github.Release.GetAll("chocolatey", "chocolateygui").Result.OrderByDescending(r => r.CreatedAt);
string path = @"c:\temp\CHANGELOG.md";
if (File.Exists(path))
{
File.Delete(path);
}
@gep13
gep13 / gist:50150201ae2bd196f9b7
Created April 7, 2015 20:43
Problem with Generate-BinFile
D:\Users\gep13\Downloads> choco install githubreleasemanager.portable -version 0.1.0
Chocolatey v0.9.9.4
Installing the following packages:
githubreleasemanager.portable
By installing you accept licenses for the packages.
githubreleasemanager.portable v0.1.0
Found 'chocolateyInstall.ps1':
Generate-BinFile "ghrm" "$packageFolder\Tools\GitHubReleaseManager.Cli.exe"
<ListView ItemsSource="{Binding Talks, Mode=TwoWay}" IsItemClickEnabled="True">
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="ItemClick">
<actions:OpenMenuFlyoutAction />
</core:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
<FlyoutBase.AttachedFlyout>
<MenuFlyout>
<MenuFlyoutItem Text="Edit" />
<MenuFlyoutItem Text="Delete" />
@gep13
gep13 / install.log
Created August 17, 2015 20:49
Moderation results for 0install Version 2.8.3
everything went fine!