tar -zcvf backup_etc.tar.gz /etc/
mysqldump -u root -p --all-databases | gzip > backup_mysql-$(date '+%Y-%m-%d_%H-%M-%S' ).sql.gz
#!/bin/bash | |
# Script to get all the PPA installed on a system | |
for APT in `find /etc/apt/ -name \*.list`; do | |
grep -Po "(?<=^deb\s).*?(?=#|$)" $APT | while read ENTRY ; do | |
HOST=`echo $ENTRY | cut -d/ -f3` | |
USER=`echo $ENTRY | cut -d/ -f4` | |
PPA=`echo $ENTRY | cut -d/ -f5` | |
#echo sudo apt-add-repository ppa:$USER/$PPA | |
if [ "ppa.launchpad.net" = "$HOST" ]; then |
# See https://clangformat.com/ | |
# http://clang-format.me/ | |
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
--- | |
Language: Cpp | |
# The extra indent or outdent of access modifiers, e.g. public: | |
AccessModifierOffset: -4 | |
# If true, horizontally aligns arguments after an open bracket. |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# 2014, By konstin (http://github/konstin) | |
# 2015, Modified by leyyin | |
# | |
# Removes all trailing whitespaces and replaces all tabs with four spaces, the | |
# files with a given extension in a recursively searched directory. | |
# It can also count the number of code lines excluding comments and blank | |
# lines. |
[/Script/Engine.InputSettings] | |
-AxisConfig=(AxisKeyName="Gamepad_LeftX",AxisProperties=(DeadZone=0.25,Exponent=1.f,Sensitivity=1.f)) | |
-AxisConfig=(AxisKeyName="Gamepad_LeftY",AxisProperties=(DeadZone=0.25,Exponent=1.f,Sensitivity=1.f)) | |
-AxisConfig=(AxisKeyName="Gamepad_RightX",AxisProperties=(DeadZone=0.25,Exponent=1.f,Sensitivity=1.f)) | |
-AxisConfig=(AxisKeyName="Gamepad_RightY",AxisProperties=(DeadZone=0.25,Exponent=1.f,Sensitivity=1.f)) | |
-AxisConfig=(AxisKeyName="MouseX",AxisProperties=(DeadZone=0.f,Exponent=1.f,Sensitivity=0.07f)) | |
-AxisConfig=(AxisKeyName="MouseY",AxisProperties=(DeadZone=0.f,Exponent=1.f,Sensitivity=0.07f)) | |
+AxisConfig=(AxisKeyName="MouseWheelAxis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False)) | |
+AxisConfig=(AxisKeyName="Gamepad_LeftTriggerAxis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False)) |
#!/usr/bin/env python | |
import sys | |
import os | |
import re | |
SCRIPT_NAME = os.path.basename(__file__) | |
def help(): | |
print(f"Usage: {SCRIPT_NAME} <brightness>") | |
sys.exit(4) |