Below is a code for Minifiles Git integration code snippet.
Just insert the code below into this function in your Minifiles config:
config = function()
-- add the git code here
end
#!/system/bin/sh | |
# i use https://github.com/steinwurf/adb-join-wifi for auto connect to wifi | |
# tanks | |
# wait for boot to finish completely | |
while [[ `getprop sys.boot_completed` -ne 1 ]] | |
do | |
sleep 1 | |
done |
from odoo import models, fields, api | |
from json_field import JsonField | |
class Person(models.Model): | |
_name = 'example.person' | |
_description = 'Person with json details' | |
details = JsonField() # a json object represented as dict / list / python primitives |
FROM php:8-cli-alpine | |
# @see: @see: https://stackoverflow.com/a/65969295 | |
RUN apk --no-cache add binutils curl \ | |
&& GLIBC_VER=$(curl -s https://api.github.com/repos/sgerrand/alpine-pkg-glibc/releases/latest | grep tag_name | cut -d : -f 2 | tr -d \",' ') \ | |
&& curl -sL https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub \ | |
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-${GLIBC_VER}.apk \ | |
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk \ | |
&& apk add --no-cache \ | |
glibc-${GLIBC_VER}.apk \ |
adb shell settings put global setup_wizard_has_run 1 | |
adb shell settings put secure user_setup_complete 1 | |
adb shell settings put global device_provisioned 1 | |
adb shell mv /system/system/priv-app/SamsungExperienceService/SamsungExperienceServic | |
e.apk /system/system/priv-app/SamsungExperienceService/SamsungExperienceService | |
.apk.bkp | |
adb shell mv /system/system/priv-app/SetupWizard/SetupWizard.apk /system/system/priv-app/SetupWizard |
#!/usr/bin/env bash | |
# netplan2NM.sh | |
# Ubuntu server 20.04 Change from netplan to NetworkManager for all interfaces | |
echo 'Changing netplan to NetowrkManager on all interfaces' | |
# backup existing yaml file | |
cd /etc/netplan | |
cp 01-netcfg.yaml 01-netcfg.yaml.BAK |
#!/bin/bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
target="${1:-/opt/sublime_merge/sublime_merge}" | |
check_sha() { | |
local sha_valid |
printf '\00\00\00' | dd of=sublime_text bs=1 seek=290764 count=3 conv=notrunc | |
https://www.google.com/search?q=%22EA7E-890007%22 |
outputDir=/tmp/screenshots/framed | |
mkdir -p ${outputDir} | |
########## | |
# iPhone # | |
########## | |
padPath=/tmp/iphone-pad.png | |
convert -size 1125x185 xc:#e65562 ${padPath} | |
for filePath in $(find /tmp/screenshots/ | grep iPhone | grep -v framed) ; do |
#!/bin/bash | |
# Sway WM screen + audio recorder | |
# original author: Aaron D. Fields | |
# blog post: https://blog.spirotot.com/2017/08/21/a-dirty-hack-to-enable-acceptable-sway-wm-screen-recording/ | |
# currently error 503 :-( | |
# | |
# Updated version: ernierasta | |
# Repo: https://gist.github.com/ernierasta | |
# | |
# Changelog: |