Skip to content

Instantly share code, notes, and snippets.

View unviva's full-sized avatar

Ozgur Arslan unviva

View GitHub Profile
@unviva
unviva / 0_reuse_code.js
Created April 20, 2017 09:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@unviva
unviva / fb.class.php
Last active April 21, 2017 23:48
Facebook Graph API Implementation
<?php
/* Facebook Graph API Implementation
* @author Ozgur Arslan
* github.com/blueorange589
* http://stackoverflow.com/users/7838027/Оzgur
*
* To use;
* 1. set configuration values
* 2. call public methods defined in this class
*/
@unviva
unviva / vertical-center.js
Last active April 22, 2017 08:24
Vertically and horizontally align a div within window
// .well.login-inbox {margin:0px auto; }
function mathVert(el) {
var windowHeight = $(window).height();
var elheight = $(el).innerHeight();
var elmath = (windowHeight / 2) - (elheight / 2);
return elmath;
}
function varticalCenterStuff() {
$('.login-box').css('margin-top', mathVert('.login-box'));
@unviva
unviva / ApacheHTTPSConfig.md
Created September 9, 2019 12:28 — forked from nrollr/ApacheHTTPSConfig.md
Enable SSL in Apache for 'localhost' (OSX, El Capitan)

Enable SSL in Apache (OSX)

The following will guide you through the process of enabling SSL on a Apache webserver

  • The instructions have been verified with OSX El Capitan (10.11.2) running Apache 2.4.16
  • The instructions assume you already have a basic Apache configuration enabled on OSX, if this is not the case feel free to consult Gist: "Enable Apache HTTP server (OSX)"

Apache SSL Configuration

Create a directory within /etc/apache2/ using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys:

sudo apt-get remove nginx nginx-common
sudo apt-get purge nginx nginx-common
sudo rm -rf /etc/nginx
sudo apt update -y
sudo apt upgrade -y
sudo apt-get autoremove
# This will remove PHP version. Type your php version before run below command. I am using php7.2
sudo apt-get purge `dpkg -l | grep php7.2| awk '{print $2}' |tr "\n" " "`
sudo apt-get purge php7.*
If your time does not permit the close supervision of your project then i am here for your help related with LAMP or LEMP Stack and others.
Contact Me For Engaged Your Works:
Telegram: https://t.me/LinuxGun
WhatsApp: https://wa.link/5ow7oz
#!/bin/bash
# This will remove Apache
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin
{"name":"Profile","settings":"{\"settings\":\"{\\n \\\"workbench.colorTheme\\\": \\\"Monokai Dark Soda\\\",\\n \\\"diffEditor.ignoreTrimWhitespace\\\": true,\\n \\\"workbench.colorCustomizations\\\": {\\n \\\"[Abyss]\\\": {\\n },\\n \\\"[Monokai Dark Soda]\\\": {\\n }\\n },\\n \\\"editor.tokenColorCustomizations\\\": {\\n \\\"[Abyss]\\\": {\\n \\\"variables\\\": \\\"#FFffff\\\"\\n },\\n \\\"[Monokai Dark Soda]\\\": {\\n \\\"variables\\\": \\\"#0084ff\\\",\\n \\\"textMateRules\\\": [\\n {\\n \\\"scope\\\": \\\"keyword.operator\\\",\\n \\\"settings\\\": {\\n \\\"foreground\\\": \\\"#FFFFFF\\\"\\n }\\n },\\n {\\n \\\"scope\\\":\\\"meta.tag\\\",\\n \\\"settings\\\": {\\n \\\"foreground\\\": \\\"#ffc4d3\\\",\\n }\\n