git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
mkfs -t <fs-type> /dev/<partition>
ip address add <IP>/<CIDR> dev eth0
ip route add default via <GW>
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 |
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 |
--- | |
- name: Install MacOS Packages | |
hosts: localhost | |
become: false | |
vars: | |
brew_cask_packages: | |
- atom | |
- docker | |
- dropbox | |
- firefox |
# ======================================================================= | |
# === 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 |
#!/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, |
set-hook -g client-attached 'run-shell /bin/update_display.sh' |