Skip to content

Instantly share code, notes, and snippets.

View dziban303's full-sized avatar
💭
🐱‍🐉

Dziban303 dziban303

💭
🐱‍🐉
View GitHub Profile
@dziban303
dziban303 / wolf.sh
Created July 4, 2022 19:40 — forked from josheinstein/wolf.sh
Simple Wolfram Alpha queries from the Mac terminal. The XML parsing is incredibly basic (it just looks complicated because of the work needed to indent the lines to make it look good) so I haven't really tested it with any other results yet.
url="http://api.wolframalpha.com/v2/query"
appid="YOUR APP ID" # get one at https://developer.wolframalpha.com/portal/apisignup.html
query="$@"
value="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$query")"
echo "Computing: $query"
curl -s -L -G -d "input=$value&appid=$appid&format=plaintext" $url >/tmp/wolfram-alpha.xml
xsltproc ~/Scripts/wolf.xslt /tmp/wolfram-alpha.xml
@dziban303
dziban303 / nuthrottle.sh
Last active May 23, 2022 00:10
Raspberry Pi throttling checker with temperature and voltage measurements. Voltage colors will be accurate for Pi3B+/Zero 2W, maybe Zero, not Pi4
#!/bin/bash
#Flag Bits
UNDERVOLTED=0x1
CAPPED=0x2
THROTTLED=0x4
SOFT_TEMPLIMIT=0x8
HAS_UNDERVOLTED=0x10000
HAS_CAPPED=0x20000
HAS_THROTTLED=0x40000
@dziban303
dziban303 / config.conf
Created December 11, 2021 01:41
Neofetch config
# Neofetch config file
# https://github.com/dylanaraps/neofetch
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
into line_break
info title
info underline
@dziban303
dziban303 / goes16-rtlsdr.md
Created May 10, 2021 18:25 — forked from lxe/goes16-rtlsdr.md
Receive GOES-16 and GOES-17 Images with a Raspberry Pi and RTL-SDR dongle
@dziban303
dziban303 / DateTimeSig.js
Last active November 30, 2022 17:56 — forked from pbaruns/DateTime
Insert Date Time
/**
* The onOpen function runs automatically when the Google Docs document is
* opened. Use it to add custom menus to Google Docs that allow the user to run
* custom scripts. For more information, please consult the following two
* resources.
*
* Extending Google Docs developer guide:
* https://developers.google.com/apps-script/guides/docs
*
* Document service reference documentation:
@dziban303
dziban303 / features.json
Created July 12, 2020 05:56 — forked from riverar/features.json
Quick n' dirty hack to enable Your Phone remoting, notification and other experiments
{
"AATes123": true,
"AcrylicAndBackground": true,
"AudioInfoSync": true,
"BatteryIndicator": true,
"CallingDiscoveryTimeout": 30,
"CallingEnableOnARM": true,
"CallingFromMessages": true,
"CallingLabelInProd": true,
"CallingNode": true,
@dziban303
dziban303 / ytgif.sh
Last active December 8, 2021 18:43 — forked from hubgit/youtube-gif.sh
Convert a section of a YouTube video to an animated GIF
### Keybase proof
I hereby claim:
* I am dziban303 on github.
* I am dziban303 (https://keybase.io/dziban303) on keybase.
* I have a public key ASApFFmZx6WwiDDkrdivHN2y7GSvoBfAkZLPttSwnSa28Ao
To claim this, I am signing this object:
@dziban303
dziban303 / mirc.ini
Created October 6, 2018 10:12 — forked from liamja/mirc.ini
Monokai colour scheme for mIRC.
[colors]
n5=Monokai,0,4,4,4,2,3,4,3,6,6,3,1,2,2,5,1,5,4,2,4,0,0,1,0,1,14,5,0,0,1
[palettes]
n5=2238503,15923448,15718758,3072678,7481081,12767183,2070525,26832,1632504,57344,94740,16776960,16515072,16711935,8355711,13816530
@dziban303
dziban303 / AddBashToContextMenu.reg
Last active December 7, 2017 12:25 — forked from kevin-d-omara/AddUbuntuBashToContextMenu.reg
Add Bash to the context menu for Windows 10.
Windows Registry Editor Version 5.00
; * Adds Bash to the extended context menu (shift + right-click).
; * If you prefer the regular context menu (right-click),
; delete both lines containing <"Extended"="">.
; Context menu for right-clicking the background of a directory or the desktop.
[HKEY_CLASSES_ROOT\Directory\Background\shell\Bash]
@="Open Bash window here"
"Extended"=""