diff --git a/.github/workflows/.main.yml.. b/.github/workflows/.main.yml.. new file mode 100644 index 0000000..ed6427d --- /dev/null +++ b/.github/workflows/.main.yml.. @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the 2.0 branch + push: + branches: [ 2.0 ] + pull_request: + branches: [ 2.0 ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3f4d3b7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the 2.0 branch + push: + branches: [ 5.0 ] + pull_request: + branches: [ 5.0 ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git "a/.github/workflows/main.yml 5.0\360\237\232\200" "b/.github/workflows/main.yml 5.0\360\237\232\200" new file mode 100644 index 0000000..3f4d3b7 --- /dev/null +++ "b/.github/workflows/main.yml 5.0\360\237\232\200" @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the 2.0 branch + push: + branches: [ 5.0 ] + pull_request: + branches: [ 5.0 ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/.github/workflows/main.yml. b/.github/workflows/main.yml. new file mode 100644 index 0000000..ed6427d --- /dev/null +++ b/.github/workflows/main.yml. @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the 2.0 branch + push: + branches: [ 2.0 ] + pull_request: + branches: [ 2.0 ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/.github/workflows/main.yml.. b/.github/workflows/main.yml.. new file mode 100644 index 0000000..ed6427d --- /dev/null +++ b/.github/workflows/main.yml.. @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the 2.0 branch + push: + branches: [ 2.0 ] + pull_request: + branches: [ 2.0 ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git "a/.github/workflows/main.yml\360\237\232\200" "b/.github/workflows/main.yml\360\237\232\200" new file mode 100644 index 0000000..ed6427d --- /dev/null +++ "b/.github/workflows/main.yml\360\237\232\200" @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the 2.0 branch + push: + branches: [ 2.0 ] + pull_request: + branches: [ 2.0 ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/Check for stolen vaccines b/Check for stolen vaccines new file mode 100644 index 0000000..fedf05e --- /dev/null +++ b/Check for stolen vaccines @@ -0,0 +1,49 @@ +
+ +

August 10 2019 Update

+ +

Protect yourself and your credit cards from Internet Scams

+ +

by Conrad LeBeau

+ +

The Internet is a vast reservoir of information, unprecedented in the history of mankind. There are three groups of people who use the Internet. The first group are honest, sharing, good, selfless and usually non-profit. One example of a selfless site is Wikipedia, a non-profit org. They provide a virtual encyclopedia of free information on a wide range of topics. Wikipedia is supported by small donations and accepts no advertising. While I find the writings at Wikipedia are 90 to 99% in agreement with my own research on a range of topics, I have also found some misleading articles that I blame on "experts" who use the good reputation of Wikipedia to spread misinformation.

+ +

An example being an article at Wikipedia on vaccines that supports the view that all vaccines are safe. There are legitimate concerns about the safety of some vaccines, but the pro vaxxers are so adamant that science supports them, that they have closed their minds, and they are angry at doctors who publish research that challenges the safety of vaccines. However, on the subject of money, Wikipedia states that they have found no law in existence today that defines what a "dollar" is, and on that point, I certainly agree with them. ref: my book on "Money Creation"

+ +

The second group is the largest, and they seek to monetize sales by using search engines to keep track of what people are interested in and present them with an endless array of pop-up ads. The most common search engine to do this is Google. Google makes billions of dollars targeting audiences with advertising of products and services based on Internet search engine results.

+ +

Purchases made at ebay, paypal and amazon.com are protected with refund policies or money back guarantees. If in doubt about any product or the company that distributes it, always check with the Better Business Bureau where the manufactuer is located. + +

The third group of Internet users are downright evil. Some are even part of the dark web where stolen credit card numbers, bank account numbers, social security numbers, and birth dates are bought and sold. This group is criminal, self serving, deceptive and manipulative. Also, readers who have a few bucks to invest are often victims of get rich quick schemes especially in the investment newsletter category. One reason why people are tricked into making big purchases, automatic renewals and longterm contracts is that they either don't read or understand the "Terms and Conditions" of the sale. The other problem is "short term money back guarantees" - an example being such as 30 days or less from the date of purchase.

+ +

Consider that if you make an investment to buy a book or an investment newsletter and you are told you have a money back guarantee but you don't read the fine print in the "Terms and Conditions" of the purchase that is limited to 30 days.

+ +

What is wrong with a 30 day money back Guarantee?

+ +

What is wrong is that when you make an Internet purchase with a debit or credit card, your monthly statement usually takes about one month (30 days) to arrive. If you are not satisfied with the book, newsletter or product you purchased and you seek to cancel the purchase and get your money back, guess what? By the time you make this decision, your 30 days is up. You probably did not read the terms and conditions of the sale. Second, it takes about 30 days just to get your bank statement.Then you have to remember which credit card you used while your guarantee is already expired.

+ +

Why you should never use a debit card or your bank account to make a purchase on the Internet

+ +

The problem with using a debit card is that a thief or dishonest marketer who gets your debit card number can steal thousands of dollars out of your checking or savings account with illegal purchases before you catch them. Then, who will help you recover your money once it is stolen? Call the police? The police will probably tell you to call the FBI or to see a lawyer. Do you really need to make your life so complicated and difficult? I know of people who have lost not just hundreds but thousands of dollars by using a debit card or by using their bank account number on the Internet.

+ +

Why a credit card or paypal are the only monetary instruments you should use on the Internet.

+ +

For most credit card companies, if you question an unauthorized purchase and offer a plausible explanation that fraud was involved in the use of your credit card, they will remove the charges from your account. Make sure you return the product to the sender with delivery confirmation and require a signature as proof of delivery, or, if you did not receive the product at all, the company must offer proof of delivery.

+ +

Your safest choice - a prepaid credit card for Internet purchases

+ +

If you want to be really safe, pay a hundred dollars, more or less, for a prepaid credit card from your local drug store or check cashing place. In the event someone scams you, you limit the damage to the amount you placed on the prepaid credit card. Your checking or savings account that could have a substantial amount of money in it is not affected. It is better to be safe than sorry.

+ +

Two more bits of Advice - Never link your savings account to your checking account to cover overdrafts

+ +

The reason is obvious. If someone steals your checking account, they can keep writing checks and making purchases as long as money flows from your savings into your checking to cover the overdrafts, and if that someone is on the other side of the earth, what are you going to do about it? So never link your accounts together. While banks make billions of dollars each year with overdraft fees, thieves steal billions of dollars more with stolen credit cards, debit cards and bank account numbers.

+ +

Also, if your have several thousand dollars on deposit, you might want to keep your checking account in one bank and the savings account in a second bank, and, of course, DO NOT ask for overdraft protection linking the two.

+ +

Newsletter Investment Teasers and Scams - always check with the BBB (Better Business Bureau before buying)

+ +

Recently, one publishing group called Stansberry research came to my attention after I received an email ad from them where they made one unsubstantiated claim after another. A Google search on the Internet with the terms "stansberry research" and "Better Business Bureau" yielded several results. The search found links to the hometown of Stansberry research that stated: This business is not BBB accredited." Another article claimed that there were over 70 complaints filed with the BBB in Baltimore MD about Stansberry Research. One article about the founder, Porter Stansberry, reported on his legal problems with the SEC. The article raises several questions about his marketing practices. As the time worn phrase "Caveat Emptor" indicates - Let the Buyer Beware.

+ +

Your purchases will provide a priceless source of self-help health information, and it also helps funds our efforts to reach more people. Online Product page for Books and San Damiano Spirit Water (aka Miraculous Water). Credit card orders may now be placed by phone at 414-231-9817 (Hours- 10 am to noon and 1 pm to 4 pm Mon thru Thurs CST) Thank you for your support! Conrad

+ +
diff --git a/Crime and punishment js b/Crime and punishment js new file mode 100644 index 0000000..6b08a84 --- /dev/null +++ b/Crime and punishment js @@ -0,0 +1,21 @@ +am fairly new to node.js and i am wondering how to (or even if) i can read and write to a JSON file. I am trying to create an accessible punishment history. Ideally i would want to be able to create something along the lines of this: + +{ +"punishments": { + "users": { + "": { + "punishment-1567346": { + "punishment-id": "1567346", + "punishment-type": "mute", + "punishment-reason": "" + }, + "punishment-1567347": { + "punishment-id": "1567347", + "punishment-type": "ban", + "punishment-reason": "" + } + } + } + } +} +Then i would have a way to access the formatted punishment history. I genuinely have no clue where to start. diff --git a/Lost to inventory lead to deaths b/Lost to inventory lead to deaths new file mode 100644 index 0000000..1417e9a --- /dev/null +++ b/Lost to inventory lead to deaths @@ -0,0 +1,2 @@ +Drug Theft and Loss in the United States: Ill Inventory - DrugAbuse.com +Nov 3, 2020 — Specifically: prescription opiates, also labeled “other opioids,” multiple-cause-of-death code T40.2; benzodiazepines, code T42.4; other synthetic diff --git a/Restraining order b/Restraining order new file mode 100644 index 0000000..a3fe4dd --- /dev/null +++ b/Restraining order @@ -0,0 +1,97 @@ + +Grow your practice +Sign in +Legal Advice Criminal defense Advice +LEGAL GUIDE +Written by attorney Jennifer Johnston Applegate +Nov 29, 2010 +Would A Restraining Order Help Me? +Child custody +Domestic violence and child custody +Family court and child custody cases +Show 21 more +Overview +Many people think a restraining order is issued to stop something bad from happening. It isn't. Rather, a restraining order is to stop something bad from happening AGAIN. What does that mean? It helps to look at the difference between a law and a restraining order. A law protects everyone from bad acts done by anyone. A restraining order protects a specific person, the petitioner, from another specific person, the respondent. A judge may issue one of these emergency orders if a person has already violated the laws once or more, and there's good reason to fear it will happen again. +What Court Will I Be In? +Sonoma County deals with different types of law in different courts. There is a criminal court, a family court, a civil court, a drug court, a traffic court, etc. What many people don't know is that one incident can lead to cases in a couple of different courts. For example, suppose that Richard suspects his girlfriend Paula of cheating on him. When she gets home from work, he attacks her with a baseball bat. Paula is able to get to her car, and Richard smashes the windshield before she drives away. This incident can lead to a criminal case against Richard in the criminal court, a domestic violence case in the family court, and a small claims action for damage to the car in the small claims court. If you remember the O.J. Simpson case, he was tried for murder in the criminal court and found not guilty. But he was also charged with wrongful death in a civil court, found guilty, and ordered to pay restitution. +Types of Restraining Orders +(1) A domestic violence restraining order protects someone from an individual with whom they have had a very close relationship. It can be a family member, a husband/wife, a girlfriend/boyfriend, or even an ex. (2) A civil harassment restraining order protects someone from an individual when there hasn't been that close, intimate relationship. This could be a co-worker, a neighbor, or the new romantic partner of an ex. (3) Elder Abuse restraining orders can only be obtained by people aged 65 or over. These people are considered to be vulnerable by the courts. (4) Domestic Adult Abuse restraining orders can be obtained by people who have physical or mental conditions that prevent them from carrying out normal activities or protecting their rights. As with senior citizens, the court recognizes these people may be particularly vulnerable to abuse. The following sections are generally applicable, although DV cases may be handled somewhat differently. +Process, Part One +PREPARATION. (1) The party seeking protection fills out forms that generally includes a request for the order, a declaration, a notice of hearing, and a restraining order after hearing. (2) You will have to give the other party notice of what you're doing; a judge will rarely issue a restraining order if no notice was given. You can give notice by mail. (3) These papers are filed with the court. (4) The other party may, but does not have to, submit an answer to your request. If so, a copy must be sent to you. +Process, Part Two +ORDERS AND/OR HEARING. The judge will review your request and choose one of three options: (a) a hearing date is set in your matter AND you get a temporary order that lasts until then; or (b) a hearing date is set in your matter, but you do not get a temporary restraining order; or (c) you get neither a temporary restraining order nor a hearing. (This last option is extremely rare and means that the judge found your request to be completely without merit.) If you are given a hearing date, it will generally be within 1-2 weeks. With a notice of hearing and/or a temporary order, you must have the opposing party SERVED with the document(s). The order won't go into effect until the Sheriff's department has indicated service has occurred. +Process, Part Three +FIRST COURT DATE. Here are some of the issues that may crop up on the day of your hearing. (1) NO SERVICE. If your opposing party has not been served, you may ask for more time to achieve service. (2) NO APPEARANCE. If your opposing party was served, but does not appear, you may ask for a default judgment -- i.e., you get your restraining order on the spot. (3) NORMAL PROCEEDINGS. If service was achieved and everyone shows up, you will be ordered by the court to meet with a mediator. Usually, the mediator speaks to the petitioner first, then the respondent. The mediator will try to craft a solution that both parties agree to and that will remove the need for a trial. If mediation does not work, the parties simply tell the judge, who then schedules the matter for a "short cause" trial in the near future. If there was a temporary order, it is usually extended until the next court date. +Process, Part Four +SHORT-CAUSE CALENDAR. When you return to court, you will be ordered by the court to meet with a mediator -- again. Even if it didn't work the last time, you are required to step outside the courtroom and speak to the mediator again. If the two parties are still unable to reach an agreement, the judge will set the case for trial that very day. It may be right then and there, or it may be that afternoon. In either case, you must be ready for trial! Have all your evidence in hand; have your witnesses present; have an interpreter, if necessary; and be ready to pay for necessaries such as the cost of a court reporter. After both parties have presented their evidence, the judge will give his or her decision. The prevailing party may also request that the other side pay for costs and/or reasonable attorney's fees. If an order is granted, both parties stand by to receive copies of it, and it is effective immediately. Most orders last up to three years. +What Constitutes Grounds for A Restraining Order? +As explained in the Overview, a restraining order is to stop something bad from happening AGAIN. The judge will be asking, "what did this person do or say to make you afraid?" Usually, the grounds for a restraining order are (a) a physical attack or (b) a serious, credible threat of death or great bodily harm. Your petition will be more persuasive if the incident was SERIOUS and RECENT. If someone punched you in the stomach two months ago, and you are just now asking for protection, the delay makes it seem like you are not really afraid. If there was no attack or death threat, or if it was some time ago, the petitioner may have to show an ongoing pattern of behavior. Think of it as building a wall: you can do it with a few really large rocks, but if you don't have any big rocks, you'll have to have many, many pebbles. +What ISN'T Grounds for A Restraining Order? +Not all bad behavior is illegal, and the courts don't exist to arbitrate personal disputes. That's what marriage counselors, family therapists, friends and spiritual advisers are good for. If a person tells a boyfriend or girlfriend, "You are stupid and ugly; I hate you; I wish you were dead," that is NOT ILLEGAL. It is appalling behavior and grounds for re-considering that relationship. But it's not grounds for a restraining order. Words aren't treated the same as a physical assault, and "I wish you were dead" isn't a death threat. There is no restraining order to prevent against hurt feelings. Similarly, people generally have the right to go where they please. If someone drives down the petitioner's street, that is not "stalking." The law looks at that street as a public thoroughfare that anyone and everyone has access to; it wasn't "harassment" just to walk down your street. +What Can A Restraining Order Do (And Not Do)? +A restraining order may impose any or all of the following conditions on the respondent: refrain from physical abuse, stalking, and harassment; refrain from any kind of contact with petitioner, including mail or e-mail or texts; stay away from petitioner's home, job, car, and/or pets; move out from the petitioner's house; turn in or sell guns or firearms; refrain from third-party contact; not sell or get rid of marital property. A domestic violence order can also give petitioner emergency child custody. There are other orders that may be issued, as well; these are the most common. A restraining order will NOT be issued such that it prevents the respondent from getting to his/her own car, house, job, or place of worship, and it will not keep the respondent from generally going about in public. If an order is in effect and the two parties happen to bump into each other in a public place, whoever got there first will stay, and whoever got there second must leave. +Can I Do This Myself? +Many people request restraining orders "in pro per," which means they are self-represented. However, the greater the risk, the more important it is to understand the process and complete your papers correctly. A Legal Document Assistant can fill out the forms for you, but cannot tell you which forms you need and cannot give you legal advice. If you are income-eligible, Legal Aid of Sonoma County may be able to assist you free of charge, but cannot guarantee in-court representation. Often, hiring an experienced attorney is worth the investment when your safety is at risk. +Additional resources provided by the author +CALDA: California Association of Legal Document Assistants +Legal Aid of Sonoma County +Legal Forms -- Sonoma County Courts +Rate this guide + +About the author +Jennifer Johnston Applegate +Jennifer Johnston Applegate + 10 reviews +Family Law Attorney in Santa Rosa, CA + +Free Q&A with lawyers +in your area +Zip code +Recommended articles about Criminal defense +What Is an Order of Protection? +Scott D. Stewart, attorney +Why COVID Whistleblowers Need Extra Legal Protection +Jennifer Jackson Spencer, attorney +Child Support Arrears +Carina Castaneda, attorney +How a mediator can help parents resolve conflict around a move +Keith D. Becker, attorney +Can’t find what you’re looking for? + +Post a free question on our public forum. + +- or - + +Search for lawyers by reviews and ratings. + +Legal Guides +Small Claim: Small Claims Court vs. District... +Sheriff Department: Albuquerque Police... +Domestic Violence Order: Temporary and Final... +Court Date: COURT APPEARANCEU.S. 101: What You... +Public Place: READ THIU.S. - If you are charged... +Child Custody Order: SUMMERTIME CHILD CUSTODY +Child Custody Order: Understanding Child... +Civil Harassment: Tips for Filing a Civil... +Civil Harassment: Types of Restraining Orders... +Emergency Child Custody: Getting Emergency... +Child Custody: Modifying Your Parenting Plan... +Restraining Order Hearing: Domestic Violence... +New Romantic Partner: What Do I Wear to Court? +Legal Aid: Why You Should Always Seek... +Marriage Counselor: What is a Covenant Marriage... +About Avvo +Careers +Review your lawyer +Blog +For lawyers +Recently Answered Questions +Terms of use +Privacy policy +Do not sell my personal information +Support +Community guidelines +Avvo Rating explained +Sitemap +Follow us onFacebook Twitter Linkedin Youtube +© Avvo Inc. All Rights Reserved 2021 diff --git a/Right Law b/Right Law new file mode 100644 index 0000000..f53f8a0 --- /dev/null +++ b/Right Law @@ -0,0 +1,2 @@ +OCR Resolves Religious Discrimination Complaint after Maryland Hospital ... +Jul 21, 2020 — Patients in non-COVID units may freely exercise their religion by receiving clergy visitation at any reasonable time, as long as the visit does not diff --git "a/Ruby\360\237\232\200" "b/Ruby\360\237\232\200" new file mode 100644 index 0000000..e077d5b --- /dev/null +++ "b/Ruby\360\237\232\200" @@ -0,0 +1,20 @@ +#!/usr/bin/env ruby + +ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development" +ENV["NODE_ENV"] ||= "development" + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require "bundler/setup" + +require "webpacker" +require "webpacker/dev_server_runner" + +APP_ROOT = File.expand_path("..", __dir__) +Dir.chdir(APP_ROOT) do + Webpacker::DevServerRunner.run(ARGV) +end +© 2021 GitHub, Inc. +© 2021 GitHub, Inc. diff --git "a/SECURITY.md\360\237\232\200" "b/SECURITY.md\360\237\232\200" new file mode 100644 index 0000000..58b8aef --- /dev/null +++ "b/SECURITY.md\360\237\232\200" @@ -0,0 +1,22 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 15.1.x | :white_check_mark: | +| 15.0.x | :x: | +| 14.0.x | :white_check_mark: | +| < 14.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. +🚀 diff --git "a/Upgrade to 5.0 Deployment \360\237\232\200" "b/Upgrade to 5.0 Deployment \360\237\232\200" new file mode 100644 index 0000000..a410785 --- /dev/null +++ "b/Upgrade to 5.0 Deployment \360\237\232\200" @@ -0,0 +1,58 @@ +It’s been too long since I posted anything on Medium, I feel like I’ve been slacking. Lately I’ve been hitting the grind trying to get my foot in the door somewhere, while at the same time sticking to my routine of constantly learning something new about cloud engineering every day. It’s always fun to stay on the bleeding edge for me. +The new hotness that everyone wants these days is Kubernetes. It’s a bit of a cargo cult, and not everyone needs it. However it’s really awesome tech and it’s fun to play with. +For those that haven’t heard, Kubernetes is an orchestration tool for containers. Without getting too technical, Kubernetes is like a ship captain for the containers in your application. Which would make sense, because the etymology of the word “Kubernetes” is Greek for helmsman/pilot. + +Kubernetes (K8s) is an open-source system for automating deployment, scaling, and management of containerized applications. +So naturally, Kubernetes is something that I’ve been putting a lot of research and study into. I’m currently preparing to take my CKA (Certified Kubernetes Administrator) exam and have really just been having a blast with it. The only problem has been that it can sometimes be tedious to provision the resources and install the packages I need to play around with some of the infrastructure that I want to. +I’ve been looking around for a turnkey solution to spin up some resources on EC2 such as: +Graylog +Rancher 5.0 +Helm +I ended up settling with a tool calledconjure-up, which is made by Canonical Corporation, the creators of Ubuntu and it is also OSS. Conjure-up is marketed as a tool for provisioning large software stacks as a spell, which is a “model of the stack”. + +This tool was perfect for my use case. It would allow me to focus less on installing packages and provisioning tons of EC2 instances, and more on getting my hands dirty with the cluster itself. +Installing `conjure-up` +To get started with conjure-up, you’ll want to make sure you have snapd installed, because conjure-up is distributed via snap. +So first, run: +sudo apt install snapd +After you’ve made sure you have snap installed. Go ahead and run: +sudo snap install conjure-up --classic +NOTE: +If you get an $PATH variable error, make sure you have /snap/bin added to $PATH. This would be done by running: +export PATH=$:/snap/bin +Or by adding it directly in .profile in the home directory. +Using `conjure-up` +Now comes the fun part. So, to start using conjure-up, all you have to do is run: +conjure-up +That will bring up a GUI that looks like this: + +From here, you will choose which “spell” you want to deploy. For the sake of this tutorial, I’m going to choose Charmed Distribution of Kubernetes by using the arrow keys and hitting Space. +This brings us to the next screen: + +Which brings us to one of my favorite features of conjure-up. This section is what you will select modular add-ons to supplement your deployment. Select your add-on with SPACE and move on to the next section by pressing ENTER. +NOTE: +If you choose Kubernetes Core this will not appear as a section. + +In this section, you will select your cloud provider from a list of public clouds as well as MaaS, Openstack, and VMware. Again, for the sake of this tutorial I will choose AWS. +Hit ENTER on your selected provider and move to the next screen: + +This section is where you will enter your security credentials, so pretty self explanatory. Provide those and press ENTER to be taken to the next task: + +Here is where you will select your region, which if you are using GCP or something other than AWS, this will look different. Pick your region and move on to the next task. + +this section is where you will set up your controller or deploy a new self-hosted one. Choose an option with ENTER and move on to the next task. + +This section is where you will choose between a calico or flannel network “spell”. Choose your preferred and move on to the next task. + +This section is where you provide sudo credentials. + +This is the last step before deployment, where you can configure certain parameters. + + +And BOOM. You’re on your way to some bulletproof infrastructure in the amount of time it would have taken to watch an episode of Love, Death, and Robots. +I hope everyone enjoyed this little tutorial I made. conjure-up is a handy little tool and it has a lot of capabilities. I’d love to hear what the public has to say and what your experience has been with it, whether in production or in your free time. +Be sure to hit that follow button so you can stay up to date with my future posts. +Find me on GitHub: www.github.com/jdbohrman +Find me on LinkedIn: www.linkedin.com/in/jdbohrman +Also, I have an AMAZING Discord community you should check out. We do occasional AWS credit giveaways and are just getting off the ground. Come join the fun! +www.invite.gg/latenightdevops diff --git a/backup/Account b/backup/Account new file mode 100644 index 0000000..7cafd7b --- /dev/null +++ b/backup/Account @@ -0,0 +1,100 @@ +require 'rails_helper' + +describe Reconciler do + let(:bank_transaction) { create :bank_transaction, amount: total } + let(:current_admin) { create :admin } + let(:wells_fargo_account) { Account.wells_fargo_cash } + + subject { described_class.new bank_transaction, wells_fargo_account.id, reconciliations, current_admin } + + describe "#reconcile!" do + let(:reconciliations) {{ + customer1_account_id => amount1, + customer2_account_id => amount2 + }} + + context "a deposit" do + let(:amount1) { 123 } + let(:amount2) { 300 } + let(:total) { amount1 + amount2 } + let(:customer1_account_id) { create(:lender_with_accounts).cash_account.id } + let(:customer2_account_id) { create(:lender_with_accounts).cash_account.id } + + it "reconciles the transaction" do + subject.reconcile! + expect(Transaction.where credit_id: customer1_account_id, + debit_id: wells_fargo_account.id, + amount: amount1).to exist + expect(Transaction.where credit_id: customer2_account_id, + debit_id: wells_fargo_account.id, + amount: amount2).to exist + end + + it "returns true" do + expect(subject.reconcile!).to be true + end + end + + context "a withdrawal" do + let(:amount1) { -123 } + let(:amount2) { -300 } + let(:total) { amount1 + amount2 } + let(:customer1_account_id) { create(:borrower_with_accounts).loan_account.id } + let(:customer2_account_id) { create(:borrower_with_accounts).loan_account.id } + + before do + # put enough money in the Wells Fargo account beforehand + create(:transaction, credit_id: create(:lender_cash_account).id, + debit_id: wells_fargo_account.id, + amount: 1000) + subject.reconcile! + end + + it "reconciles the transaction" do + expect(Transaction.where credit_id: wells_fargo_account.id, + debit_id: customer1_account_id, + amount: -amount1).to exist + expect(Transaction.where credit_id: wells_fargo_account.id, + debit_id: customer2_account_id, + amount: -amount2).to exist + end + end + + context "with an invalid account id" do + let(:amount1) { 123 } + let(:amount2) { 300 } + let(:total) { amount1 + amount2 } + let(:customer1_account_id) { 123456789 } + let(:customer2_account_id) { 987654321 } + + + it "throws an error" do + expect{subject.reconcile!}.to raise_error ActiveRecord::InvalidForeignKey + end + end + + context "with insufficient funds in one of the accounts" do + let(:other_account_id) { create(:lender_with_accounts).cash_account.id } + let(:total) { -123 } + let(:reconciliations) { {other_account_id => total} } + + it "throws an error" do + expect{subject.reconcile!}.to raise_error ActiveRecord::StatementInvalid do |error| + expect(error.original_exception).to be_a PG::CheckViolation + end + end + end + end + + describe "#reconcile" do + context "with insufficient funds in one of the accounts" do + let(:other_account_id) { create(:lender_with_accounts).cash_account.id } + let(:total) { -123 } + let(:reconciliations) { {other_account_id => total} } + + it "does not reconcile the transaction" do + expect(subject.reconcile).to be false + end + end + end +end diff --git a/backup/First title b/backup/First title new file mode 100644 index 0000000..38e96fc --- /dev/null +++ b/backup/First title @@ -0,0 +1,14 @@ +{"{\"title\":\"First Title\"}"=>nil, "format"=>:json, +"controller"=>"api/v1/products", "action"=>"create", "user_id"=>"2"} +Whereas, they need to come through like this: + + {"title"=>"First Title", "format"=>:json, + "controller"=>"api/v1/products", "action"=>"create", "user_id"=>"2"} +Currently, on the iOS side, I am sending through the params like so: + +let params = ["title": "First Title"] +How can I send the params from the iOS side so that they come through to the rails side in the correct format? + +Just for a little more info, this is the response I'm getting in my Terminal when I do the post request: + +enter image description here diff --git a/backup/Git ruby gem b/backup/Git ruby gem new file mode 100644 index 0000000..c328b89 --- /dev/null +++ b/backup/Git ruby gem @@ -0,0 +1,148 @@ +Git is an open-source version control system and a command-line tool, it is used by programmers, developers, and designers to store projects and keep track of changes to their files. github.com is the website where developers can store their projects. Some basic git command is mentioned below: + +git clone /path/to/repository + +This command is used to clone the application in local repository. Create a working copy of a +local repository. + +git init + +Create a new local repository. + +git add + +This command used to Add all the files to staging. + +git commit -m “Commit message” + +Commit changes to head (but not yet to the remote repository). + +git config –global user.name “jyoti” / git config –global user.email “jyotisingh@carmatec.in” + +Configure the user name and email address to be used with your commits. + +git remote -v + +List all the currently configured remote repositories + +git push origin + +Send the committed changes to the branch of your remote repository. + +git status + +List the files you have changed and those you still need to add or commit. + +git remote add origin + +If you have not connected to your local repository to a remote server, add the server to be able to push the code. + +git remote -v + +List all currently configured remote repositories. + +git checkout + +Switch from one branch to another. + +git checkout -b + +Create a new branch and switch to it. + +git branch + +List all the branches in your repository, and also tell you on which branch you are currently in. + +git branch -d + +Delete the feature branch. + +git push –all origin + +Push all branches to your remote repository. + +git pull + +Fetch and merge changes on the remote server to your working directory. + +git merge + +To merge a different branch into your active branch. + +git diff + +Preview changes in all the files whatever you have done. + +git diff –base + +Preview changes for a specific file done by you. + +git add + +After you have manually resolved any conflicts, you can mark the changed file then pushed. + +git log + +Display all the commits with commitId that is pushed to the remote server, and CommitId will be unique for every commit. + +git checkout — + +With this command, we can undo local changes for that specific file. + +git stash + +Suppose you want to switch to another branch but you don’t want to commit what you have been working on yet, then you can stash the changes using above command. + +git stash apply + +You can reapply the changes to any branch that you have stashed by using the above command. + +git stash clear + +You can clear the stash using the above command. + +git diff > patch_name.patch + +This command used to create a patch with diff output (all the changes that you have done for all the files) + +git diff patch_name.patch + +Create a patch for a specific file. + +git apply patch_name.patch + +This command used to apply the patch file changes in your current branch. + +git cherry-pick + +Cherry picking is used to choose a commit from one branch and apply it onto another. + +git reset –soft HEAD~1 + +Undo the last commit. + +git reset –soft + +Undo any previous commit. + +git clean + +Remove untracked files from the working branch. + +git clean -f -d + +This command used to remove directories, untracked files from the working branch. + +git reflog + +It Manage reflog information means it keep record when the tips of branches and other references were updated in the local repository. + +Search for: +Search … +Recent Posts +Data Scraping in Rails by Processing CSV +UI/UX Design Practices +Designing & Architecting Rails Apps +How to revert commit from GitHub +Make Voice calls through Ruby on Rails Web applications +Categories