Skip to content

Instantly share code, notes, and snippets.

nullcookies

Block or report user

Report or block nullcookies

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nullcookies
nullcookies / generate-md-files.js
Created Sep 13, 2019 — forked from DavidWells/generate-md-files.js
Generate markdown files with faker.js
View generate-md-files.js
var faker = require('faker')
var fs = require('fs')
var path = require('path')
for (var i = 0; i < 1000; i++) {
generateMD()
}
function generateMD () {
var fileName = faker.lorem.word() + '-' + faker.lorem.word()
View gist:ae2c51512c0eb228b917e59314a49b2a
// EXAMPLE QUESTIONS for the GIFT import filter
// by Paul Tsuchido Shew, January 2004.
//-----------------------------------------//
// Examples from the class description.
//-----------------------------------------//
Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
Grant is {~buried =entombed ~living} in Grant's tomb.
@nullcookies
nullcookies / icloud-cal.php
Created May 14, 2019 — forked from stuartlangridge/icloud-cal.php
PHP to fetch a calendar from iCloud with authentication and CalDAV
View icloud-cal.php
<?php
// get this data by logging into icloud.com on the calendars page and looking at the dev tools
// as per https://translate.google.com/translate?sl=de&tl=en&js=y&prev=_t&hl=de&ie=UTF-8&u=http%3A%2F%2Fnico-beuermann.de%2Fblogging%2Farchives%2F115-Zugriff-auf-iCloud-Kalender-mit-Thunderbird.html&edit-text=&act=url
$account = array(
'server' => '', // note, this will be p12 or something, not P0; see the server that iclod.com serves json from
'icloudid' => '', // the "dsid"
'appleid' => '', // your Apple ID; will be an email address
'pass' => '', // password for your Apple ID
'calid' => '' // the "pGuid"
@nullcookies
nullcookies / icloud-album-download.sh
Created Dec 21, 2018 — forked from zneak/icloud-album-download.sh
Download entire iCloud shared albums
View icloud-album-download.sh
#!/bin/bash
# requires jq
# arg 1: iCloud web album URL
# arg 2: folder to download into (optional)
function curl_post_json {
curl -sH "Content-Type: application/json" -X POST -d "@-" "$@"
}
View gist:b63098df805ea830346e093f02717e6e
<?php
$fullname = 'test1';
$username = 'test1';
$email = 'test1@gmail.com';
$password = '123456';
$xmlRpc = new XmlRPC('http://localhost:8090','/rpc/xmlrpc');
$xmlRpc->setCredentials('admin','123456');
You can’t perform that action at this time.