Skip to content

Instantly share code, notes, and snippets.

View EkoAdiWijayanto's full-sized avatar

Eko Adi Wijayanto EkoAdiWijayanto

View GitHub Profile
@EkoAdiWijayanto
EkoAdiWijayanto / initCfg.sh
Created May 20, 2024 12:45
Init Config Script
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.zshrc
@EkoAdiWijayanto
EkoAdiWijayanto / HowToOpiDap.md
Last active November 11, 2020 18:50
Simple step to make Simple Orange Pi MP3 Player with IR Control, also has usb mass storage mode

DIY Orange Pi Digital Audio Player with IR Control

Installation

  1. Download Armbian using this torent

  2. Extract file

  3. Burn Armbian_5.38_Orangepizero_Debian_stretch_next_4.14.14.img to MicroSD using Etcher

  4. Open GParted

  5. Resize partition to 2GB (armbian OS)

file: /etc/systemd/system/suspend-lock.service
[Unit]
Description=i3lock on suspend
Before=sleep.target
[Service]
User=work
Type=forking
Environment=DISPLAY=:0
sudo nano /etc/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "NaturalScrolling" "true"
EndSection
(require 'package)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(auto-save-default nil)
'(backup-inhibited t t)
mount -o remount,size=4G,noatime /tmp
mount -o remount,size=4G,noatime /tmp
source https://forum.antergos.com/topic/4203/grub-uefi-repair/8
mount /dev/*sdaROOT* /mnt
mount /dev/*sdaEFI* /mnt/boot/efi
arch-chroot /mnt
pacman -S efibootmgr
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
sudo nano /etc/locale.gen
sudo locale-gen
sudo pacman -Rcns lightdm
sudo pacman -S gdm
sudo systemctl enable gdm
sudo rm -rf /etc/systemd/system/display-manager.service
sudo systemctl enable gdm
sudo pacman -S mongodb mongodb-tools inkscape gimp geany geany-plugins filezilla tilix emacs zsh eclipse python2-nautilus copyq chrome-gnome-shell
@EkoAdiWijayanto
EkoAdiWijayanto / how-to
Created August 20, 2017 14:31
RTC ds3231
#/boot/config.txt
dtoverlay=i2c-rtc,ds3231
# terminal
$ sudo apt-get purge fake-hwclock
$ sudo reboot