Skip to content

Instantly share code, notes, and snippets.

View Manouchehri's full-sized avatar
🦆

David Manouchehri Manouchehri

🦆
View GitHub Profile
@Manouchehri
Manouchehri / find_nonexistence_packages.sh
Created August 26, 2015 17:33
Short one-liner to identify locally installed packages from the AUR3 that haven't been migrated to the AUR4 yet.
#!/bin/bash
for x in `yaourt -Qmq`; do yaourt -Si "$x" || echo "$x" >> missing.txt; done
@Manouchehri
Manouchehri / make.log
Created August 27, 2015 01:24
/var/lib/dkms/vboxhost/5.0.2/build/make.log
DKMS make.log for vboxhost-5.0.2 for kernel 4.1.6.201508230818-1-grsec (x86_64)
Wed Aug 26 21:23:34 EDT 2015
make: Entering directory '/usr/lib/modules/4.1.6.201508230818-1-grsec/build'
LD /var/lib/dkms/vboxhost/5.0.2/build/built-in.o
LD /var/lib/dkms/vboxhost/5.0.2/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/vboxhost/5.0.2/build/vboxdrv/linux/SUPDrv-linux.o
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./tools/gcc/constify_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./tools/gcc/stackleak_plugin.so
@Manouchehri
Manouchehri / fix.md
Created August 27, 2015 05:29
Windows 7 / 8 -> 10 Upgrade

Symptoms

  • SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
  • Cannot boot from hard drive after starting Windows 10 upgrade (
  • Cannot boot from Windows 10 install DVD or USB

Solution

Increase video RAM.

#!/bin/bash
#
# Purpose: Write the passed in parameter as hostid to /etc/hostid
# If no parameter is passed, write current hostid to /etc/hostid
# Original Author: Fazle Arefin <fazlearefin@yahoo.com>
# http://fazlearefin.blogspot.ca/2013/03/set-hostid-etchostid-of-linux-hosts.html
# Modified by David Manouchehri <david@davidmanouchehri.com>
if [ -n "$1" ]; then
@Manouchehri
Manouchehri / Canon.txt
Last active August 29, 2015 14:13
Canon SX260 HS - Info
Running 1.01A (1.0.1.0)
http://chdk.wikia.com/wiki/SX260
http://mighty-hoernsche.de/trunk/ - Unstable New Development Version 1.4
sx260hs-101a-1.4.0-[THIS CHANGES]-full.zip
unzip sx260hs-101a-1.4.0-*-full.zip to SD card
Go to menu, update firmware (needed for each initial boot)
After that initial boot happens, go into the CHDK menu and make the card bootable
mount -o rw,remount /system
sed -i 's/qemu.hw.mainkeys=1/qemu.hw.mainkeys=0/g' /system/build.prop
/qemu.hw.mainkeys=0/g' /system/build.prop # Turn softkeys back on.
@Manouchehri
Manouchehri / gpsglonassusbreceiver.txt
Last active August 29, 2015 14:15
GPS/GLONASS USB Receiver
Product: http://www.aliexpress.com/snapshot/6329414611.html
Title: VK-172 GMOUSE USB GPS/GLONASS USB FZ1007
Price: $10.07 USD
Chip info:
ublox
G7020-XT
C1010A
01119364
alias aria2c='aria2c -x16 -j32 -s32 --header="User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0" --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Encoding: gzip, deflate" --header="Accept-Language: en-US,en;q=0.5"'
alias rc.d='systemctl'
alias xzip='zip -9'
alias xtar='XZ_OPT="-9e" tar --owner=root --group=root -Jcvf'
shopt -s histappend
PROMPT_COMMAND='history -a; history -n'
export EDITOR="vim"
mkdir smi2021-tree/ && cd smi2021-tree/
git init
git config core.sparseCheckout true
echo drivers/media/usb/smi2021/ >> .git/info/sparse-checkout
git remote add origin https://github.com/jonjonarnearne/smi2021.git
git fetch origin --depth=33
git pull origin smi2021v3-wip
# mkdir smi2021-tree/ && cd smi2021-tree/
# git init
# git config core.sparseCheckout true
# echo drivers/media/usb/smi2021/ >> .git/info/sparse-checkout
# git remote add origin https://github.com/jonjonarnearne/smi2021.git
# git fetch origin --depth=1
# git pull origin smi2021v3-wip
# cd drivers/media/usb/smi2021/
# make -C /lib/modules/$(uname -r)/build M=$PWD