Skip to content

Instantly share code, notes, and snippets.

View kakashysen's full-sized avatar
🎯
Focusing

Jose Aponte kakashysen

🎯
Focusing
View GitHub Profile
@kakashysen
kakashysen / azure-download.java
Created October 9, 2019 06:31
Download files from azure
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Main {
@kakashysen
kakashysen / git-clean-branches.sh
Last active May 14, 2019 03:19
Clean local branches that was deleted from remote repo
git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d
@kakashysen
kakashysen / reload_spootlight.md
Created August 14, 2018 19:14
How to reload spotlight - OSX

Turn off spotlight:

sudo mdutil -a -i off

Unload it:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Load It:

@kakashysen
kakashysen / nokogiri-error-install.md
Created June 29, 2018 04:19
Nokogiri error bundle install

Nokogiri error in bundle install

if you get an error like this

ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
@kakashysen
kakashysen / swift-for-vim.md
Created October 10, 2017 21:13
How to add Swift Syntax Highlighting in Vim

Enable Swift Highlighting Syntax for Vim

  1. Execute the given below commands

$mkdir -p ~/.vim/autoload ~/.vim/bundle

$curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

  1. Add the given below lines to ~/.vimrc
@kakashysen
kakashysen / Fixed-linked-failed-Xcode.md
Created March 23, 2017 19:02
Fixed linker command failed Xcode

When try to build a Xcode Project and the error show clang: error: linker command failed with exit code 1 (use -v to see invocation) I can solve this problem normaly changed the Build Active Architecture Only to NO.

@kakashysen
kakashysen / creategif.sh
Last active October 9, 2018 20:36
This script help to create gif from video file.
######################################
# @author Jose Aponte
# @createdat 2016-07-25
#
# This script need ffmpeg library, to install download from http://ffmpeg.org/
# or from Mac OS run brew install ffmpeg
# And ImageMagick http://www.imagemagick.org/script/download.php
# or from Mac OS run brew install ImageMagick
#
# Create a gif from video
@kakashysen
kakashysen / SymbolicateCrashFile.md
Created June 14, 2016 16:13
How to symbolicate crash logs with Xcode
  1. Create a new folder MyFolder
  2. Find the correct .xcarchive
  3. Open the content package and copy the next file into MyFolder
  • Product/Applications/AppName
  • dSYMs/AppName.app.dSYM
  1. Copy the crash file into MyFolder
  2. Copy the symbolicatecrash into MyFolder, this file is in /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash
  3. run this command in the terminal export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
  4. Run this command to symbolicate log symbolicatecrash my-crash-file.crash
@kakashysen
kakashysen / readyAppleDeve.sh
Created June 13, 2016 23:24
Notify when apple developers site it's ready
loop=0
while [ $loop -eq 0 ]
do
ready=`curl -s http://devimages.apple.com/maintenance#/overview/KVANJVKSA4 | grep -i "back soon." | wc -l`
if [ "$ready" -eq 0 ]; then
osascript -e 'tell app "Finder" to display dialog "Apple Developer Site it is ready"'
let loop=1
fi
sleep 5
done
@kakashysen
kakashysen / NSDate_GTM.md
Created May 24, 2016 23:01
Get the current date from GTM system

How to get current date with GTM from system time zone

NSDate *now = [NSDate dateWithTimeInterval:[[NSTimeZone systemTimeZone] secondsFromGMT] sinceDate:[NSDate date]];