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 / 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 / async1.js
Created February 10, 2018 08:41
Primjer Asynchronog rada Javascripta
// Primjer Asynchronog rada Javascripta
function printHello() {
console.log(`I na kraju, primamo selame i tople pozdrave iz
printHello funkcije !`);
}
function blockFor1Sec() {
// Blokiramo JS thread, radimo bilo sta...
const tajnaAsynchronogJs =
@ddeveloperr
ddeveloperr / show-hide.md
Last active December 28, 2017 10:20
Show and hide files and folders on MAC OS X

Show and hide files and folders on MAC OS X

  1. Open Terminal found in Finder > Applications > Utilities
  2. In Terminal, paste the following:
defaults write com.apple.finder AppleShowAllFiles YES

Press return

@ddeveloperr
ddeveloperr / destroy-git.md
Last active December 22, 2017 12:03
Clear git history -- Brisanje git historije

Remove the history from

rm -rf .git

recreate the repos from the current content only

git init
git add .
git commit -m "Initial commit"
@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
@ddeveloperr
ddeveloperr / code.md
Created November 23, 2017 07:54
Turn Any Browser Window Into a Quick-Edit Notepad

Turn Any Browser Window Into a Quick-Edit Notepad

Notepads are awesome, but sometimes you need to just jot down a quick one or two line note that doesn't need to be saved. Software developer Jose Jesus Perez Aguinaga shares a simple way to do it in any browser.

All you need to do is type the following code into the browser's URL bar:

data:text/html, <html contenteditable>

Hit Enter, and start typing away directly in your browser window!

@ddeveloperr
ddeveloperr / package.json
Created September 4, 2017 08:56
Please, set "CHROME_BIN" env variable error on cloud9 package.json
{
"repository": {
"type": "git",
"url": "https://github.com/ddeveloperr/react-timer.git"
},
"name": "react-timer",
"version": "1.0.0",
"description": "React timer app",
"main": "index.js",
"scripts": {
var webpackConfig = require('./webpack.config.js');
module.exports = function (config) {
config.set({
browsers: ['Chrome'],
singleRun: true,
frameworks: ['mocha'],
files: ['app/tests/**/*.test.jsx'],
preprocessors: {
'app/tests/**/*.test.jsx': ['webpack', 'sourcemap']
@ddeveloperr
ddeveloperr / TOP NPM COMMANDS.txt
Last active July 20, 2017 22:53
TOP NPM COMMANDS
TOP NPM COMMANDS
Use NPM is very easy to use. You can use it to manage your project's dependencies and you create commands for tasks automation purposes, everything is created and managed into the package.json file. See bellow a list of the top npm commands:
npm init: displays a simple wizard to help you create and describe your new project;
npm install module_name: install a module;
npm install -g module_name: install a global module;
npm install module_name --save: install a module and add it into the package.json file, inside dependencies;
npm install module_name --save-dev: install a module and add it into the package.json file, inside devDependencies;
npm list: lists all the modules installed on the project;
npm list -g: lists all the global modules installed on the OS;
npm remove module_name: uninstall a module from the project;
@ddeveloperr
ddeveloperr / NPM TASK AUTOMATION.md
Created July 20, 2017 22:51
NPM TASK AUTOMATION

You can automate tasks using the npm command. In practice, you can only create new executable commands running npm run command_name. To declare those new commands, just create them inside the attribute scripts on package.json like this example bellow:

	"name": "my-first-node-app",
	"description": "My first node app",
	"author": "User <user@email.com>",
	"version": "1.2.3",
	"private": true,
	"scripts": {
 "start": "node app.js",