Skip to content

Instantly share code, notes, and snippets.

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

var img = document.querySelector("div.product-briefing.flex.card._2cRTS4 > div._30iQ1- > div.flex.flex-column > div._1eNVDM > div > div._3ZDC1p > div");
found = img.style["background-image"].match(/"(.*)\"/g);
window.open(found[0].replace(/["']/g, ""),"_blank");
@jonathanablanida
jonathanablanida / L2tp-Over-IPsec-VPN-On-Debian
Created December 6, 2016 08:28
L2tp over IPsec VPN On Debian
## --- Install Openswan ---
apt-get install openswan=1:2.6.37-3
## --- If you ever see in your syslog ---
ipsec__plutorun: 003 "/var/lib/openswan/ipsec.secrets.inc" line 1: error loading RSA private key file
root@:/etc/ipsec.d/private# openssl rsa -in vpn.example.com.key -outform pem -out vpn.example.com.key.new
## --- Modify the /etc/ipsec.conf ---
## --- Change SERVER.IP ---
vi /etc/ipsec.conf
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Auth;
use Illuminate\Auth\EloquentUserProvider;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
Traceback (most recent call last):
File "/var/www/balllive365.com/liveview/viewing.py", line 51, in <module>
schedule.run_pending()
File "/usr/local/lib/python2.7/dist-packages/schedule/__init__.py", line 367, in run_pending
default_scheduler.run_pending()
File "/usr/local/lib/python2.7/dist-packages/schedule/__init__.py", line 64, in run_pending
self._run_job(job)
File "/usr/local/lib/python2.7/dist-packages/schedule/__init__.py", line 96, in _run_job
ret = job.run()
File "/usr/local/lib/python2.7/dist-packages/schedule/__init__.py", line 293, in run
#Jae Redirect
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
# This will redirect you from http://www.example.com/username.php to http://www.example.com/username externally
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L]
# This will redirect you from http://www.example.com/username to http://www.example.com/username internally
Generating autoload files
{"error":{"type":"ErrorException","message":"Invalid argument supplied for foreach()","file":"\/Users\/Jae\/test\/vendor\/ollieread\/multiauth\/src\/Ollieread\/Multiauth\/MultiManager.php","line":15}}{"error":{"type":"ErrorException","message":"Invalid argument supplied for foreach()","file":"\/Users\/Jae\/test\/vendor\/ollieread\/multiauth\/src\/Ollieread\/Multiauth\/MultiManager.php","line":15}}{"error":{"type":"ErrorException","message":"Invalid argument supplied for foreach()","file":"\/Users\/Jae\/test\/vendor\/ollieread\/multiauth\/src\/Ollieread\/Multiauth\/MultiManager.php","line":15}}%

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
/*
DESCRIPTION
-----------
Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum:
http://groups.google.com/group/nodejs/browse_thread/thread/e2b071b6a70a6eb1/086ec7fcb5036699
CODE REPOSITORY
---------------
https://gist.github.com/806605
<div ng-repeat="img in item.images">
<li>
<img ng-src="{{img}}">
</li>
</div>