Skip to content

Instantly share code, notes, and snippets.

View mahammad's full-sized avatar
🌙
That's happening!

Məhəmməd mahammad

🌙
That's happening!
View GitHub Profile
@sayz
sayz / 0_user-accounts.md
Created August 7, 2011 11:51
linux sistem yönetimi kampında tuttuğum notlar...

##useradd komutu.

-c "açıklama"

ex: -c "müdür bey"

-s kabukı-adı

ex:

@jwage
jwage / Cartesian.php
Created April 22, 2014 20:30
PHP Cartesian Function
<?php
$attributeValues = array(
'color' => array('Red', 'White', 'Blue'),
'size' => array(1, 2, 3, 4),
'fabric' => array('Cloth', 'Silk')
);
class Cartesian
{
@rutsky
rutsky / docker_gcc-4.9.md
Created May 8, 2014 21:19
GCC 4.9 installation in Docker container
$ sudo docker pull ubuntu
$ sudo docker  run -t -i ubuntu:14.04 /bin/bash
root@856b6aa801af:/# apt-get update
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Get:1 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
@ridvanucok
ridvanucok / vergi_daireleri.sql
Created October 7, 2014 23:22
Türkiye Vergi Daireleri Veri Tabanı // Turkey Tax Departments Database
CREATE TABLE `vergi_daireleri` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`plaka` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL,
`il` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`ilce` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`daire` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
INSERT INTO vergi_daireleri (id, plaka, il, ilce, daire) VALUES (1, '01', 'ADANA', 'Merkez', '5 Ocak Vergi Dairesi Müdürlüğü');
@argon
argon / gist:127444b0f89fa796730a
Created October 15, 2014 15:45
Bluemix/Node-RED demo from IBM Watson Tech Pioneer and Developer Day. Monitors tweets and routes through Watson Q&A API, with added translation
[
{
"id": "489498c.fb76b68",
"type": "watson-question-answer",
"name": "",
"output": "top",
"corpus": "healthcare",
"x": 469,
"y": 240,
"z": "17a16c06.e85e94",
@ozgurhalilince
ozgurhalilince / Week 1
Last active August 29, 2015 14:08
PAÜ FSC C Eğitimi İçeriği
- Değişkenler
- Operatörler
- Temel Giriş-Çıkış Fonksiyonları
- Kontrol Yapıları
* if - else
* switch - case
@yasinkuyu
yasinkuyu / daterangepicker.tr.js
Created June 30, 2016 21:19
Daterangepicker Turkish
//daterangepicker.js
$(function() {
function cb(start, end) {
$('#reportrange span').html(start.format('MMMM D') + ' - ' + end.format('MMMM D'));
}
cb(moment().subtract(29, 'days'), moment());
$('#reportrange').daterangepicker({
@jakehasler
jakehasler / upload.js
Last active January 3, 2024 12:52
POST an image as `multipart/form-data`
// Function form the react-native-image-picker library
ImagePicker.showImagePicker({ title: 'Select Image' }, (response) => {
// format the image data
const image = {
uri: response.uri,
type: 'image/jpeg',
name: 'myImage' + '-' + Date.now() + '.jpg'
}
// Instantiate a FormData() object
const imgBody = new FormData();
@zubaer-ahammed
zubaer-ahammed / Reset MySQL Root Password in Mac OS.md
Last active July 23, 2024 07:29
Reset MySQL Root Password in Mac OS

Reset mysql root password in Mac OS:

First Stop MySQL:

  1. Go to: 'System Preferences' >> 'MySQL' and stop MySQL

OR,

  1. sudo /usr/local/mysql/support-files/mysql.server start
  2. sudo /usr/local/mysql/support-files/mysql.server stop
@eusonlito
eusonlito / README.md
Last active June 28, 2024 17:37
Laravel Auth and Session without database. Using a remote API as Auth and Data provider.

This is an example of a web that uses a remote API as a database wrapper.

The remote API is stateless and the web uses cookies to maintain session persistence.

The API authentication endpoint returns a TOKEN that allows the web to make each request to the API with the user authentication header.


Este es un ejemplo de web que usa una API remota como wrapper de base de datos.