- Show changes in stash
git stash show -p stash@{0}
- Save stash with message
git stash save "MESSAGE"
- Authetication GitHub using 2FA(two-factor authentication)
- create a file
~/.git-credentials
with following content
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
# Shell script to download Oracle JDK from command prompt / terminal. | |
# You can download all the binaries one-shot by just giving the BASE_URL. | |
## Features: | |
# Resumes a broken [previous] download, if any. | |
# Renames the file to a proper name with platform adding platform info. | |
# Downloads all the following from Oracle Website with one shell invocation. | |
# a. Windows 64 and 32 bit; | |
# b. Linux 64 and 32 bit; and | |
# c. API Docs. |
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
import os | |
import json | |
def _expand_paths(path): | |
""" | |
Expand wildcarded paths | |
""" | |
import re | |
dir_name = os.path.dirname(path) |
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
# tor-0.2.8.9 | |
./configure -prefix="$HOME/Downloads/tor-0.2.8.9/build" --bindir="$HOME/bin" | |
make | |
make install |
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
config interface 'loopback' | |
option ifname 'lo' | |
option proto 'static' | |
option ipaddr '127.0.0.1' | |
option netmask '255.0.0.0' | |
config interface 'lan' | |
option ifname 'eth0' | |
option type 'bridge' |
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
Gnocchi Archive policies | |
========================= | |
1. Capture data every 1 minute for 1 day | |
[heat-admin@overcloud-controller-2 ~]$ gnocchi archive-policy create 1min1day -d granularity:1m,timespan:1d | |
+---------------------+----------------------------------------------------------------+ | |
| Field | Value | | |
+---------------------+----------------------------------------------------------------+ | |
| aggregation_methods | std, count, 95pct, min, max, sum, median, mean | | |
| back_window | 0 | |
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
rm file1.txt | |
for i in `openstack server list -f value -c Name`; do | |
SERVER_DETAIL=$(openstack server show inst2 -c created -c flavor -c project_id -f value | tr '\r\n' ' ') | |
created=$(echo $SERVER_DETAIL | awk '{print $1}') | |
flavor=$(echo $SERVER_DETAIL | awk '{print $2}') | |
project_id=$(echo $SERVER_DETAIL | awk '{print $4}') | |
FLAVOR_DETAIL=$(openstack flavor show $flavor -f value -c disk -c ram -c vcpus) | |
disk_size_gb=$(echo $FLAVOR_DETAIL | awk '{print $1}') | |
ram_mb=$(echo $FLAVOR_DETAIL | awk '{print $2}') | |
cpus=$(echo $FLAVOR_DETAIL | awk '{print $3}') |
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
# This config is extremely resource intensive, so we disable telemetry | |
# in order to reduce the overall memory footprint | |
# This is not required in newton | |
telemetry_args: >- | |
{% if release != 'newton' %} | |
-e {{ overcloud_templates_path }}/environments/disable-telemetry.yaml | |
{% endif %} |
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
diff --git a/lisp/erc/erc-desktop-notifications.el b/lisp/erc/erc-desktop-notifications.el | |
index 84db0f58e46d..2978f6362279 100644 | |
--- a/lisp/erc/erc-desktop-notifications.el | |
+++ b/lisp/erc/erc-desktop-notifications.el | |
@@ -52,11 +52,18 @@ | |
:group 'erc-notifications | |
:type '(choice (const :tag "Session bus" :session) string)) | |
+(defcustom erc-notifications-show-channel nil | |
+ "Show channel name in notification." |
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
git clone https://github.com/psachin/hotspotd.git -b py3 | |
pacman -S wireless_tools hostapd # for `iwconfig` |
NewerOlder