Skip to content

Instantly share code, notes, and snippets.

View mehmetaydogduu's full-sized avatar
🏍️
Code, Deploy, Win Fast

Mehmet Aydogdu mehmetaydogduu

🏍️
Code, Deploy, Win Fast
View GitHub Profile
@mehmetaydogduu
mehmetaydogduu / f.yaml
Last active August 7, 2023 15:56
infinite-calls.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: infinite-calls
labels:
app: infinite-calls
spec:
replicas: 1
selector:
matchLabels:
@mehmetaydogduu
mehmetaydogduu / _nav.html.erb
Created March 11, 2023 16:02
Rails Turbo Active Link Class
<div data-controller="turbo-active-link" data-turbo-active-link-active-class="bg-gray-300 hover:bg-gray-300" data-turbo-frame="main">
<a href="/a" data-turbo-active-link-target="link">link A</a>
<a href="/b" data-turbo-active-link-target="link">link B</a>
</div
@mehmetaydogduu
mehmetaydogduu / cloud-init.yaml
Created November 14, 2022 15:18
rancher-ubuntu-22.04-jammy-cloud-init
#cloud-config
network:
config: disabled
users:
- name: ubuntu
shell: /bin/bash
groups: wheel
sudo: ['ALL=(ALL) NOPASSWD:ALL']
ssh_authorized_keys:
- $publickey1
require 'async'
require 'active_support/all'
def sleepy(id)
Async do |task|
while true
task.sleep 0.5
puts "I'm #{id}!"
end
end
end
@mehmetaydogduu
mehmetaydogduu / Note.txt
Created July 21, 2020 15:38
file drop input
Useful when you want to direct upload to s3
@mehmetaydogduu
mehmetaydogduu / filepond.coffee
Created July 20, 2020 17:48
filepond config
#= require filepond/dist/filepond
#= require filepond-plugin-file-validate-type/dist/filepond-plugin-file-validate-type
#= require filepond-plugin-file-validate-size/dist/filepond-plugin-file-validate-size
#= require filepond-plugin-image-validate-size/dist/filepond-plugin-image-validate-size
#= require filepond-plugin-image-exif-orientation/dist/filepond-plugin-image-exif-orientation
#= require filepond-plugin-image-transform/dist/filepond-plugin-image-transform
#= require filepond-plugin-image-preview/dist/filepond-plugin-image-preview
#= require filepond-plugin-image-resize/dist/filepond-plugin-image-resize
document.addEventListener 'FilePond:loaded', (e) ->
console.log 'FilePond ready for use', e.detail
@mehmetaydogduu
mehmetaydogduu / dropzone_config.coffee
Last active July 20, 2020 17:49
For using dropzone with rails
Dropzone.autoDiscover = false
new_photo_dropzone = new Dropzone('div#new_photo_dropzone', url: '/file/post')
Dropzone.options.new_photo_dropzone =
paramName: 'file'
maxFilesize: 2
Dropzone.options.myAwesomeDropzone =
init: ->
@on 'processing', (file) ->
@options.url = '/some-other-url'
uploadMultiple: false
lshw -class network
copy ens7 mac 5a:00:02:a2:a7:06
nano /etc/netplan/10-ens7.yaml
paste and change mac and ip address
network:
version: 2
@mehmetaydogduu
mehmetaydogduu / # gazebo9 - 2018-11-05_12-04-41.txt
Created November 5, 2018 10:39
gazebo9 (osrf/simulation/gazebo9) on macOS 10.14 - Homebrew build logs
Homebrew build logs for osrf/simulation/gazebo9 on macOS 10.14
Build date: 2018-11-05 12:04:41
@mehmetaydogduu
mehmetaydogduu / # gazebo9 - 2018-10-31_18-13-57.txt
Created October 31, 2018 16:08
gazebo9 (osrf/simulation/gazebo9) on macOS 10.14 - Homebrew build logs
Homebrew build logs for osrf/simulation/gazebo9 on macOS 10.14
Build date: 2018-10-31 18:13:57