Skip to content

Instantly share code, notes, and snippets.

View huseyin's full-sized avatar

Hüseyin Tekinaslan huseyin

View GitHub Profile
@huseyin
huseyin / wordpress_com_nginx_proxy_to_subpath.md
Created November 20, 2020 18:56 — forked from bzamecnik/wordpress_com_nginx_proxy_to_subpath.md
Nginx proxy for Wordpress.com on custom domain with subpath.
require: rubocop-performance
Layout/HashAlignment:
Enabled: true
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineLength:
Max: 120
Layout/SpaceAroundMethodCallOperator:
Enabled: true
/vagrant/vendor/bundle/ruby/2.7.0/gems/i18n-1.7.0/lib/i18n.rb:179: warning: The called method `translate' is defined here [189/2725]
/vagrant/vendor/bundle/ruby/2.7.0/gems/actionview-6.0.2.1/lib/action_view/helpers/translation_helper.rb:92: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/vagrant/vendor/bundle/ruby/2.7.0/gems/i18n-1.7.0/lib/i18n.rb:179: warning: The called method `translate' is defined here
/vagrant/vendor/bundle/ruby/2.7.0/gems/actionview-6.0.2.1/lib/action_view/view_paths.rb:11: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/vagrant/vendor/bundle/ruby/2.7.0/gems/actionview-6.0.2.1/lib/action_view/lookup_context.rb:140: warning: The called method `template_exists?' is defined here
/vagrant/vendor/bundle/ruby/2.7.0/gems/actio
#include <stdio.h>
#include <stdlib.h>
#define LENGTH 10
int main(void) {
int numberList[LENGTH] = {4, 7, 3, 2, 8, 0, 1, 5, 9, 6};
int i, number;
int found = 0;
#include <stdio.h>
#include <stdlib.h>
#define LENGTH 10
int main(void) {
int unordered[LENGTH] = {8, 2, 4, 9, 3, 7, 1, 0, 5, 6};
int swap, i, j;
for (i=0; i < LENGTH; i++) {
DEBUG subprocess: stdout: CPU use: 1.04 seconds
DEBUG subprocess: stdout: BlkIO use: 32.00 KiB
DEBUG subprocess: stdout: Memory use: 30.04 MiB
DEBUG subprocess: stdout: KMem use: 8.47 MiB
DEBUG subprocess: stdout: Link: vethPA4XGA
TX bytes: 806 bytes
RX bytes: 7.15 KiB
Total bytes: 7.94 KiB
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG subprocess: stdout: CPU use: 1.04 seconds
DEBUG subprocess: stdout: BlkIO use: 32.00 KiB
DEBUG subprocess: stdout: Memory use: 30.04 MiB
DEBUG subprocess: stdout: KMem use: 8.47 MiB
DEBUG subprocess: stdout: Link: vethPA4XGA
TX bytes: 806 bytes
RX bytes: 7.15 KiB
Total bytes: 7.94 KiB
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
@huseyin
huseyin / tdk.rb
Last active November 26, 2018 12:10 — forked from roktas/tdk.yml
# frozen_string_literal: true
module TurkishSupport
ABBREVIATIONS = {
'age.' => 'age.',
'agm.' => 'agm.',
'agy.' => 'agy.',
'alb.' => 'Alb.',
'alm.' => 'Alm.',
'anat.' => 'anat.',
#include <stdio.h>
#include <stdlib.h>
int main(void) {
if (0) { printf("Hello world: 0\n"); }
if (1) { printf("Hello world: 1\n"); }
if (2) { printf("Hello world: 2\n"); }
return EXIT_SUCCESS;
}
@huseyin
huseyin / logger.sh
Created January 1, 2018 14:32
Bash logger
#!/usr/bin/env bash
Logger() {
local LogLevel
Entry() {
log.debug() {
LogLevel=debug
format.print "$@"
}