Skip to content

Instantly share code, notes, and snippets.

View b4lisong's full-sized avatar

JL b4lisong

View GitHub Profile
@b4lisong
b4lisong / gist:36e7b06bc1cdb872d656c5ba4db24b3e
Created November 10, 2024 22:21 — forked from posquit0/gist:93200f7ca1ad3d0c943c
GDB with Python 2.7 in Ubuntu
apt-get install python2.7-dev python2.7
apt-get build-dep gdb
apt-get source gdb
cd gdb-*
sed -i -E "s|python3|/usr/bin/python2.7|" debian/rules
dpkg-buildpackage -uc -us -j8
dpkg-install ../*.deb
@b4lisong
b4lisong / CalendarSync.js
Last active July 14, 2024 21:14 — forked from ojwoodford/CalendarSync.js
Sync events from a personal Google calendar to a work Google calendar
// Source: https://gist.github.com/ojwoodford/69b72a5bcded0f11ae6c58138a55debb
// Be sure to enable "Google Calendar API" in the "Services" menu on the left
// Set up a timed trigger: https://gist.github.com/ojwoodford/69b72a5bcded0f11ae6c58138a55debb?permalink_comment_id=4997932#gistcomment-4997932
function SyncMyCal() {
var options = {
'targetEventTitle': "Busy (sync'd event)", // What event title do you want ported events to have
'daysahead': 60, // How many days ahead do you want to sync events over
'ignorealldayevents': true, // Do you want to ignore all day events in your "from" calendars
'ignorethesedays': [0, 6], // Are there days of the week you don't want to sync? 0 = Sunday
'maxhoursbetweenruns': 1, // How many hours between scheduled runs of the calendar sync (you need to set these up)