Skip to content

Instantly share code, notes, and snippets.

View silvae86's full-sized avatar

João Rocha da Silva silvae86

View GitHub Profile
@silvae86
silvae86 / android_backup_restore.sh
Last active May 6, 2024 09:26
Backup and restore Android partitions to SD Card
#!/sbin/sh
#open adb shell
adb shell
#listing partitions (general command for Android devices)
#ls -l /dev/block/platform/<block_device_name>/by-name/
#for the Galaxy Note 3
ls -l /dev/block/platform/msm_sdcc.1/by-name/
@silvae86
silvae86 / vodafonePT_Note3_NOSMS_Fix.md
Created January 25, 2017 01:37
Setting up Vodafone PT SMS Center

Dialer -> ##4636## – Phone information, usage statistics and battery

Phone Information -> SMSC . Paste +351 91 161 61 61

Tap "Refresh"

@silvae86
silvae86 / Virtuoso.Dockerfile
Created January 17, 2017 20:04
Idea to create DEB packages for Virtuoso 7.2
#source https://hub.docker.com/r/joernhees/virtuoso/~/dockerfile/
FROM debian
MAINTAINER Joern Hees
ENV VIRTUOSO_VERSION=7.2.4.2
ENV VIRTUOSO_SOURCE=https://github.com/openlink/virtuoso-opensource/releases/download/v$VIRTUOSO_VERSION/virtuoso-opensource-$VIRTUOSO_VERSION.tar.gz
ARG BUILD_DIR=/tmp/build
ARG VIRTUOSO_DEB_PKG_DIR=/virtuoso_deb
@silvae86
silvae86 / script.sh
Last active June 20, 2023 03:40
Flashing a boot.img (Kernel, for example) in an Android mobile phone via adb shell
#Tested with Samsung Galaxy Note 3 (your mobile phone may have different paths and partitions!!)
#check adb connection...
adb devices
#copy the boot.img image to the mobile phone (in this case, the root of the SD Card)
adb push <path_to_your_boot.img_extracted_from_custom_rom_zip>/boot.img /external_sd/boot.img
#open shell
adb shell
@silvae86
silvae86 / fix_feup_dns.md
Created December 16, 2016 13:06
Fix FEUP DNS in Virtual Machines
sudo vim /etc/resolv.conf
; Ficheiro /etc/resolv.conf

;
; resolv.conf
;
@silvae86
silvae86 / systemv_init_script_stuff.md
Created December 15, 2016 14:27
SystemV init script experiments
sudo touch /etc/init.d/teamcity
sudo chmod 0755 /etc/init.d/teamcity
sudo vim /etc/init.d/teamcity
#!/bin/sh
#
# /etc/init.d/ant -- startup script for the ANT 0.1-SNAPSHOT search engine
#
# Written by José Devezas <jld@fe.up.pt>.
#
### BEGIN INIT INFO
# Provides: ant
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
@silvae86
silvae86 / fix_broken_ubuntu_upgrade.md
Last active December 16, 2016 15:20
Fix a broken ubuntu upgrade (since it always crashes)
sudo do-release-upgrade
sudo reboot
shutdown -r now
udo apt-get install --reinstall upstart
sudo apt-get install --reinstall upstart
sudo apt-get -f install --reinstall upstart
sudo apt-get -f install
sudo apt-get -f install
vim /var/lib/dpkg/info/util-linux
@silvae86
silvae86 / teamcity.md
Created December 13, 2016 17:39
Scripts about TeamCity by Jetbrains