You like good application screenshots? Use a few lines of imagemagick to translate your ugly Windows, Linux or whatever application screenshots into Mac style (but plain and platform agnostic) ones.
#!/bin/bash
# usage:
#
# macify source dest| package main | |
| import ( | |
| "github.com/prometheus/client_golang/prometheus" | |
| "github.com/prometheus/client_golang/prometheus/promhttp" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "time" |
| <script type="text/javascript"> | |
| function setCookie(cname,cvalue,exdays) { | |
| var d = new Date(); | |
| d.setTime(d.getTime() + (exdays*24*60*60*1000)); | |
| var expires = "expires=" + d.toGMTString(); | |
| document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=None; Secure"; | |
| } | |
| function getCookie(cname) { |
| #!/bin/sh | |
| # ref: https://piunikaweb.com/2019/03/25/samsung-galaxy-s10-remove-bundled-bloatwares-without-root/ | |
| # install the following app to see the packages names: | |
| # use the following command to generate the unistall command, for easy copy and paste: | |
| # adb shell 'pm list packages' | sed -e 's/^/adb uninstall --user 0 /' | grep FILTER_HERE | sort | |
| #things to install if removing keyboard | |
| # F-Droid | |
| # APK Analyser |
| #!/bin/bash | |
| # sudo !! | |
| echo " | |
| __ | |
| ,-~¨^ ^¨-, _, | |
| / / ;^-._...,¨/ | |
| / / / / |
| { | |
| "content_scripts": [ | |
| { | |
| "matches": ["http://*/*", "https://*/*"], | |
| "js": ["inject.js"], | |
| "all_frames": true | |
| } | |
| ], | |
| "web_accessible_resources": [ | |
| "content.js" |
| #!/bin/bash | |
| compose_file_path=$1 | |
| project_name=$2 | |
| backup_path=$3 | |
| function backup_volume { | |
| volume_name=$1 | |
| backup_destination=$2 |
You like good application screenshots? Use a few lines of imagemagick to translate your ugly Windows, Linux or whatever application screenshots into Mac style (but plain and platform agnostic) ones.
#!/bin/bash
# usage:
#
# macify source dest| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |