Skip to content

Instantly share code, notes, and snippets.

View zek's full-sized avatar

Talha Zekeriya Durmuş zek

View GitHub Profile
@JeffreyWay
JeffreyWay / laravel.js
Last active April 6, 2024 20:12
Want to send a DELETE request when outside of a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. (Requires jQuery, but doesn't have to.) To use, import script, and create a link with the `data-method="DELETE"` attribute.
/*
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
*/
(function() {
@yahyaerturan
yahyaerturan / tr_countries.sql
Last active March 11, 2022 09:57
Türkçe Ülkeler MySQL Tablosu
CREATE TABLE IF NOT EXISTS `countries_list` (
`id_country` tinyint(3) unsigned NOT NULL auto_increment,
`country_name` varchar(30) collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id_country`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=207 ;
--
-- Dumping data for table `countries_list`
--
@tejastank
tejastank / fix.wkhtmltopdf.odoo.snippetbucket.erp.open.source.seo.sh
Last active August 14, 2022 18:03
Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display. # https:/…
# https://www.snippetbucket.com/
# ODOO ERP Django PHP Android AngularJS implementation and customization.
# Most Simple and Quick Way:
sudo su
cd /opt
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin/
@avataru
avataru / EloquentCheatSheet.md
Last active July 11, 2024 09:23
Eloquent relationships cheat sheet