Skip to content

Instantly share code, notes, and snippets.

View mael's full-sized avatar

Mael mael

  • React Native Developer
  • Pamplona
View GitHub Profile
@mael
mael / command.md
Last active July 6, 2022 20:46
Solution MIcrosoft Office 2019 OSX Catalina Patcher dosdude1

Solution for M.Office 2019 run on older Macbook Pro 5.5 (mid 2009) OSX Catalina Patcher

After install M. office 2019, open terminal:

#### Word

  • sudo xattr -cr /Applications/Microsoft\ Word.app
  • sudo xattr -lr /Applications/Microsoft\ Word.app
  • sudo codesign -f -s - /Applications/Microsoft\ Word.app

Excel

@mael
mael / mojaveSettings.txt
Created October 4, 2019 11:42
Mojave permitir apps de "cualquier sitio"
1) Ejecutamos el "Terminal"
2) En el terminal, escribimos la siguiente linea de comando y luego pulse enter.
sudo spctl --master-disable
3) Introducimos la contraseña de administrador y pulsamos enter
4) Para que los cámbios surtan efecto copie y pegue en el terminal Killall Finder.
@mael
mael / grub.md
Last active October 2, 2019 16:46
Force Turn off Laptop Acer ES1-711

Add "pci=nocrs" and "pci=noaer" options to the /etc/default/grub file.

$ sudo vi /etc/default/grub

edit the next lines

...
GRUB_CMDLINE_LINUX_DEFAULT="pci=nocrs"
GRUB_CMDLINE_LINUX="pci=noaer"
...
@mael
mael / service.md
Last active June 5, 2019 09:35
Start nodejs service on systemd raspberry pi 3b+

Creating a systemd Service File

$ cd /lib/systemd/system

$ sudo vi /lib/systemd/system/myNode.service

and put the following contents in it (example):

[Unit]
Description=Start app.js on my Node 
@mael
mael / tricks.md
Last active May 23, 2024 10:01
Xcode 10.2 "Unable to boot the Simulator"

Solution "Unable to boot the Simulator"

sudo mkdir /private/tmp

sudo chmod 1777 /private/tmp

Other basic command

xcrun

xcrun simctl list devices //to list all simulators

xcrun simctl delete // to delete specific device

@mael
mael / Terminal.md
Last active May 30, 2019 06:15
Delete all git files recursively from project
When we use .git in a project some times we need to do a fresh start or abandon
the project we definitely need to delete all hidden git repository files.

find . | grep .git | xargs rm -rf

@mael
mael / createMaterialTopTabNavigator.js
Last active May 30, 2019 05:28
SafeAreaView IphoneX (react-native)
import React from 'react'
import { SafeAreaView } from 'react-native'
import { createMaterialTopTabNavigator, MaterialTopTabBar } from 'react-navigation'
function SafeAreaMaterialTopTabBar (props) {
return (
<SafeAreaView>
<MaterialTopTabBar {...props} />
</SafeAreaView>
@mael
mael / .bash_profile
Last active May 16, 2019 12:04
My shortcuts for show npm version package
Open Terminal and type
$vi ~/.bash_profile
Add the following lines at the end:
---
function npmv {
case $# in # number of arguments passed
0) v="$(npm -v)" ; #store output from npm -v in variable
echo "NPM version is: $v"; #can't use single quotes
#${v} would also work
@mael
mael / terminal commands
Last active April 27, 2019 20:29
Install nodejs on raspberry Pi Raspbian
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
For other version -> change value 12
@mael
mael / .bash_profile
Last active May 16, 2019 11:54
Terminal Appearance in Mac OS X
Open Terminal and type
#vi ~/.bash_profile
Paste in the following lines:
---
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
---