Skip to content

Instantly share code, notes, and snippets.

View roybotbot's full-sized avatar
🤖

Roy Natian roybotbot

🤖
View GitHub Profile
@wallentx
wallentx / caveget
Last active February 12, 2024 17:51
If a caveman had to make curl, or wget
#!/usr/bin/env bash
function cavemanget() {
local URL=$1
if [ "$URL" = "" ]; then
echo "A caveman version of wget"
echo "Usage: $0 \"URL\""
return 1
fi
@dkackman
dkackman / chia
Last active July 3, 2023 03:00
chia systemd service unit defintion
#!/bin/bash
#
# if no parameters are supplied this results in:
# . ~/chia-blochain/activate
# chia start farmer
#
if [ -z "$1" ]
then
@wroman
wroman / calendarblock
Last active July 31, 2023 21:04
Auto Block Time on Primary Google Calendar from Events on Secondary Calendar - Instructions: https://medium.com/@willroman/auto-block-time-on-your-work-google-calendar-for-your-personal-events-2a752ae91dab
function sync() {
var id="XXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from
var secondaryCal=CalendarApp.getCalendarById(id);
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+30); // how many days in advance to monitor and block off time
var secondaryEvents=secondaryCal.getEvents(today,enddate);
@LewisLebentz
LewisLebentz / chrome-latest-ea.py
Last active December 12, 2021 05:52
Python script to get the latest version number of Chrome from Google and compare it to the version of Chrome installed on the local Mac. Then updates an Extension Attribute in Jamf Pro with either 'Latest' or 'Old'.
#!/usr/bin/python
import json
import urllib2
import os.path
import plistlib
url = 'http://omahaproxy.appspot.com/all.json'
resp = urllib2.urlopen(url)
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 17, 2024 23:43
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname