Skip to content

Instantly share code, notes, and snippets.

@assoft
assoft / getTff
Last active November 26, 2018 13:09
TFF Fikstür (PHP)
public function getTff(){
$ch = curl_init();
$hc = "YahooSeeker-Testing/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; Yahoo! Search - Web Search)";
curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com');
curl_setopt($ch, CURLOPT_URL, 'http://www.tff.org/default.aspx?pageID=198');
curl_setopt($ch, CURLOPT_USERAGENT, $hc);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content = iconv("ISO-8859-9", "UTF-8", curl_exec($ch));
curl_close($ch);
@assoft
assoft / install_zsh.sh
Created April 16, 2017 03:06
ZSH Vagrant
#!/bin/bash
homestead up
homestead ssh
apt-get update
#Additional Packages
apt-get install -y zsh
@assoft
assoft / troubleshooting.md
Created February 5, 2017 00:59 — forked from adamwathan/troubleshooting.md
Troubleshooting Valet on macOS Sierra

Troubleshooting Valet on Sierra

Common Problems

Problem: I just see "It works!"

Apache is running on port 80 and interfering with Valet.

  1. Stop Apache: sudo /usr/sbin/apachectl stop
  2. Restart Valet: valet restart