- partitions
- use the tool of your choice (fdiks/gdisks/parted)
- filesystems
mkfs -t <fs-type> /dev/<partition>
- mount partitions on /mnt
- setup network
ip address add <IP>/<CIDR> dev eth0
ip route add default via <GW>
- add dns in /etc/resolve.conf
- select pacman mirror
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmux list-window | awk -F":" '{system("tmux select-window -t "$1"; tmux send-keys C-c; tmux send-keys \"exit\"; tmux send-keys Enter")}'; tmux attach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ======================================================================= | |
# === Description ...: Integrate DRF with VueTable-2 | |
# === Author ........: Mike Boiko | |
# ======================================================================= | |
# If you want to integrate Django Rest Pagination with VueTable, you must | |
# change the pagination as shown below: | |
# Then, in your views.py file, the pagination_class must be set to CustomPagination | |
# See example below: | |
# from rest_framework import pagination |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: fairy_light_1 | |
platform: ESP32 | |
board: nodemcu-32s | |
# wifi settings | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_pw | |
power_save_mode: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dump_func_name(func): | |
def echo_func(*func_args, **func_kwargs): | |
print('') | |
print('Start func: {}'.format(func.__name__)) | |
return func(*func_args, **func_kwargs) | |
return echo_func | |
class ClassName(object): | |
@dump_func_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Wrapper script around yay to try to ignore errors | |
# Copyright © 2019 Ashkan Kiani | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-hook -g client-attached 'run-shell /bin/update_display.sh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# rbw git-credential helper | |
# Based on https://github.com/lastpass/lastpass-cli/blob/master/contrib/examples/git-credential-lastpass | |
# A credential helper for git to retrieve usernames and passwords from rbw. | |
# For general usage, see https://git-scm.com/docs/gitcredentials. | |
# Here's a quick version: | |
# 1. Put this somewhere in your path. | |
# 2. git config --global credential.helper rbw |
OlderNewer