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 / tricks-git.md
Last active September 23, 2016 14:12
How to with Git

Tricks for how to use git

How to change or move to an specific branch

  • git checkout <branch-name>

Example: git checkout development

How to update branch from web repository Hacer un pull de development desde upstream development

  1. git checkout
@kakashysen
kakashysen / configure-wifi-raspberrypi.md
Last active March 16, 2016 14:51
How to configure wifi on raspberry pi from command line

How to configure wifi from command line

  • In the command line run sudo iwlist wlan0 scan command to list all wifi networks are in the range
  • Look this label ESSID:"<network-name>" in the result of each network
  • Edit wpa_supplicant.conf file with sudo , sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
  • At the end of the file add next lines changing the values ssid network-name and psk password of your network
network={
    ssid="<your_network_name>"
 psk=""
@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]];

@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 / 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 / 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 / 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 / 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 / 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 / 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: