Skip to content

Instantly share code, notes, and snippets.

"ga:userType": "User Type",
"ga:visitorType": "User Type",
"ga:sessionCount": "Count of Sessions",
"ga:visitCount": "Count of Sessions",
"ga:daysSinceLastSession": "Days Since Last Session",
"ga:userDefinedValue": "User Defined Value",
"ga:userBucket": "User Bucket",
"ga:users": "Users",
"ga:visitors": "Users",
"ga:newUsers": "New Users",
"uiName": "User Type",
"uiName": "User Type",
"uiName": "Count of Sessions",
"uiName": "Count of Sessions",
"uiName": "Days Since Last Session",
"uiName": "User Defined Value",
"uiName": "User Bucket",
"uiName": "Users",
"uiName": "Users",
"uiName": "New Users",
"id": "ga:userType",
"id": "ga:visitorType",
"id": "ga:sessionCount",
"id": "ga:visitCount",
"id": "ga:daysSinceLastSession",
"id": "ga:userDefinedValue",
"id": "ga:userBucket",
"id": "ga:users",
"id": "ga:visitors",
"id": "ga:newUsers",
@sunlee-newyork
sunlee-newyork / commands.md
Last active June 25, 2017 18:38
List of commands for Linux/Mac

Linux

all open ports: netstat -ntlp | grep LISTEN

Mac

git diff lines: git diff --stat `git hash-object -t tree /dev/null` | tail -1

@sunlee-newyork
sunlee-newyork / twitter_login.php
Created February 21, 2014 18:48
50Tweets // Twitter OAuth APP
<?php
require("twitteroauth/twitteroauth.php");
session_start();
// The TwitterOAuth instance
$twitteroauth = new TwitterOAuth('Qsa1aT0cuqarOH45nJp9Jw', 'wivzv9Up61ot08dUbZYf9d22RTEYJBYdEJWbPwM');
// Request authentication tokens and provide redirect URL
$request_token = $twitteroauth->getRequestToken('http://localhost/twitter_oauth.php');
@sunlee-newyork
sunlee-newyork / dashboardheader.html
Created November 16, 2013 21:35
Website NONAME / DASHBOARDHEADER
<html>
<head>
<style>
#headerbox {
width:838px;
height:50px;
margin-left:auto;
margin-right:auto;
margin-top:20px;
}
@sunlee-newyork
sunlee-newyork / header.php
Created November 16, 2013 21:35
Website NONAME / HEADER
<html>
<head>
<title>HEADER</title>
</head>
<body>
</body>
</html>
<?php
@sunlee-newyork
sunlee-newyork / newcards.php
Created November 16, 2013 21:34
Website NONAME / NEWCARDS
<?php
error_reporting(E_ERROR);
session_start();
if (! isset($_SESSION["user"])) {
header("Location: /IDEA/login/index.php");
}
if ($_GET["cmd"] == "logout") {
session_unset();