Skip to content

Instantly share code, notes, and snippets.

Works & stays in office

Akın Özgen akinozgen

Works & stays in office
Block or report user

Report or block akinozgen

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
apt-get update
apt-get upgrade
apt-get install sudo git build-essential htop apt-transport-https ca-certificates curl gnupg2 software-properties-common # python-software-properties
# apt-get install openjdk-7-jre
# user
useradd -s /bin/bash -m -d /home/akinozgen -c "akinozgen" -g staff akinozgen
gpasswd -a akinozgen sudo
echo "AllowGroups sudo" >> /etc/ssh/sshd_config
passwd akinozgen
akinozgen / .htaccess
Last active Mar 20, 2018 — forked from alch/.htaccess
Symfony full .htaccess file
View .htaccess
# Based on
# Use the front controller as index file. It serves as fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# startpage (path "/") because otherwise Apache will apply the rewritting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html,
DirectoryIndex index.php
#DirectoryIndex app_dev.php
akinozgen / gist:e97ba2e2e663939ac4d31137db5d93f1
Created Apr 29, 2017 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
View gist:e97ba2e2e663939ac4d31137db5d93f1
// API access key from Google API's Console
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
You can’t perform that action at this time.