Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
// Sun.swift | |
// Created by Marco Arment on 1/17/21 | |
// | |
// Solar-math functions are directly translated from the NOAA Solar Calculator: | |
// https://www.esrl.noaa.gov/gmd/grad/solcalc/ | |
// | |
// This is free and unencumbered software released into the public domain. | |
// | |
// Anyone is free to copy, modify, publish, use, compile, sell, or | |
// distribute this software, either in source code form or as a compiled |
#!/bin/bash | |
################# | |
# Usage: # | |
################# | |
# Create an unprotected copy of XLSX file with suffix "-unprotected.xlsx". | |
# The following command produces `my-workbook-unprotected.xlsx` | |
# $ ./unprotect-xlsx.sh my-workbook.xlsx | |
# This is accomplished by removing from all workbook sheets the `sheetProtection` and `protectedRanges` XML elements. |
py.test test_sample.py --collect-only # collects information test suite | |
py.test test_sample.py -v # outputs verbose messages | |
py.test -q test_sample.py # omit filename output | |
python -m pytest -q test_sample.py # calling pytest through python | |
py.test --markers # show available markers |
adb push ~/android-sdk-linux/ndk-bundle/prebuilt/android-<arch>/gdbserver/gdbserver /data/local/tmp
adb shell "chmod 777 /data/local/tmp/gdbserver"
adb shell "ls -l /data/local/tmp/gdbserver"
adb forward tcp:1337 tcp:1337
To remove a submodule you need to:
Work Manager | |
WorkManager is an API that makes it easy to schedule deferrable, asynchronous tasks that are expected to run even if the app exits or the device restarts. The WorkManager API is a suitable and recommended replacement for all previous Android background scheduling APIs | |
Device support from 14 -22 it will work on alarm manager with broadcast to process scheduling and GCM NetworkManager | |
Device above 23 + all uses JobSchedular | |
usecases : | |
Dynamic Feature modules and clean architecture | |
Backup chat like whatsapp after a hours or 1 in a day | |
update news in any news app - phone in charge or connect with constraint and executes the task and impl |
** Command to list all infected files:
grep -lr --include=*.php "eval(base64_decode" /path/to/webroot
grep -lr --include=*.php "eval" .
grep -lr --include=*.php "base64" .
grep -lr --include=*.php "eval(base64_decode" /path/to/webroot | xargs sed -i.bak 's/<?php eval(base64_decode[^;]*;/<?php\n/g'
bl_info = { | |
"name" : "Gamepad Control", | |
"author" : "István Donkó", | |
"description" : "Control the blender viewport using a gamepad", | |
"blender" : (2, 80, 1), | |
# "location" : "View3D", | |
"category" : "Generic" | |
} | |
import bpy |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Attila Incze <http://atimb.me> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |