Skip to content

Instantly share code, notes, and snippets.

View ddeveloperr's full-sized avatar
👨‍💻
Doist

Kemal C. ddeveloperr

👨‍💻
Doist
View GitHub Profile
@ddeveloperr
ddeveloperr / Ubuntu_Keyboard_Shortcut.txt
Created November 29, 2018 21:44
Ubuntu 18.04 Keyboard Shortcut Every User Should Know
1. Super key: Opens Activities search (Windows key!)
2. Ctrl+Alt+T: Ubuntu terminal shortcut
3. Super+L or Ctrl+Alt+L: Locks the screen
4. Super+D or Ctrl+Alt+D: Show desktop
5. Super+A: Shows the application menu
6. Super+Tab or Alt+Tab: Switch between running applications
7. Super+Arrow keys: Snap windows
8. Super+M: Toggle notification tray
9. Super+Space: Change input keyboard (for multilingual setup)
@ddeveloperr
ddeveloperr / ssh_authentication.txt
Last active February 26, 2024 17:15
Test your ssh terminal connection with github account, (ssh authentication)
1. You mast have a public key from your mashine stored on github as SSH key here:
https://github.com/settings/ssh
How to create ssh key on unix/mac os x:
- Open terminal, go to the root typing: $ cd ~ (recommended)
- Type: ssh-keygen -t rsa -C "your@email.address"
- To secure your ssh key ststem will ask you for passphrase (recommended) but you can skip it also
- That's you have the ssh key
- Check it with: $ ls -al ~/.ssh
@ddeveloperr
ddeveloperr / namecheap-netlify-dns-configuration.txt
Last active November 1, 2023 09:42
Netlify custom domain dns configuration with domain from namecheap
Please follow these steps to point your domain name from namecheap domain to the Netlify nameservers:
- Having logged into Namecheap account, go to your Domain List -> click 'Manage' next to the domain website.com -> locate the 'Nameservers' section;
- Choose ‘Custom DNS’ in the drop-down menu;
- Fill in your custom nameservers into empty lines;
4 lines in total :
dns1.p03.nsone.net
dns2.p03.nsone.net
dns3.p03.nsone.net
@ddeveloperr
ddeveloperr / fast_push.txt
Last active October 11, 2023 21:03
How to avoid Git push: username, password in my terminal ?
Problem: Every push prompt me to input username and password.
I would like to avoid it for every push, but how to configure to avoid it?
Answer: Using SSH authentication on terminal.
1. Generate an SSH key
Linux/Mac
Open terminal to create ssh keys:
@ddeveloperr
ddeveloperr / git_push_force_upstream.md
Last active September 6, 2023 15:52
How to force “git push” to overwrite remote repo files WITH LOCAL files

You want to push your local files to remote files

git push -f <remote> <branch>
git push -f origin master

Local version has priority over the remote one!

more...

@ddeveloperr
ddeveloperr / ruby_colon.rb
Last active July 26, 2023 14:28
ruby Colon access operator explained with example
# Double Colon (::) is namespace resolution. It can also call Class Level Constants. So when you do this:
MyModule::MyClass::MySubClass
MyModule::MyClass::MySubClass::CONSTANT
# it is calling the name space of:
module MyModule
class MyClass
class MySubClass
CONSTANT = 'test'
@ddeveloperr
ddeveloperr / ORM_in_ror.txt
Created February 5, 2016 22:56
Explained ORM in Ruby on Rails?
##
* ORM is Object Relational Mapper. It means you don't have to manually call the database yourself; the ORM handles it for you.
* Ruby on Rails uses one called ActiveRecord, and it's a really good one.
* ORM allows you to do things such as:
User.find(50).contacts
Instead of manually writing a SELECT statement with JOINs, WHEREs, etc.
**********
@ddeveloperr
ddeveloperr / clone_rails_app.txt
Last active February 17, 2023 10:31
How to clone and run another user's Rails app
Below are the setups to run Ruby on Rails application on your system.
Make sure Ruby is installed on your system. Fire command prompt and run command:
ruby -v
Make sure Rails is installed
rails -v
If you see Ruby and Rails version then you are good to start, other wise Setup Ruby On Rails on Ubuntu
@ddeveloperr
ddeveloperr / shutdown_timer.md
Last active July 2, 2021 02:01
How to shutdown timer using Terminal/cmd on windows 10 and Linux & Mac OSX

Initial Steps

*1) Press Windows Key + R. *2) Enter CMD and press Enter.

Execute it

Write command in the cmd:

shutdown /s /t 3600