Skip to content

Instantly share code, notes, and snippets.

View michaeljymsgutierrez's full-sized avatar
:octocat:
I'm just a developer for fun ⌨️

Chael Gutierrez michaeljymsgutierrez

:octocat:
I'm just a developer for fun ⌨️
View GitHub Profile
@michaeljymsgutierrez
michaeljymsgutierrez / Fastboot_cmd.txt
Created October 5, 2017 01:14
Fastboot command lines for android
1. Flashing the recovery image:
fastboot flash recovery recovery.img
2. Flash the kernel and bootloader:
fastboot flash boot boot.img
3. Erase a partition:
fastboot erase cache
@michaeljymsgutierrez
michaeljymsgutierrez / set-icon.sh
Last active March 17, 2024 11:55
Set icon on window and panel - xseticon
#! /bin/bash
# @params $1: APP_NAME
# @params $2: ICON_PATH
# set-icon.sh Slack /usr/share/pixmaps/slack.png
# Note: Make sure xseticon is installed on your system
# If not installed: https://github.com/xeyownt/xseticon
# Either/usr/bin or /usr/local/bin is fine for script directory
# sudo cp set-icon.sh /usr/bin
@michaeljymsgutierrez
michaeljymsgutierrez / color.txt
Last active November 2, 2022 20:42
Colorize Terminal
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[1;32m\]❎ DATE:\[\033[1;37m\] \d \[\033[1;32m\] ❎ USER:\[\033[1;37m\] \u \[\033[32m\] ❎ DIRECTORY:\[\033[1;37m\] \w \[\033[1;32m\] ❎ BRANCH:\[\033[1;37m\]\$(parse_git_branch)\[\033[00m\] \n\[\033[1;32m\]└ ▶ \[\033[37m\]"
GIT COLOR
#[alias]
# lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
@michaeljymsgutierrez
michaeljymsgutierrez / command.txt
Created June 13, 2017 00:24
mac-terminal-code-recovery
sudo nvram "recovery-boot-mode=unused"
sudo reboot recovery
https://drive.google.com/file/d/1_ZRwIuEw1OjKBws-FARfMe--4fE5thiq/view?usp=sharing
@michaeljymsgutierrez
michaeljymsgutierrez / blank.kml
Created July 2, 2021 07:16
Example blank kml file for google kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<!-- Please change the "Location name here" -->
<name>Location name here</name>
<Style id="poly-000000-2000-77-nodesc-normal">
<LineStyle>
<color>ff000000</color>
<width>2</width>
</LineStyle>
# deb cdrom:[Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)]/ focal main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ph.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://ph.archive.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ph.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://ph.archive.ubuntu.com/ubuntu/ focal-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
@michaeljymsgutierrez
michaeljymsgutierrez / fix-source.sh
Created November 24, 2020 02:13
19.04 source list fix
#! /bin/bash
sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
grep -E 'archive.ubuntu.com|security.ubuntu.com' /etc/apt/sources.list.d/*
sudo apt-get update
@michaeljymsgutierrez
michaeljymsgutierrez / nodejs-mongodb.sh
Last active June 28, 2020 13:07
Script for installing NodeJS and MongoDB on Linux (Ubuntu Distro)
#! /bin/bash
# Install NVM - Node Version Manager
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# Reload bash
source ~/.bashrc
# Install NodeJS
nvm install v12.18.1
# Requires python 3
import scipy as sp
import sympy as sym
x = sym.symbols('x')
expression = input('Enter Expression: ')
transform = sym.diff(expression);
init_transform = str(transform)