Skip to content

Instantly share code, notes, and snippets.

View danielandersson's full-sized avatar
👨‍🎨
Being creative!

Daniel Andersson danielandersson

👨‍🎨
Being creative!
View GitHub Profile
@distresslife
distresslife / instagram_download.php
Last active August 29, 2015 13:56
串接 instagram api,給 user_name 後 download 所有該 user 的 public images
<?php
function get_instagram_uid($user_name,$access_token){
$q_array = array(
'q' => strtolower($user_name),
'access_token' => $access_token,
);
$url = 'https://api.instagram.com/v1/users/search?' . http_build_query($q_array);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
Pet (for Mage, Hunter, and Warlock):
dmKTcaGivLgfr5uivZcj0TqL2fsPHjshtPSmG6zc10GY1a02aY3ayCkvNdLSoKGdIuSqKOhQkIjQkQUisQnkO(OQqgjrvojrvTsuXlvLuZuvuUPQa7ef(PQQgksYsvv4PunvqDvvfTvvr6RQs5TQsYDvLO9k9xbzWqoSqwSQeEmrMmuDzfBgv9zrmAu0PvYRvfQzlWTbz3i(nLgUQklNWZf10jDDk2orLVRkvJxvqNhLA)QC3kCDO641XlCDdrfRKKru46sMSAHQZBis6YsKr)qIrncYHuHzo0qWRwxmjllbM9VPoKfFcQ)W)885rB4DWXXBy7yXaWybCpDV8CXWQZ(ppFE0gMlaaaacalDheywGbdai4YZfdy9fEDQgToKfFccXUH5celflEBheR4DGBBXGkpxGy1FFHRmldqX71fwnsxwszaooToXablwjjJixgB1zoReMAddcilaPG2bXcmRnSnaGkpxS46QyLKmIcxxz)BQlzYQfQUKjRwONBer6YsQZBis6YsKr)4COdDOd92e9yAmIOmTIjzzj5x9LQr)(sAftYYsOfYIpbuWh9tYsL993OFPFOJZHo0HoKyuJGCOukMECgcEDjtwTqHyUWN6sMSAHQlzYQfQoVHiPllrg9JZHo0Ho0I)qYoevbrShbCuWq0WIiOHcYp7mTVtKr)q0pKYCihsmQrqoKkmZX5qh6qhAi4hNHGxFKBiAUo1pLrO)1Lmz1cfsz)BQpYneTA9aBeEHRBYtiPGOCUVOUWgmfUoKjqxfUA16sbr5CHRdzc0vHR)aAEe1LY6VrZhp7)tEDPSU8(Kbm1FukRwTA1656I4uW1LRm2WstR2c
Player:
dSdOcaGEPQ0UauBtQ4NOcZMqpJu9yk6UsLQBd0HjPDsk2RYUrz)QmkuLHjPFt0PLYqrfnyKgoGCqPk6ue4yQQZHk9Cq(lP0xjr1YrSivrpv0YuLwNQqtuQsMkLmziMU
@christianchristensen
christianchristensen / twitterfindname.go
Last active May 30, 2016 11:36
Check all 2 letter twitter usernames for availability
package twitterfindname
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strings"
)
一些MAC软件的破解方法
  1. 找到对应版本的命令
  2. 打开终端(terminal) 或者 iterm2
  3. 关闭软件
  4. 执行命令
  5. 重新打开软件
Sublime Text

| 版本 | 命令 |

@fasterthanlime
fasterthanlime / state-of-emergency-in-france.md
Last active March 26, 2021 21:29
What the state of emergency means in France, where it's been declared following the Paris attacks
@MehmetKursat
MehmetKursat / Sublime Text 3 Crack Tutorial.md
Last active March 31, 2021 11:23
Sublime Text 3 Crack Tutorial - 3112 3111 3110 3148

Win x64

Version Offset Offset Change
3093 Win x64 0xF0A8B 85 -> 3B
3094 Win x64 0xF0A8B 85 -> 3B
3095 Win x64 0xF0BDF 85 -> 3B
3100 Win x64 0xE888D F8 -> E0
3101 Win x64 0xE7721 F8 -> E0
3102 Win x64 0xE849D F8 -> E0
@Gronis
Gronis / README.md
Last active October 16, 2021 21:13
Use Swedish zipcodes to get access to municipality, county, city and gps-coordinates.

Download from geonames (updated regularly)

curl https://download.geonames.org/export/zip/SE.zip > SE.zip
unzip SE.zip

Creating a redis Module in 15 lines of code!

A quick guide to write a very very simple "ECHO" style module to redis and load it. It's not really useful of course, but the idea is to illustrate how little boilerplate it takes.

Step 1: open your favorite editor and write/paste the following code in a file called module.c

#include "redismodule.h"
/* ECHO <string> - Echo back a string sent from the client */
int EchoCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
@rubinovitz
rubinovitz / instagram_mine.py
Created August 27, 2013 00:00
A python script for downloading all of the instagram photos of a certain hashtag I wrote for a friend in 20 minutes (forgive sloppiness). Warning: you're only allowed 30 API requests an hour. Requires your own access token set as environment variable "access_token".
from datetime import datetime
import urllib2
import urllib
import json
import os
def ajaxRequest(url=None):
"""
Makes an ajax get request.
url - endpoint(string)