Skip to content

Instantly share code, notes, and snippets.

@bouassaba
bouassaba / GetAssemblyName.cs
Created December 21, 2016 21:33
.NET Core get assembly name
Path.GetFileNameWithoutExtension(typeof(ReplaceThisWithAnyClass).GetTypeInfo().Assembly.CodeBase);
@bouassaba
bouassaba / override_git_tag.sh
Last active March 20, 2020 10:57
override git tag
# Delete the tag on any remote before you push
git push origin :refs/tags/<tagname>
# Replace the tag to reference the most recent commit
git tag -fa <tagname>
# Push the tag to the remote origin
git push origin master --tags
# source: http://stackoverflow.com/questions/8044583/how-can-i-move-a-tag-on-a-git-branch-to-a-different-commit
@bouassaba
bouassaba / gist:e6653862d8c79aa59abd32f9f9d99181
Created October 20, 2016 20:30
Git add push only remote
git remote set-url --add --push origin <repo-url-here>
@bouassaba
bouassaba / create_guid.ps1
Created October 14, 2016 15:41
PowerShell, create GUID
[guid]::NewGuid()
@bouassaba
bouassaba / gist:07ec9da2ebf77ae694ef46fbde9ff40e
Created August 15, 2016 10:47
macOS: show processes using a specific port
netstat -anp tcp | grep 5000
@bouassaba
bouassaba / python_local_error_os_x.sh
Created July 3, 2016 13:03
python local error OS X
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
@bouassaba
bouassaba / README.md
Created June 10, 2016 23:09 — forked from evandrix/README.md
Headless web browsers

Here are a list of headless browsers that I know about:

  • [HtmlUnit][1] - Java. Custom browser engine. JavaScript support/DOM emulated. Open source.
  • [Ghost][2] - Python only. WebKit-based. Full JavaScript support. Open source.
  • [Twill][3] - Python/command line. Custom browser engine. No JavaScript. Open source.
  • [PhantomJS][4] - Command line/all platforms. WebKit-based. Full JavaScript support. Open source.
  • [Awesomium][5] - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free.
  • [SimpleBrowser][6] - .Net 4/C#. Custom browser engine. No JavaScript support. Open source.
  • [ZombieJS][7] - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source.
  • [EnvJS][8] - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source.
xcrun swift -version
@bouassaba
bouassaba / js_computed_style_value.js
Created February 5, 2016 19:17
JS get computed style value
window.getComputedStyle(e, null).getPropertyValue('height');
@bouassaba
bouassaba / osx_cli_update.sh
Created January 28, 2016 19:06
OS X CLI Update
# find and list software updates
softwareupdate -l
# install the updates
softwareupdate -i -a