Skip to content

Instantly share code, notes, and snippets.

View marcelodeandrade's full-sized avatar

Marcelo de Andrade marcelodeandrade

View GitHub Profile
@marcelodeandrade
marcelodeandrade / composer-private-package-github-token.md
Created August 31, 2018 13:47 — forked from jeffersonmartin/composer-private-package-github-token.md
Generate a GitHub Personal Access Token for Private Composer Packages

Generate a GitHub Personal Access Token for Private Composer Packages

If you're trying to load a private repository with Composer/Laravel, we'll need to generate a GitHub Personal Access Token (similar to OAuth token) to access the repository during a composer install without entering credentials.

If you have used other Github packages from {my-org} before, you may be able to skip this step.

  1. Visit https://github.com/settings/tokens.

  2. Click Generate new token.

@marcelodeandrade
marcelodeandrade / checkIfInArray.asp
Created August 8, 2017 18:39 — forked from gwobcke/checkIfInArray.asp
Classic ASP Check If In Array
<%
Function in_array(element, arr)
in_array = False
For i=0 To Ubound(arr)
If Trim(arr(i)) = Trim(element) Then
in_array = True
Exit Function
End If
Next
End Function
@marcelodeandrade
marcelodeandrade / checkIfInArray.asp
Created August 8, 2017 18:39 — forked from gwobcke/checkIfInArray.asp
Classic ASP Check If In Array
<%
Function in_array(element, arr)
in_array = False
For i=0 To Ubound(arr)
If Trim(arr(i)) = Trim(element) Then
in_array = True
Exit Function
End If
Next
End Function
@marcelodeandrade
marcelodeandrade / add_disqus_hexo.md
Created June 4, 2017 19:37 — forked from ythecombinator/add_disqus_hexo.md
Simple tip for adding "Disqus" comments for Hexo.

In the footer of your theme (something like footer.ejs) you should add Disqus script:

<% if (config.disqus_shortname){ %>
<script>
  var disqus_shortname = '<%= config.disqus_shortname %>';
  <% if (page.permalink){ %>
  var disqus_url = '<%= config.url +"/"+ page.path %>';
  <% } %>
 (function(){
1. install openjdk
`sudo apt-get install openjdk-7-jdk`
2. install `android sdk`
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools