Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
#!/usr/bin/env python | |
# encoding: utf-8 | |
import tweepy #https://github.com/tweepy/tweepy | |
import csv | |
#Twitter API credentials | |
consumer_key = "" | |
consumer_secret = "" | |
access_key = "" |
#! /usr/bin/env python | |
# A small script for cdp devices discovery | |
import sys | |
import pcapy | |
import socket | |
from dpkt import ethernet | |
from dpkt import cdp | |
from docopt import docopt |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
* MCrypt API available online: | |
* http://linux.die.net/man/3/mcrypt | |
*/ | |
#include <mcrypt.h> |
<?php | |
$phpExcel = new PHPExcel(); | |
$phpExcel->getActiveSheet()->setTitle("My Sheet"); | |
$phpExcel->setActiveSheetIndex(0); | |
header("Content-Type: application/vnd.ms-excel"); | |
header("Content-Disposition: attachment; filename=\"filename.xls\""); | |
header("Cache-Control: max-age=0"); | |
$objWriter = PHPExcel_IOFactory::createWriter($phpExcel, "Excel5"); |
Note The extension Imagick is now included in Ondrej's PPA. All you need to do now is
$ sudo apt-get install php-imagick
, and you're done. I'll keep the guide here because a lot of it is still true for other extensions
======
I've installed PHP7 via Ondrej's PPA. He maintains these PPA's on his free time, consider donating
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"fmt" | |
) | |
func EncryptAESCFB(dst, src, key, iv []byte) error { | |
aesBlockEncrypter, err := aes.NewCipher([]byte(key)) |
<?php | |
// Used code from the following sources: | |
// https://gist.github.com/styxit/e34d4c6f8cb23d55f5af#file-synology-pushover-php | |
// http://pastebin.com/iHAFAHGq | |
// Thanks to: https://styxit.com/2014/05/10/synology-pushover.html | |
// Only allow request made by localhost? |
#!/bin/bash | |
################################ | |
# OS X Install ISO Creater # | |
# # | |
# Author: shela # | |
################################ | |
####################################### | |
# Declarations |
<?xml version="1.0" encoding="utf-8"?> | |
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<files> | |
<file path="C:\ProgramData\chocolatey\lib\setuserfta\setuserfta.nupkg" checksum="89CC7893D63C1EBB7C197C96F92DB706" /> | |
<file path="C:\ProgramData\chocolatey\lib\setuserfta\setuserfta.nuspec" checksum="89839B7401F25F411F211FDE27A68D46" /> | |
<file path="C:\ProgramData\chocolatey\lib\setuserfta\SetUserFTA.zip.txt" checksum="800F22077EB541F743EBAE8C49647854" /> | |
<file path="C:\ProgramData\chocolatey\lib\setuserfta\tools\chocolateyInstall.ps1" checksum="E47D4E57864F5C479884AD819CDBE6EA" /> | |
<file path="C:\ProgramData\chocolatey\lib\setuserfta\tools\EULA.txt" checksum="E8BB21C92A8C13EFA572DC3B2AC5F538" /> | |
<file path="C:\ProgramData\chocolatey\lib\setuserfta\tools\SetUserFTA\EULA.txt" checksum="E8BB21C92A8C13EFA572DC3B2AC5F538" /> | |
<file path="C:\ProgramData\chocolatey\lib\setuserfta\tools\SetUserFTA\SetUserFTA - the kolbicz blog.url" |