This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.
SSH authentication agent does not automatically start when using it from a remote server. This results in the following error message:
$ git pull
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
$ ssh-add ~/my-ssh-key.pem
Could not open a connection to your authentication agent.
To fix it requires manually starting ssh-agent:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1 Import to react Component | |
```import useFullWidthChecker from '../../../../../hooks/helper/useFullWidthChecker';``` | |
Step 2 Call the Function | |
``` const { characterCounter } = useFullWidthChecker();``` | |
Step 3 Run Function | |
``` console.log(characterCounter(:TEXT COUNTER HERRE ));``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> BRANCH MAIN : CSS AND BOOSTRAP ONLY | |
> BRANCH CRUD : FXING JS ISSUE USING HOTWIRE AND STIMULUS WITH CRUS SAMPLE | |
https://github.com/choyno/rails_7_esbuild_boostrap | |
> RUN LOCAL | |
bin/dev | |
rails db:migrate | |
rails db:seed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Implementation in ES6 | |
function pagination(c, m) { | |
var current = c, | |
last = m, | |
delta = 2, | |
left = current - delta, | |
right = current + delta + 1, | |
range = [], | |
rangeWithDots = [], | |
l; |
First of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:
sudo lsof | grep LISTEN
If you do happen to have any process with something like this *:http (LISTEN)
, you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)
ps <pid of that process>
If you don't see MAMP, you are in good hands, I have just the thing for you:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ruby | |
include HTTParty | |
fields = [] | |
fields << {"Name" => "rocksoftware22", "Component" => "precise4"} | |
fields << {"Name" => "rocksoftware", "Component" => "precise5"} | |
params_hash ={} | |
params_hash[:Sources] = fields |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.6.0 | |
RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list | |
RUN apt-get update -qq && apt-get install -y nodejs | |
ENV APP_PATH=/wfh-tracker | |
RUN mkdir $APP_PATH | |
WORKDIR $APP_PATH | |
COPY Gemfile "${APP_PATH}/Gemfile" | |
COPY Gemfile.lock "${APP_PATH}/Gemfile.lock" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""" FOR NGINX """" | |
Create new file for register as service on Amazon Linux2 | |
file path: /usr/lib/systemd/system/nginx.service | |
----------------------- code start | |
[Unit] | |
Description=The nginx HTTP and reverse proxy server | |
After=network.target remote-fs.target nss-lookup.target | |
[Service] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.photographerstechsupport.com/tutorials/adding-swap-space-ec2-amazon-linux-instance/ | |
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-memory-swap-file/ | |
Here are the steps I took to enable swap space | |
sudo dd if=/dev/zero of=/swapfile bs=1M count=512 | |
sudo mkswap /swapfile | |
sudo chmod 600 /swapfile |
NewerOlder