Skip to content

Instantly share code, notes, and snippets.

@donfrancisco
donfrancisco / wordlecheat.md
Last active January 28, 2022 10:17
Wordle Solution #spoiler

🔥🔥🔥 World solution #spoiler 🔥🔥🔥

If you give up trying to solve the Wordle puzzle of the day there is a nice hack to extract the solution for the day.

Use the Chrome browser to complete the following steps:

  1. Navigate to “View,” click on “Developer,” and then “View Source.” You also can right-click and select “View Page Source.”
  2. In the console tab type in this code:
@donfrancisco
donfrancisco / macos-malware-error.md
Last active January 6, 2020 17:01
Catalina macOS 10.15: "Skype" can't be opened because Apple can't verify if it contains malware.

There are two tips you can use to make using development tools on MacOS Catalina with Gatekeeper a bit easier.

1) Quarantine removal

The first tip is to remove quarantine flag in a recursive manner for your intended folder:

$ sudo xattr -r -d com.apple.quarantine /path/to/folder
@donfrancisco
donfrancisco / gist:adf164d8a9f271029ec0
Created January 5, 2015 05:11
OSX Yosemite show hidden files and folders

Show Hidden:

defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder

and to hide them:

defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder

@donfrancisco
donfrancisco / gist:7345969
Created November 6, 2013 23:17
Command line shortcut: Hide or show hidden system files in OS X Mavericks

Command line shortcut: Hide or show hidden system files in OS X Mavericks

Add the following in your ~./bash_profile

# Show hidden files in Finder
alias showsystem=”defaults write com.apple.finder AppleShowAllFiles TRUE”
# Hide hidden files in Finder
alias hidesystem=”defaults write com.apple.finder AppleShowAllFiles FALSE”
@donfrancisco
donfrancisco / sprites.js
Created January 28, 2013 11:28
Source code from blog post: Node.js w/1M concurrent connections! By Aaron “Caustik” Robinson http://blog.caustik.com/2012/08/19/node-js-w1m-concurrent-connections/
// Source code from blog post: Node.js w/1M concurrent connections!
// By Aaron “Caustik” Robinson
// http://blog.caustik.com/2012/08/19/node-js-w1m-concurrent-connections/
// includes
var cluster = require('cluster');
var cpuCount = require('os').cpus().length;
var util = require("util");
var http = require("http");
@donfrancisco
donfrancisco / pingpong.rb
Created September 11, 2012 11:14
Ping pong
(1..100).each{|i|
x = ''
x += 'ping' if i%5==0
x += 'pong' if i%7==0
puts(x.empty? ? i : x);
}
@donfrancisco
donfrancisco / server.js
Created August 27, 2012 04:55 — forked from atian25/server.js
socket.io + express session
//express3.0
var express = require('express');
var app = express();
app.set('port', 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.methodOverride());
//session & cookie
@donfrancisco
donfrancisco / .gitignore
Created August 17, 2012 16:29 — forked from bergie/.gitignore
Node.js email handling examples
config.json
reading-image.png
# Google Calendar access w/ Data API
# OAuth authentication.
require "sinatra"
require "excon"
require "cgi"
require "base64"
require "openssl"
require "digest/hmac"
require "json/pure"
@donfrancisco
donfrancisco / postgresapp_induction_rails.md
Created July 20, 2012 11:49 — forked from alexagui/postgresapp_induction_rails.md
Migrate a Rails project to Postgresql with Postgres.app and Induction

I had issues installing Postgres with the instructions in this Railscast. However I was able to get postgres running on my project with http://postgresapp.com/ and http://inductionapp.com/ (Hat tip to this stackoverflow thread).

  1. Download & install Postgres.app (documentation) Make sure to install in /Applications.
  2. Update your PATH
    In my case I added the following to ~/.bash_profile
    export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
    Check that Postgres.app is being loaded
$ which psql
/Applications/Postgres.app/Contents/MacOS/bin/psql