##References
##Create Rails App
command to make new directory:
mkdir AppName
// solving issues related to these errors | |
[Frontend] esbuild: frontend bundling started... | |
[Frontend] ✘ [ERROR] Could not resolve "./fonts/bootstrap-icons.woff2?24e3eb84d0bcaf83d77f904c78ac1f47" | |
[Frontend] | |
[Frontend] frontend/styles/index.scss:11855:11: | |
[Frontend] 11855 │ src: url("./fonts/bootstrap-icons.woff2?24e3eb84d0bcaf83d77f9... | |
[Frontend] ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
[Frontend] | |
[Frontend] ✘ [ERROR] Could not resolve "./fonts/bootstrap-icons.woff?24e3eb84d0bcaf83d77f904c78ac1f47" |
##References
##Create Rails App
command to make new directory:
mkdir AppName
class InitialMigration < ActiveRecord::Migration[5.0] | |
def change | |
enable_extension "pgcrypto" unless extension_enabled?("pgcrypto") | |
end | |
end |
Reference
Remove sensitive files from Git/Github
In Terminal
git filter-branch --index-filter 'git rm --cached --ignore-unmatch [file path/name]' --prune-empty --tag-name-filter cat -- --all
Example:
import * as path from 'path'; | |
import * as os from 'os'; | |
import * as fs from 'fs'; | |
import * as admin from 'firebase-admin'; | |
const exportToFile = async (req, _, next) => { | |
try { | |
const fileName = 'test002.csv'; | |
const tempFilePath = path.join(os.tmpdir(), fileName); |
#!/bin/bash | |
export AWS_PAGER="" | |
bucket_name="bucket-name" | |
# List all versions in the bucket | |
versions=$(aws s3api list-object-versions --bucket $bucket_name --query 'DeleteMarkers') | |
# Loop through the list of delete markers and delete each one | |
for version in $(echo "$versions" | jq -r '.[] | @base64'); do | |
version_json=$(echo "$version" | base64 --decode) |
Terminal command
doc = Nokogiri::XML(res.body) | |
@doc = doc.xpath('//mdn').each do |record| | |
@carriercode = record.at('@carrier').text | |
end | |
@carriercode | |