Skip to content

Instantly share code, notes, and snippets.

View giuliomagnifico's full-sized avatar

giuliomagnifico

  • Italy
View GitHub Profile
@guycalledseven
guycalledseven / manual-uninstall-wireshark.sh
Created March 6, 2017 12:10
Manually remove Wireshark leftovers MacOS
sudo rm -r /Applications/Wireshark.app
sudo rm -r /Library/Wireshark
sudo rm /Library/StartupItems/ChmodBPF
sudo rm /Library/LaunchDaemons/org.wireshark.ChmodBPF.plist
sudo rm /Library/Application\ Support/Wireshark/ChmodBPF/ChmodBF
sudo rm /Library/Application\ Support/Wireshark/ChmodBPF/org.wireshark.ChmodBPF.plist
sudo dscl . -delete /Groups/access_bpf
@mzeryck
mzeryck / mz_invisible_widget.js
Last active May 7, 2024 02:23
A Scriptable script that creates "invisible" widget backgrounds based on your iOS wallpaper, and then either uses them as a Scriptable widget background or exports to your camera roll.
/*
MIT License
Copyright (c) 2022 Maxwell Zeryck
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW
@malesfth
malesfth / widget_pi-hole.js
Last active December 13, 2023 01:56
iOS Scriptable Widget for Pi-hole
// Parameters:
// {"url":"https://pihole","token": "x"}
// Optional key in parameters: "theme": system|light|dark
let piholeURL = "" // set the URL here for debug
let apiToken = "" // set the api token here for debug
let wTheme = "" // set the theme for debug
if (config.runsInWidget) {
const widgetParams = (args.widgetParameter != null ? JSON.parse(args.widgetParameter) : null)
@Saudumm
Saudumm / News Widget.js
Last active September 2, 2023 00:23
iOS News Widget for Scriptable (RSS Feeds and WordPress websites
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: file-alt;
/********************************************
* *
* NEWS WIDGET (WORDPRESS AND RSS) *
* *
* v1.1.3 - made by @saudumm *
* https://twitter.com/saudumm *
* *
@rudotriton
rudotriton / scriptable-calendar-widget.md
Last active August 8, 2023 14:35
Customizable iOS Calendar widget in Scriptable

Scriptable Calendar Widget

scriptable calendar

For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.

@petermcd
petermcd / logins.csv
Created February 10, 2019 12:14
A listy of credentials tried when I opened an SSH port to the internet for a week. in the format request ID, username, password, time/date of attempt, request coun try of origin, unique id representing the IP making the connection.
We can't make this file beautiful and searchable because it's too large.
id,username,password,when,country,host_id
21,admin,7ujMko0admin,2019-02-02 10:39:27,China,0
22,pi,jdd,2019-02-02 10:40:09,United Kingdom,1
23,pi,kkk,2019-02-02 10:40:11,United Kingdom,1
24,pi,lk,2019-02-02 10:40:13,United Kingdom,1
25,pi,kk',2019-02-02 10:40:16,United Kingdom,1
26,pi,kjj,2019-02-02 10:40:18,United Kingdom,1
27,pi,fds,2019-02-02 10:42:55,United Kingdom,1
28,pi,eee,2019-02-02 10:42:56,United Kingdom,1
29,pi,fds,2019-02-02 10:42:57,United Kingdom,1
@saiteja09
saiteja09 / StockWidget.js
Last active July 13, 2023 03:47
Stock Widget for iOS using Scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: book; share-sheet-inputs: plain-text;
// Stock Ticker Widget
let stocksInfo = await getStockData()
let widget = await createWidget()
if (config.runsInWidget) {
// The script runs inside a widget, so we pass our instance of ListWidget to be shown inside the widget on the Home Screen.
Script.setWidget(widget)
} else {
@fasmat
fasmat / wg_client.sh
Created February 13, 2021 16:09
A short shell script to manage wireguard clients
#!/bin/bash
show_usage() {
echo "Usage: $0 [list|add|show|remove] [client_name]"
echo " list lists all registered peers"
echo " add adds a new client with the given name to wireguard"
echo " show shows the wireguard configuration for the client with the given name"
echo " remove removes a client from wireguard"
}
@ecampidoglio
ecampidoglio / cpustatus.sh
Created February 21, 2013 23:42
A Bash script that prints the current state of the CPU on a Raspberry Pi. It displays variables like temperature, voltage and speed.
#!/bin/bash
# cpustatus
#
# Prints the current state of the CPU like temperature, voltage and speed.
# The temperature is reported in degrees Celsius (C) while
# the CPU speed is calculated in megahertz (MHz).
function convert_to_MHz {
let value=$1/1000
echo "$value"
@planecore
planecore / Coronavirus.js
Last active November 11, 2022 16:27
Coronavirus Scriptable Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" to a value from https://coronavirus-19-api.herokuapp.com/countries/
const country = "Israel"
const url = `https://coronavirus-19-api.herokuapp.com/countries/${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {