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 / jenkins_stuff.md
Last active December 13, 2016 17:33
Interesting locations for Jenkins install on Ubuntu

Install:

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get -y install jenkins

Logfile:

@silvae86
silvae86 / ubuntu_security_updates.md
Last active June 9, 2023 16:41
Install Security updates only on Ubuntu

sudo apt-get install unattended-upgrades

sudo unattended-upgrades -d

@silvae86
silvae86 / useful_ubuntu_packages.sh
Created December 12, 2016 18:19
Useful ubuntu packages
sudo apt-get install -y \
sysv-rc-conf \
@silvae86
silvae86 / teamcity.md
Created December 13, 2016 17:39
Scripts about TeamCity by Jetbrains
@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
#!/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 / 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
@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 / 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