From 3b413794ec41e1c55623f13b37fded3c4222cd0a Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 8 Oct 2021 06:08:59 -0700 Subject: [PATCH 01/33] updated vim notes --- vim_notes.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vim_notes.txt b/vim_notes.txt index d2516d2d..c1b1ad94 100644 --- a/vim_notes.txt +++ b/vim_notes.txt @@ -74,6 +74,10 @@ CTRL + F (Page Down) :%s/word_to_replace/new_word/g +# Delete all blank lines: + +g/^\s*$/d + # Running Bash Commands from within Vim: :! From eddced09de66429d17daf7890c6c8890c6fc08dc Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 8 Oct 2021 15:07:46 -0700 Subject: [PATCH 02/33] saved firefox preferences --- firefox_preferences/install_notes.txt | 8 + firefox_preferences/prefs.js | 287 ++++++++++++++++++++++++++ 2 files changed, 295 insertions(+) create mode 100644 firefox_preferences/install_notes.txt create mode 100644 firefox_preferences/prefs.js diff --git a/firefox_preferences/install_notes.txt b/firefox_preferences/install_notes.txt new file mode 100644 index 00000000..37c86ac6 --- /dev/null +++ b/firefox_preferences/install_notes.txt @@ -0,0 +1,8 @@ +Manjaro XFCE FireFox-Developer-Edition Settings +While you can certainly harden firefox by hand, it can be time consuming, simply put prefs.js in: + +~/.mozilla/firefox/k6634gl6.dev-edition-default/prefs.js + +Or whatever path looks like that, you can always search for it using locate (recommended). + +locate prefs.js diff --git a/firefox_preferences/prefs.js b/firefox_preferences/prefs.js new file mode 100644 index 00000000..6601431d --- /dev/null +++ b/firefox_preferences/prefs.js @@ -0,0 +1,287 @@ +// Mozilla User Preferences + +// DO NOT EDIT THIS FILE. +// +// If you make changes to this file while the application is running, +// the changes will be overwritten when the application exits. +// +// To change a preference value, you can either: +// - modify it via the UI (e.g. via about:config in the browser); or +// - set it within a user.js file in your profile. + +user_pref("accessibility.typeaheadfind.flashBar", 0); +user_pref("app.normandy.enabled", false); +user_pref("app.normandy.first_run", false); +user_pref("app.normandy.migrationsApplied", 12); +user_pref("app.normandy.user_id", "baf69633-60f7-48e9-ae25-812b00776bd9"); +user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1633689195); +user_pref("app.update.lastUpdateTime.browser-cleanup-thumbnails", 1633730188); +user_pref("app.update.lastUpdateTime.recipe-client-addon-run", 1622922886); +user_pref("app.update.lastUpdateTime.region-update-timer", 1633165693); +user_pref("app.update.lastUpdateTime.rs-experiment-loader-timer", 1633730158); +user_pref("app.update.lastUpdateTime.search-engine-update-timer", 1633711155); +user_pref("app.update.lastUpdateTime.services-settings-poll-changes", 1633716240); +user_pref("app.update.lastUpdateTime.telemetry_modules_ping", 1633689435); +user_pref("app.update.lastUpdateTime.xpi-signature-verification", 1633716120); +user_pref("browser.aboutConfig.showWarning", false); +user_pref("browser.bookmarks.addedImportButton", true); +user_pref("browser.bookmarks.defaultLocation", "unfiled_____"); +user_pref("browser.bookmarks.editDialog.confirmationHintShowCount", 3); +user_pref("browser.bookmarks.restore_default_bookmarks", false); +user_pref("browser.cache.disk.enable", false); +user_pref("browser.cache.disk_cache_ssl", false); +user_pref("browser.cache.memory.enable", false); +user_pref("browser.compactmode.show", true); +user_pref("browser.contentblocking.category", "strict"); +user_pref("browser.download.lastDir", "/home/brian/Downloads"); +user_pref("browser.download.panel.shown", true); +user_pref("browser.download.save_converter_index", 0); +user_pref("browser.download.viewableInternally.typeWasRegistered.avif", true); +user_pref("browser.download.viewableInternally.typeWasRegistered.svg", true); +user_pref("browser.download.viewableInternally.typeWasRegistered.webp", true); +user_pref("browser.download.viewableInternally.typeWasRegistered.xml", true); +user_pref("browser.engagement.ctrlTab.has-used", true); +user_pref("browser.engagement.downloads-button.has-used", true); +user_pref("browser.engagement.home-button.has-removed", true); +user_pref("browser.formfill.enable", false); +user_pref("browser.laterrun.bookkeeping.profileCreationTime", 1621583252); +user_pref("browser.laterrun.bookkeeping.sessionCount", 51); +user_pref("browser.migration.version", 117); +user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false); +user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false); +user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); +user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false); +user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); +user_pref("browser.newtabpage.activity-stream.impressionId", "{eea55561-7224-4f7d-b350-68abb8934ac8}"); +user_pref("browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned", "google"); +user_pref("browser.newtabpage.activity-stream.section.highlights.includePocket", false); +user_pref("browser.newtabpage.activity-stream.showSearch", false); +user_pref("browser.newtabpage.activity-stream.telemetry", false); +user_pref("browser.newtabpage.enabled", false); +user_pref("browser.newtabpage.pinned", "[null,{\"url\":\"https://google.com\",\"label\":\"@google\",\"searchTopSite\":true}]"); +user_pref("browser.newtabpage.storageVersion", 1); +user_pref("browser.pageActions.persistedActions", "{\"ids\":[\"bookmark\"],\"idsInUrlbar\":[\"bookmark\"],\"version\":1,\"idsInUrlbarPreProton\":[\"bookmark\"]}"); +user_pref("browser.pagethumbnails.storage_version", 3); +user_pref("browser.ping-centre.telemetry", false); +user_pref("browser.policies.applied", true); +user_pref("browser.privatebrowsing.autostart", true); +user_pref("browser.proton.contextmenus.enabled", false); +user_pref("browser.proton.doorhangers.enabled", false); +user_pref("browser.proton.enabled", false); +user_pref("browser.proton.modals.enabled", false); +user_pref("browser.proton.toolbar.version", 3); +user_pref("browser.region.update.updated", 1622923007); +user_pref("browser.rights.3.shown", true); +user_pref("browser.safebrowsing.provider.google4.lastupdatetime", "1633730159338"); +user_pref("browser.safebrowsing.provider.google4.nextupdatetime", "1633731972338"); +user_pref("browser.safebrowsing.provider.mozilla.lastupdatetime", "1633710767151"); +user_pref("browser.safebrowsing.provider.mozilla.nextupdatetime", "1633732367151"); +user_pref("browser.search.hiddenOneOffs", "Google,Amazon.com,Bing,DuckDuckGo,eBay,Wikipedia (en),DuckDuckGo Lite"); +user_pref("browser.search.region", "US"); +user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20210510094826"); +user_pref("browser.shell.mostRecentDateSetAsDefault", "1632676388"); +user_pref("browser.startup.homepage", "about:blank"); +user_pref("browser.startup.homepage_override.buildID", "20210924103651"); +user_pref("browser.startup.homepage_override.mstone", "93.0"); +user_pref("browser.startup.lastColdStartupCheck", 1633730158); +user_pref("browser.tabs.crashReporting.sendReport", false); +user_pref("browser.tabs.drawInTitlebar", true); +user_pref("browser.tabs.warnOnClose", false); +user_pref("browser.theme.toolbar-theme", 0); +user_pref("browser.toolbars.bookmarks.visibility", "never"); +user_pref("browser.uiCustomization.state", "{\"placements\":{\"widget-overflow-fixed-list\":[],\"nav-bar\":[\"back-button\",\"forward-button\",\"customizableui-special-spring1\",\"urlbar-container\",\"customizableui-special-spring2\",\"downloads-button\",\"fxa-toolbar-menu-button\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"],\"PersonalToolbar\":[\"import-button\",\"personal-bookmarks\"]},\"seen\":[\"save-to-pocket-button\",\"developer-button\",\"profiler-button\",\"ublock0_raymondhill_net-browser-action\",\"jid1-bofifl9vbdl2zq_jetpack-browser-action\",\"addon_darkreader_org-browser-action\",\"_d7742d87-e61d-4b78-b8a1-b469842139fa_-browser-action\",\"cookieautodelete_kennydo_com-browser-action\",\"forget-me-not_lusito_info-browser-action\",\"_5caff8cc-3d2e-4110-a88a-003cc85b3858_-browser-action\"],\"dirtyAreaCache\":[\"nav-bar\",\"PersonalToolbar\",\"toolbar-menubar\",\"TabsToolbar\"],\"currentVersion\":17,\"newElementCount\":26}"); +user_pref("browser.uidensity", 1); +user_pref("browser.urlbar.resultGroups", "{\"children\":[{\"maxResultCount\":1,\"children\":[{\"group\":\"heuristicTest\"},{\"group\":\"heuristicExtension\"},{\"group\":\"heuristicSearchTip\"},{\"group\":\"heuristicOmnibox\"},{\"group\":\"heuristicEngineAlias\"},{\"group\":\"heuristicBookmarkKeyword\"},{\"group\":\"heuristicAutofill\"},{\"group\":\"heuristicPreloaded\"},{\"group\":\"heuristicTokenAliasEngine\"},{\"group\":\"heuristicFallback\"}]},{\"group\":\"extension\",\"availableSpan\":5},{\"flexChildren\":true,\"children\":[{\"children\":[{\"flexChildren\":true,\"children\":[{\"flex\":2,\"group\":\"formHistory\"},{\"flex\":4,\"group\":\"remoteSuggestion\"}]},{\"group\":\"tailSuggestion\"}],\"flex\":2},{\"group\":\"generalParent\",\"children\":[{\"availableSpan\":3,\"group\":\"inputHistory\"},{\"flexChildren\":true,\"children\":[{\"flex\":1,\"group\":\"remoteTab\"},{\"flex\":2,\"group\":\"general\"},{\"flex\":2,\"group\":\"aboutPages\"},{\"flex\":1,\"group\":\"preloaded\"}]},{\"group\":\"inputHistory\"}],\"flex\":1}]}]}"); +user_pref("browser.urlbar.shortcuts.bookmarks", false); +user_pref("browser.urlbar.shortcuts.history", false); +user_pref("browser.urlbar.shortcuts.tabs", false); +user_pref("browser.urlbar.speculativeConnect.enabled", false); +user_pref("browser.urlbar.suggest.bookmark", false); +user_pref("browser.urlbar.suggest.engines", false); +user_pref("browser.urlbar.suggest.history", false); +user_pref("browser.urlbar.suggest.openpage", false); +user_pref("browser.urlbar.suggest.topsites", false); +user_pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 2); +user_pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "1621583257648"); +user_pref("devtools.aboutdebugging.collapsibilities.processes", false); +user_pref("devtools.debugger.pending-selected-location", "{\"sourceId\":\"source-http://127.0.0.1:14049/petite-vue.js\",\"line\":842,\"column\":57,\"url\":\"http://127.0.0.1:14049/petite-vue.js\"}"); +user_pref("devtools.debugger.prefs-schema-version", 11); +user_pref("devtools.everOpened", true); +user_pref("devtools.netmonitor.columnsData", "[{\"name\":\"status\",\"minWidth\":30,\"width\":6},{\"name\":\"method\",\"minWidth\":30,\"width\":6},{\"name\":\"domain\",\"minWidth\":30,\"width\":11.99},{\"name\":\"file\",\"minWidth\":30,\"width\":30},{\"name\":\"url\",\"minWidth\":30,\"width\":25},{\"name\":\"initiator\",\"minWidth\":30,\"width\":12},{\"name\":\"type\",\"minWidth\":30,\"width\":6},{\"name\":\"transferred\",\"minWidth\":30,\"width\":12},{\"name\":\"contentSize\",\"minWidth\":30,\"width\":6},{\"name\":\"waterfall\",\"minWidth\":150,\"width\":10}]"); +user_pref("devtools.netmonitor.msg.payload-preview-height", 50); +user_pref("devtools.netmonitor.msg.visibleColumns", "[\"data\",\"time\"]"); +user_pref("devtools.performance.new-panel-onboarding", false); +user_pref("devtools.toolbox.footer.height", 491); +user_pref("devtools.toolbox.previousHost", "window"); +user_pref("devtools.toolbox.selectedTool", "storage"); +user_pref("devtools.toolbox.splitconsoleEnabled", true); +user_pref("devtools.toolbox.splitconsoleHeight", 75); +user_pref("devtools.toolsidebar-height.inspector", 350); +user_pref("devtools.toolsidebar-width.inspector", 630); +user_pref("devtools.toolsidebar-width.inspector.splitsidebar", 0); +user_pref("devtools.webconsole.input.editorOnboarding", false); +user_pref("devtools.webconsole.input.editorWidth", 212); +user_pref("devtools.webextensions.{5caff8cc-3d2e-4110-a88a-003cc85b3858}.enabled", true); +user_pref("distribution.Manjaro.bookmarksProcessed", true); +user_pref("distribution.iniFile.exists.appversion", "93.0"); +user_pref("distribution.iniFile.exists.value", true); +user_pref("doh-rollout.balrog-migration-done", true); +user_pref("doh-rollout.doneFirstRun", true); +user_pref("doh-rollout.home-region", "US"); +user_pref("doh-rollout.skipHeuristicsCheck", true); +user_pref("dom.push.userAgentID", "a83fd8ef76354ea7bdcea9c5a4a230b3"); +user_pref("dom.security.https_only_mode", true); +user_pref("dom.security.https_only_mode_ever_enabled", true); +user_pref("dom.storage.next_gen_auto_enabled_by_cause1", true); +user_pref("dom.webnotifications.enabled", false); +user_pref("extensions.activeThemeID", "{2c6ca67f-c480-4a85-8ccc-0c124cca0d5a}"); +user_pref("extensions.blocklist.pingCountVersion", -1); +user_pref("extensions.databaseSchema", 33); +user_pref("extensions.formautofill.addresses.enabled", false); +user_pref("extensions.formautofill.available", ""); +user_pref("extensions.formautofill.creditCards.enabled", false); +user_pref("extensions.getAddons.cache.lastUpdate", 1633689195); +user_pref("extensions.getAddons.databaseSchema", 6); +user_pref("extensions.incognito.migrated", true); +user_pref("extensions.lastAppBuildId", "20210924103651"); +user_pref("extensions.lastAppVersion", "93.0"); +user_pref("extensions.lastPlatformVersion", "93.0"); +user_pref("extensions.pendingOperations", false); +user_pref("extensions.pictureinpicture.enable_picture_in_picture_overrides", true); +user_pref("extensions.pocket.enabled", false); +user_pref("extensions.pocket.settings.test.panelSignUp", "control"); +user_pref("extensions.screenshots.disabled", true); +user_pref("extensions.systemAddonSet", "{\"schema\":1,\"addons\":{}}"); +user_pref("extensions.ui.dictionary.hidden", true); +user_pref("extensions.ui.extension.hidden", false); +user_pref("extensions.ui.lastCategory", "addons://list/extension"); +user_pref("extensions.ui.locale.hidden", true); +user_pref("extensions.ui.plugin.hidden", false); +user_pref("extensions.ui.theme.hidden", false); +user_pref("extensions.webcompat-reporter.enabled", false); +user_pref("extensions.webcompat.enable_shims", true); +user_pref("extensions.webcompat.perform_injections", true); +user_pref("extensions.webcompat.perform_ua_overrides", true); +user_pref("extensions.webextensions.ExtensionStorageIDB.migrated.addon@darkreader.org", true); +user_pref("extensions.webextensions.ExtensionStorageIDB.migrated.forget-me-not@lusito.info", true); +user_pref("extensions.webextensions.ExtensionStorageIDB.migrated.jid1-BoFifL9Vbdl2zQ@jetpack", true); +user_pref("extensions.webextensions.ExtensionStorageIDB.migrated.screenshots@mozilla.org", true); +user_pref("extensions.webextensions.ExtensionStorageIDB.migrated.uBlock0@raymondhill.net", true); +user_pref("extensions.webextensions.ExtensionStorageIDB.migrated.{5caff8cc-3d2e-4110-a88a-003cc85b3858}", true); +user_pref("extensions.webextensions.ExtensionStorageIDB.migrated.{d7742d87-e61d-4b78-b8a1-b469842139fa}", true); +user_pref("extensions.webextensions.uuids", "{\"doh-rollout@mozilla.org\":\"e0389b0b-56eb-4ab7-b209-2d29b202440b\",\"formautofill@mozilla.org\":\"f21d0551-1347-4ef5-a3ac-f7400ee68607\",\"pictureinpicture@mozilla.org\":\"9de67dfd-7232-4ea6-9c15-a710f2ccbbc4\",\"screenshots@mozilla.org\":\"cb81cd10-c178-4882-8a99-cf36bc647e1f\",\"webcompat-reporter@mozilla.org\":\"94828e09-eaf3-4b7d-badd-f0b82a8f2f2c\",\"webcompat@mozilla.org\":\"8f8a9d64-ae5c-49b1-9559-3cee3b54efbf\",\"firefox-compact-dark@mozilla.org\":\"87a3bb37-75ff-404f-b08b-615fd8c9577f\",\"google@search.mozilla.org\":\"33c0e3c7-adbc-4fbf-ae65-5da9670fcd01\",\"amazondotcom@search.mozilla.org\":\"53202bb3-4cb3-4743-8630-6b53a31bf8fb\",\"wikipedia@search.mozilla.org\":\"46cba9b8-5f67-4b41-9ae7-14f12a0dc233\",\"bing@search.mozilla.org\":\"065bf97a-8c51-4d9a-94d5-f2e8624ca3ce\",\"ddg@search.mozilla.org\":\"5dff18db-0150-4dbc-98fe-9ec914c664e2\",\"ebay@search.mozilla.org\":\"af2f7f15-59dd-4eb5-ba16-55f49a2c3c1c\",\"{ff253518-a3a5-44ce-9f39-4b46c15ae288}\":\"93d5f17c-87ca-4320-a8ca-63dbb635242d\",\"{2c6ca67f-c480-4a85-8ccc-0c124cca0d5a}\":\"2996ed34-3b71-4eda-a7ad-bc634106667c\",\"uBlock0@raymondhill.net\":\"f94518cf-4a55-4787-8cea-2e7a97ed9887\",\"addon@darkreader.org\":\"e0ebf513-7a9c-4695-bea9-b82f5a72595c\",\"{d7742d87-e61d-4b78-b8a1-b469842139fa}\":\"7dae68ef-5010-41f4-a6d3-68f6ec989d1d\",\"forget-me-not@lusito.info\":\"29268d2f-53ee-4f92-a38e-d2af81e9af68\",\"jid1-BoFifL9Vbdl2zQ@jetpack\":\"36b865e3-bd4e-444f-8866-0a1ea1d9bdf2\",\"{5caff8cc-3d2e-4110-a88a-003cc85b3858}\":\"aa0118cf-6d59-4200-9498-fdfa4ee9e4e5\"}"); +user_pref("findbar.highlightAll", true); +user_pref("fission.experiment.max-origins.last-disqualified", 0); +user_pref("fission.experiment.max-origins.last-qualified", 1621583257); +user_pref("fission.experiment.max-origins.qualified", true); +user_pref("font.internaluseonly.changed", true); +user_pref("general.smoothScroll", false); +user_pref("geo.enabled", false); +user_pref("idle.lastDailyNotification", 1633702949); +user_pref("media.gmp-gmpopenh264.abi", "x86_64-gcc3"); +user_pref("media.gmp-gmpopenh264.lastUpdate", 1621583652); +user_pref("media.gmp-gmpopenh264.version", "1.8.1.1"); +user_pref("media.gmp-manager.buildID", "20210924103651"); +user_pref("media.gmp-manager.lastCheck", 1633730212); +user_pref("media.gmp.storage.version.observed", 1); +user_pref("media.navigator.enabled", false); +user_pref("media.peerconnection.enabled", false); +user_pref("media.peerconnection.ice.default_address_only", true); +user_pref("media.peerconnection.ice.no_host", true); +user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true); +user_pref("media.videocontrols.picture-in-picture.video-toggle.has-used", true); +user_pref("network.cookie.cookieBehavior", 5); +user_pref("network.cookie.lifetimePolicy", 2); +user_pref("network.http.referer.XOriginPolicy", 1); +user_pref("network.http.referer.XOriginTrimmingPolicy", 1); +user_pref("network.http.referer.disallowCrossSiteRelaxingDefault", true); +user_pref("network.http.sendRefererHeader", 0); +user_pref("network.http.speculative-parallel-limit", 0); +user_pref("network.predictor.enabled", false); +user_pref("network.prefetch-next", false); +user_pref("network.trr.blocklist_cleanup_done", true); +user_pref("nimbus.syncdefaultsstore.upgradeDialog", "{\"slug\":\"upgradeDialog-defaultEnabled\",\"enabled\":true,\"targeting\":\"true\",\"variables\":null,\"description\":\"Turn on upgradeDialog by default for all users\"}"); +user_pref("pdfjs.enableScripting", false); +user_pref("pdfjs.enabledCache.state", true); +user_pref("pdfjs.migrationVersion", 2); +user_pref("places.database.lastMaintenance", 1633127079); +user_pref("pref.browser.homepage.disable_button.current_page", false); +user_pref("pref.privacy.disable_button.cookie_exceptions", false); +user_pref("privacy.annotate_channels.strict_list.enabled", true); +user_pref("privacy.donottrackheader.enabled", true); +user_pref("privacy.firstparty.isolate", true); +user_pref("privacy.history.custom", true); +user_pref("privacy.purge_trackers.date_in_cookie_database", "0"); +user_pref("privacy.purge_trackers.last_purge", "1633702949482"); +user_pref("privacy.resistFingerprinting", true); +user_pref("privacy.sanitize.pending", "[{\"id\":\"newtab-container\",\"itemsToClear\":[],\"options\":{}}]"); +user_pref("privacy.trackingprotection.enabled", true); +user_pref("privacy.trackingprotection.socialtracking.enabled", true); +user_pref("privacy.userContext.enabled", true); +user_pref("privacy.userContext.extension", "forget-me-not@lusito.info"); +user_pref("privacy.userContext.ui.enabled", true); +user_pref("security.remote_settings.crlite_filters.checked", 1633701942); +user_pref("security.remote_settings.intermediates.checked", 1633701942); +user_pref("security.sandbox.content.tempDirSuffix", "5e6c8ed8-fbcd-42d3-b696-9b44ae572cc5"); +user_pref("security.ssl.enable_false_start", false); +user_pref("security.ssl.require_safe_negotiation", true); +user_pref("security.ssl3.rsa_des_ede3_sha", false); +user_pref("security.tls.enable_0rtt_data", false); +user_pref("services.blocklist.addons-mlbf.checked", 1633729929); +user_pref("services.blocklist.gfx.checked", 1633729929); +user_pref("services.blocklist.pinning.checked", 1623634456); +user_pref("services.settings.clock_skew_seconds", 229); +user_pref("services.settings.last_etag", "\"1633728664901\""); +user_pref("services.settings.last_update_seconds", 1633729929); +user_pref("services.settings.main.anti-tracking-url-decoration.last_check", 1633729929); +user_pref("services.settings.main.cfr-fxa.last_check", 1633729929); +user_pref("services.settings.main.cfr.last_check", 1633729929); +user_pref("services.settings.main.doh-config.last_check", 1633729929); +user_pref("services.settings.main.doh-providers.last_check", 1633729929); +user_pref("services.settings.main.fxmonitor-breaches.last_check", 1633729929); +user_pref("services.settings.main.hijack-blocklists.last_check", 1633729929); +user_pref("services.settings.main.language-dictionaries.last_check", 1633729929); +user_pref("services.settings.main.message-groups.last_check", 1633729929); +user_pref("services.settings.main.nimbus-desktop-defaults.last_check", 1633729929); +user_pref("services.settings.main.nimbus-desktop-experiments.last_check", 1633729929); +user_pref("services.settings.main.normandy-recipes-capabilities.last_check", 1633729929); +user_pref("services.settings.main.partitioning-exempt-urls.last_check", 1633729929); +user_pref("services.settings.main.password-recipes.last_check", 1633729929); +user_pref("services.settings.main.password-rules.last_check", 1633729929); +user_pref("services.settings.main.personality-provider-models.last_check", 1633729929); +user_pref("services.settings.main.personality-provider-recipe.last_check", 1633729929); +user_pref("services.settings.main.pioneer-study-addons-v1.last_check", 1633729929); +user_pref("services.settings.main.public-suffix-list.last_check", 1633729929); +user_pref("services.settings.main.query-stripping.last_check", 1633729929); +user_pref("services.settings.main.quicksuggest.last_check", 1633729929); +user_pref("services.settings.main.search-config.last_check", 1633729929); +user_pref("services.settings.main.search-default-override-allowlist.last_check", 1633729929); +user_pref("services.settings.main.search-telemetry.last_check", 1633729929); +user_pref("services.settings.main.sites-classification.last_check", 1633729929); +user_pref("services.settings.main.tippytop.last_check", 1633729929); +user_pref("services.settings.main.top-sites.last_check", 1633729929); +user_pref("services.settings.main.url-classifier-skip-urls.last_check", 1633729929); +user_pref("services.settings.main.websites-with-shared-credential-backends.last_check", 1633729929); +user_pref("services.settings.main.whats-new-panel.last_check", 1633729929); +user_pref("services.settings.security.onecrl.checked", 1633701942); +user_pref("services.sync.clients.lastSync", "0"); +user_pref("services.sync.declinedEngines", ""); +user_pref("services.sync.globalScore", 0); +user_pref("services.sync.nextSync", 0); +user_pref("services.sync.tabs.lastSync", "0"); +user_pref("signon.rememberSignons", false); +user_pref("storage.vacuum.last.index", 1); +user_pref("storage.vacuum.last.places.sqlite", 1633408551); +user_pref("toolkit.startup.last_success", 1633730157); +user_pref("toolkit.telemetry.bhrPing.enabled", false); +user_pref("toolkit.telemetry.cachedClientID", "c0ffeec0-ffee-c0ff-eec0-ffeec0ffeec0"); +user_pref("toolkit.telemetry.firstShutdownPing.enabled", false); +user_pref("toolkit.telemetry.newProfilePing.enabled", false); +user_pref("toolkit.telemetry.pioneer-new-studies-available", true); +user_pref("toolkit.telemetry.previousBuildID", "20210924103651"); +user_pref("toolkit.telemetry.reportingpolicy.firstRun", false); +user_pref("toolkit.telemetry.server", ""); +user_pref("toolkit.telemetry.shutdownPingSender.enabled", false); +user_pref("toolkit.telemetry.unified", false); +user_pref("toolkit.telemetry.updatePing.enabled", false); +user_pref("webgl.disabled", true); From dca1f4d94d0b7cfcd184754291191a41f6e4ffd7 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 8 Oct 2021 16:09:39 -0700 Subject: [PATCH 03/33] updated vim notes --- vim_notes.txt | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/vim_notes.txt b/vim_notes.txt index c1b1ad94..ee4bb334 100644 --- a/vim_notes.txt +++ b/vim_notes.txt @@ -52,11 +52,20 @@ yiw: copy the current word, excluding surrounding whitespace yaw: copy the current word, including surrounding whitespace ytx: copy from the current cursor position up to and before the character represented by x yfx: copy from the current cursor position up to and including the character represented by x +p: paste what you've copied -# Undo/Redo: +# Cut +# hit d at line you wish to current +d +# hit ESC +ESC +# navigate to line you wish to paste at, and hit p +p -u: undo -Ctrl-R: redo +# Undo +u +# Redo +Ctrl-R # Indent/Unindent: @@ -78,6 +87,10 @@ CTRL + F (Page Down) g/^\s*$/d +# Append to end of every line: + +:%s/$/,/ + # Running Bash Commands from within Vim: :! @@ -91,6 +104,10 @@ To open a new tab there are a few options, one is to use the command line: You can cycle through tabs using: gt or gT +To open up a new vertical window: + +:vert new filename.txt + You can cycle through windows using: Ctrl + w or Ctrl + Shift + w From 56ddcb44c0839b41f1b912c09910dd50900b05fb Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 8 Oct 2021 16:32:45 -0700 Subject: [PATCH 04/33] added command to copy/paste with terminal,micro, and no mouse --- linux_notes.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/linux_notes.txt b/linux_notes.txt index 149e876c..c3ddab30 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -380,6 +380,21 @@ xfce4-terminal --geometry=127x51+0+0 -x bpytop Same with xbanish: xbanish +Extracting gpg keys so that you can copy them without mouse: + +In terminal, in directory with .gpg file +gpg -d secret_file.txt.gpg > echo > file_secrets.txt +Enter password for gpg when prompted + +Use Micro to Copy text: +micro gh_token.txt +Ctrl + a +Ctrl + c +Ctrl + q + +In main terminal: +Ctrl + shift + v + Config Files: Configuration files for certain programs usually fall under the ~/.config directory, I have specifically created certain keybindings for example which can be found in the file titled: From 9b0afe1cac7fe8b7cfc6a763569369ed339a72ed Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 8 Oct 2021 16:35:31 -0700 Subject: [PATCH 05/33] updated bashrc aliases --- bashrc.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bashrc.txt b/bashrc.txt index b96f93e6..7f8cfb96 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -147,7 +147,7 @@ ex () # Formats history command with dates/times HISTTIMEFORMAT="%d/%m/%y %T " -# Displays current git branch if there is any +# Displays current git branch if there is any and also styles bash prompt export PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\033[01;37m\] $(git branch 2>/dev/null | grep '^*' | colrm 1 2)\n\033[01;32m└─▶ \033[37m' # Custom Bash Commands @@ -162,13 +162,16 @@ alias config="cd ~/.config" alias Code="cd ~/Documents/Code" alias js="cd ~/Documents/Code/javascript" alias ls="ls -lah --color=auto" +alias {his,hist}="history" +alias {cmatrix,matrix}="cmatrix -b -C cyan" alias {top,htop,btop}="xfce4-terminal --geometry=127x51+0+0 -x btop" -alias {firefox,ff}="firefox-developer-edition" +alias {firefox,ff}="firefox-developer-edition &" alias {sq,sql,sqlite}="sqlcipher" alias {nv,nvi,vim,vi}="nvim" alias {mi,mic,nano}="micro" alias {mysql,maria,mdb}="mariadb" -alias thinkorswim="~/thinkorswim/thinkorswim" +alias thinkorswim="~/thinkorswim/thinkorswim &" +alias vs="code" alias shutdown="shutdown -h now" alias logout="xfce4-session-logout --logout" alias curltime="curl -w \"@$HOME/Documents/notes/curl-format.txt\" -o /dev/null -s" From 90982e89b15530685d48a1eb228457de45ff3122 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 8 Oct 2021 17:13:53 -0700 Subject: [PATCH 06/33] updated bash aliases --- bashrc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/bashrc.txt b/bashrc.txt index 7f8cfb96..90e7bae4 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -167,6 +167,7 @@ alias {cmatrix,matrix}="cmatrix -b -C cyan" alias {top,htop,btop}="xfce4-terminal --geometry=127x51+0+0 -x btop" alias {firefox,ff}="firefox-developer-edition &" alias {sq,sql,sqlite}="sqlcipher" +alias tree="tree -ad -L 3 --prune -C" alias {nv,nvi,vim,vi}="nvim" alias {mi,mic,nano}="micro" alias {mysql,maria,mdb}="mariadb" From 9b2803fb63d4d8cff1781562b19299ef71b2580e Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 07:54:18 -0700 Subject: [PATCH 07/33] added indent highlighting --- nvim/init.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index a2160268..122fbf09 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -12,6 +12,7 @@ Plug 'airblade/vim-gitgutter' Plug 'ctrlpvim/ctrlp.vim' " fuzzy find files Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'preservim/nerdcommenter' +Plug 'Yggdroot/indentLine' Plug 'sheerun/vim-polyglot' Plug 'turbio/bracey.vim', {'do': 'npm install --prefix server'} Plug 'luochen1990/rainbow' @@ -26,7 +27,6 @@ Plug 'HerringtonDarkholme/yats.vim' " TS Syntax call plug#end() inoremap jk nmap :NERDTreeToggle - " open NERDTree automatically autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * NERDTree @@ -39,6 +39,9 @@ let g:bracey_refresh_on_save = 1 "set colored brackets via rainbow" let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle" +"set indentLine to nvim colorscheme +"let g:indentLine_setColors = 0 + let g:webdevicons_enable = 1 let g:webdevicons_enable_nerdtree = 1 From 227227594951381d41f00aa5a20b411524362883 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 16:40:11 -0700 Subject: [PATCH 08/33] added copy/paste within braces command --- vim_notes.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vim_notes.txt b/vim_notes.txt index ee4bb334..e1654452 100644 --- a/vim_notes.txt +++ b/vim_notes.txt @@ -91,6 +91,12 @@ g/^\s*$/d :%s/$/,/ +# Select and copy within parenthesis, brackets, curly braces: +# Navigate to within parenthesis, brackets, curly braces: + +vaby +#vab will select all within parens, brackets, curly braces, and then y will yank/copy it. + # Running Bash Commands from within Vim: :! From e31e0db5dc2b3ccfeb3d68fbaaaf1088d57538cf Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 19:20:13 -0700 Subject: [PATCH 09/33] updated NerdTree settings --- nvim/init.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 122fbf09..deeca8ed 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -27,9 +27,11 @@ Plug 'HerringtonDarkholme/yats.vim' " TS Syntax call plug#end() inoremap jk nmap :NERDTreeToggle -" open NERDTree automatically + +" Start NERDTree. If a file is specified, move the cursor to its window. autocmd StdinReadPre * let s:std_in=1 -autocmd VimEnter * NERDTree +autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif + " Exit Vim if NERDTree is the only window remaining in the only tab. autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif From 0a2db1c859df726c4d22c1001fc6f0c0361f4490 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 19:24:51 -0700 Subject: [PATCH 10/33] added NerdTree commands --- vim_notes.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vim_notes.txt b/vim_notes.txt index e1654452..51673976 100644 --- a/vim_notes.txt +++ b/vim_notes.txt @@ -115,11 +115,15 @@ To open up a new vertical window: :vert new filename.txt You can cycle through windows using: -Ctrl + w or Ctrl + Shift + w +Ctrl + ww -*From NerdTree you can also simply push t to open a new tab of the file you have selected +# From NerdTree you can also simply push t to open a new tab of the file you have selected t +# Also from NerdTree you can simply push s to open a new window of the file you have selected +s + + Side Note: in NerdTree you can display hidden files by invoking capital I: I From f6afc5c3127bf9e4869b271a3d71ef34495a1e82 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 20:13:49 -0700 Subject: [PATCH 11/33] added mop --- bashrc.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bashrc.txt b/bashrc.txt index 90e7bae4..a714f3ce 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -163,7 +163,7 @@ alias Code="cd ~/Documents/Code" alias js="cd ~/Documents/Code/javascript" alias ls="ls -lah --color=auto" alias {his,hist}="history" -alias {cmatrix,matrix}="cmatrix -b -C cyan" +alias {cmatrix,matrix}="cmatrix -bm -C cyan" alias {top,htop,btop}="xfce4-terminal --geometry=127x51+0+0 -x btop" alias {firefox,ff}="firefox-developer-edition &" alias {sq,sql,sqlite}="sqlcipher" @@ -171,6 +171,7 @@ alias tree="tree -ad -L 3 --prune -C" alias {nv,nvi,vim,vi}="nvim" alias {mi,mic,nano}="micro" alias {mysql,maria,mdb}="mariadb" +alias {market,stonks,stocks}="mop" alias thinkorswim="~/thinkorswim/thinkorswim &" alias vs="code" alias shutdown="shutdown -h now" From 408deea4276c8a22ea19f168523e2fc3662e7aa4 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 21:29:57 -0700 Subject: [PATCH 12/33] appended to linux notes new programs --- linux_notes.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/linux_notes.txt b/linux_notes.txt index c3ddab30..24e9ced6 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -119,6 +119,20 @@ curl ifconfig.me To display all directories/files: tree +To display stocks: +mop + +To display weather: +inxi -w + +To open terminal video player: +mplayer + +To download youtube videos: +youtube-dl +Only Audio +youtube-dl -x + To display all directories EXCEPT for one directory: tree -I ignored_directory_name Example: From 1e7a91b2e1bb790729d2bfc5ce3c76204a3f1076 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 21:55:01 -0700 Subject: [PATCH 13/33] added more aliases --- bashrc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bashrc.txt b/bashrc.txt index a714f3ce..3bc28825 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -172,6 +172,9 @@ alias {nv,nvi,vim,vi}="nvim" alias {mi,mic,nano}="micro" alias {mysql,maria,mdb}="mariadb" alias {market,stonks,stocks}="mop" +alias {vlc,mpl}="mplayer" +alias mcube="musikcube" +alias ytdl="youtube-dl" alias thinkorswim="~/thinkorswim/thinkorswim &" alias vs="code" alias shutdown="shutdown -h now" From 300dfa25e32690a1dcad1efe81f3095c7ca4be61 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 22:00:41 -0700 Subject: [PATCH 14/33] added notes about programs --- linux_notes.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/linux_notes.txt b/linux_notes.txt index 24e9ced6..31026276 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -1,8 +1,7 @@ To Display All Info about your Linux Machine: uname -a -To change password: -passwd +To change password: passwd To change password as root for another user: passwd @@ -131,7 +130,7 @@ mplayer To download youtube videos: youtube-dl Only Audio -youtube-dl -x +youtube-dl -x --audio-format mp3 To display all directories EXCEPT for one directory: tree -I ignored_directory_name @@ -389,8 +388,8 @@ This will allow it to act mainly as a lighter weight version of sudo A note on doas: You probably do NOT want to remove sudo as certain programs like makepkg rely on it (although this is a questionable practice). -To have bpytop start on startup and align to the left of the screen, go to Session and Startup and create a new operation: -xfce4-terminal --geometry=127x51+0+0 -x bpytop +To have btop start on startup and align to the left of the screen, go to Session and Startup and create a new operation: +xfce4-terminal --geometry=127x51+0+0 -x btop Same with xbanish: xbanish From 0f3d6baa73d51944f6b38ed5146196c631aa1cef Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 15 Oct 2021 23:55:25 -0700 Subject: [PATCH 15/33] updated gpg and tar notes --- linux_notes.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/linux_notes.txt b/linux_notes.txt index 31026276..f294360c 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -36,6 +36,17 @@ gpg -d tar xzf +To compress/archive and encrypt a directory: + +tar cvzf = folder | gpg -c --passphrase yourpassword > folder.tar.gz.gpg + +And decompress directory: + +gpg -d folder.tar.gz.gpg | tar -xvzf - + +(make sure to clear your history afterwards) +history -c + To Display top five directories that use the most disk space: du -ahx . | sort -rh | head -5 From 21f5aea53ab0891c17dc5d4bb5614014c032c21b Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sat, 16 Oct 2021 01:20:18 -0700 Subject: [PATCH 16/33] added notation about youtube-dl --- linux_notes.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux_notes.txt b/linux_notes.txt index f294360c..8dd445c4 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -143,6 +143,11 @@ youtube-dl Only Audio youtube-dl -x --audio-format mp3 +To display quality versions to download: +youtube-dl -F +And then choose one +youtube-dl -f + To display all directories EXCEPT for one directory: tree -I ignored_directory_name Example: From b422e701e6dd45e60f29251616dd57965a7e70db Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sat, 16 Oct 2021 02:25:21 -0700 Subject: [PATCH 17/33] added xfce terminal preferences notes --- xfce_term_matcha_colors.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 xfce_term_matcha_colors.txt diff --git a/xfce_term_matcha_colors.txt b/xfce_term_matcha_colors.txt new file mode 100644 index 00000000..a2362029 --- /dev/null +++ b/xfce_term_matcha_colors.txt @@ -0,0 +1,3 @@ +#073A2F +#33D17A +Source Code Variable Bold 12 From 1bd14eff72667f14beb8db53f8371ece3afe7a3d Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 17 Oct 2021 10:58:03 -0700 Subject: [PATCH 18/33] added italics in comments in vim and applied vi keybindings in bashrc --- bashrc.txt | 3 +++ nvim/init.vim | 2 ++ 2 files changed, 5 insertions(+) diff --git a/bashrc.txt b/bashrc.txt index 3bc28825..1da962db 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -2,6 +2,9 @@ # ~/.bashrc # +# enable vi keybindings in terminal and terminal applications +set -o vi + [[ $- != *i* ]] && return colors() { diff --git a/nvim/init.vim b/nvim/init.vim index deeca8ed..970b4fdf 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -110,6 +110,8 @@ colorscheme nord "Enable transparency hi Normal guibg=NONE ctermbg=NONE +"Enable Comments with Italics (below selected colorscheme) +highlight Comment cterm=italic gui=italic " sync open file with NERDTree " " Check if NERDTree is open or active function! IsNERDTreeOpen() From c36b937f91679e9d94058451b89cf8b750cc8d73 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 17 Oct 2021 11:04:09 -0700 Subject: [PATCH 19/33] adjusted so vi keybindings didn't throw off ctrl l clear --- bashrc.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bashrc.txt b/bashrc.txt index 1da962db..bf2f8875 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -5,6 +5,10 @@ # enable vi keybindings in terminal and terminal applications set -o vi +# but keep ctrl l as the clear screen command +bind -m vi-command 'Control-l: clear-screen' +bind -m vi-insert 'Control-l: clear-screen' + [[ $- != *i* ]] && return colors() { From b5ab5ecb2cd72c2430c2d48925d9614f4cabba81 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 17 Oct 2021 12:05:52 -0700 Subject: [PATCH 20/33] added markdown preview to nvim --- nvim/init.vim | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 970b4fdf..dc83fe19 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -3,8 +3,7 @@ " Specify a directory for plugins call plug#begin('~/.vim/plugged') Plug 'neoclide/coc.nvim', {'branch': 'release'} -Plug 'scrooloose/nerdtree' -"Plug 'tsony-tsonev/nerdtree-git-plugin' +Plug 'scrooloose/nerdtree' "Plug 'tsony-tsonev/nerdtree-git-plugin' Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'tiagofumo/vim-nerdtree-syntax-highlight' Plug 'ryanoasis/vim-devicons' @@ -15,6 +14,7 @@ Plug 'preservim/nerdcommenter' Plug 'Yggdroot/indentLine' Plug 'sheerun/vim-polyglot' Plug 'turbio/bracey.vim', {'do': 'npm install --prefix server'} +Plug 'iamcco/markdown-preview.nvim', {'do': { -> mkdp#util#install() }} Plug 'luochen1990/rainbow' Plug 'yaegassy/coc-volar' Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } @@ -61,7 +61,13 @@ let g:NERDTreeGitStatusWithFlags = 1 "\ "Ignored" : "#808080" "\ } -"let g:NERDTreeIgnore = ['^node_modules$'] +let g:NERDTreeIgnore = ['^node_modules$'] + +" do not close the markdown preview tab when switching to other buffers +let g:mkdp_auto_close = 0 + +" keybind map Ctrl + m to :MarkdownPreview +nmap MarkdownPreviewToggle " vim-prettier "let g:prettier#quickfix_enabled = 0 @@ -112,6 +118,7 @@ hi Normal guibg=NONE ctermbg=NONE "Enable Comments with Italics (below selected colorscheme) highlight Comment cterm=italic gui=italic + " sync open file with NERDTree " " Check if NERDTree is open or active function! IsNERDTreeOpen() From a3ea2d68a7e0b681f72a78e358c77c454c271620 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 17 Oct 2021 12:15:07 -0700 Subject: [PATCH 21/33] got rid of bracey and added npm package live-server, created alias for it --- bashrc.txt | 1 + nvim/init.vim | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bashrc.txt b/bashrc.txt index bf2f8875..ac5d24bd 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -174,6 +174,7 @@ alias {cmatrix,matrix}="cmatrix -bm -C cyan" alias {top,htop,btop}="xfce4-terminal --geometry=127x51+0+0 -x btop" alias {firefox,ff}="firefox-developer-edition &" alias {sq,sql,sqlite}="sqlcipher" +alias serve="live-server" alias tree="tree -ad -L 3 --prune -C" alias {nv,nvi,vim,vi}="nvim" alias {mi,mic,nano}="micro" diff --git a/nvim/init.vim b/nvim/init.vim index dc83fe19..fe7d29f8 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -13,7 +13,6 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'preservim/nerdcommenter' Plug 'Yggdroot/indentLine' Plug 'sheerun/vim-polyglot' -Plug 'turbio/bracey.vim', {'do': 'npm install --prefix server'} Plug 'iamcco/markdown-preview.nvim', {'do': { -> mkdp#util#install() }} Plug 'luochen1990/rainbow' Plug 'yaegassy/coc-volar' @@ -35,9 +34,6 @@ autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | e " Exit Vim if NERDTree is the only window remaining in the only tab. autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif -" set bracey/liveserver to resresh on save -let g:bracey_refresh_on_save = 1 - "set colored brackets via rainbow" let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle" From 98d8d1d699448d5721de09241d9e872c5ac4ee8f Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 17 Oct 2021 13:37:48 -0700 Subject: [PATCH 22/33] added shortcut to open small horizontal window for using neoterm with --- nvim/init.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index fe7d29f8..2d8509b2 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -15,6 +15,7 @@ Plug 'Yggdroot/indentLine' Plug 'sheerun/vim-polyglot' Plug 'iamcco/markdown-preview.nvim', {'do': { -> mkdp#util#install() }} Plug 'luochen1990/rainbow' +Plug 'kassio/neoterm' Plug 'yaegassy/coc-volar' Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } @@ -65,6 +66,8 @@ let g:mkdp_auto_close = 0 " keybind map Ctrl + m to :MarkdownPreview nmap MarkdownPreviewToggle +nmap 50:new + " vim-prettier "let g:prettier#quickfix_enabled = 0 "let g:prettier#quickfix_auto_focus = 0 From 93bece192ba643824cf95d0478817d741892e3c2 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 17 Oct 2021 14:19:36 -0700 Subject: [PATCH 23/33] updated notes on new commands in nvim --- vim_notes.txt | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/vim_notes.txt b/vim_notes.txt index 51673976..849aa9d3 100644 --- a/vim_notes.txt +++ b/vim_notes.txt @@ -104,8 +104,9 @@ vaby # Dealing with multiple files: #Tabs: -To open a new tab there are a few options, one is to use the command line: -!tabnew + +Open a new tab: +:tabe You can cycle through tabs using: gt or gT @@ -114,6 +115,10 @@ To open up a new vertical window: :vert new filename.txt +Or another way to open a vertical window: + +Ctrl + w + v + You can cycle through windows using: Ctrl + ww @@ -145,3 +150,15 @@ vim item1.txt item2.txt :n item3.txt # Note that this would only open item3.txt, it clears the buffer when you do this and so you would have to enter your total list of files. + +# Open up NeoTerm: + +# I have set up a custom keybind for opening up a small horizontal window into which you can run neoterm + +Ctrl -s |T + +# If you close the window with neoterm running, you cannot simply type :T and start again, instead: + +:Ttoggle + +Will open it again, then you can start typing :T From dddd01443340861fab5047b3c0ce94bd2aaad7e3 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 17 Oct 2021 14:46:07 -0700 Subject: [PATCH 24/33] added keybound window resizer for nvim --- nvim/init.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index 2d8509b2..af6f0da4 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -16,6 +16,7 @@ Plug 'sheerun/vim-polyglot' Plug 'iamcco/markdown-preview.nvim', {'do': { -> mkdp#util#install() }} Plug 'luochen1990/rainbow' Plug 'kassio/neoterm' +Plug 'simeji/winresizer' Plug 'yaegassy/coc-volar' Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } @@ -66,6 +67,7 @@ let g:mkdp_auto_close = 0 " keybind map Ctrl + m to :MarkdownPreview nmap MarkdownPreviewToggle +" creates a small horizontal window for neoterm ( type |T ) nmap 50:new " vim-prettier From f30cbd55e07db1c12c59d5cc8ee082d8e373e42a Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 17 Oct 2021 15:27:37 -0700 Subject: [PATCH 25/33] commented out prettier-vim --- nvim/init.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index af6f0da4..90729b68 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -18,7 +18,7 @@ Plug 'luochen1990/rainbow' Plug 'kassio/neoterm' Plug 'simeji/winresizer' Plug 'yaegassy/coc-volar' -Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } +"Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } "Plug 'christoomey/vim-tmux-navigator' @@ -74,11 +74,11 @@ nmap 50:new "let g:prettier#quickfix_enabled = 0 "let g:prettier#quickfix_auto_focus = 0 " prettier command for coc -command! -nargs=0 Prettier :CocCommand prettier.formatFile +"command! -nargs=0 Prettier :CocCommand prettier.formatFile " run prettier on save -let g:prettier#autoformat = 0 +"let g:prettier#autoformat = 0 -autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync +"autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync autocmd BufEnter *.{js,jsx,ts,tsx,vue} :syntax sync fromstart autocmd BufLeave *.{js,jsx,ts,tsx,vue} :syntax sync clear @@ -144,7 +144,7 @@ let g:coc_global_extensions = [ \ 'coc-pairs', \ 'coc-tsserver', \ 'coc-eslint', - \ 'coc-prettier', + "\ 'coc-prettier', \ 'coc-json', \ ] " from readme From 28b4c6ef8ff57108a53846956df5ec58c06970f6 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Tue, 19 Oct 2021 10:19:00 -0700 Subject: [PATCH 26/33] added auto-save and modified ESC keybind mappings --- nvim/init.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index 90729b68..09abbed4 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -18,6 +18,7 @@ Plug 'luochen1990/rainbow' Plug 'kassio/neoterm' Plug 'simeji/winresizer' Plug 'yaegassy/coc-volar' +Plug '907th/vim-auto-save' "Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } "Plug 'christoomey/vim-tmux-navigator' @@ -42,6 +43,12 @@ let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowTo "set indentLine to nvim colorscheme "let g:indentLine_setColors = 0 +"enable AutoSave on start +let g:auto_save = 1 + +"silence AutoSave messages +let g:auto_save_silent = 1 + let g:webdevicons_enable = 1 let g:webdevicons_enable_nerdtree = 1 @@ -64,12 +71,20 @@ let g:NERDTreeIgnore = ['^node_modules$'] " do not close the markdown preview tab when switching to other buffers let g:mkdp_auto_close = 0 +" Custom keybindings + " keybind map Ctrl + m to :MarkdownPreview nmap MarkdownPreviewToggle " creates a small horizontal window for neoterm ( type |T ) nmap 50:new +" Toggle NerdTree +nmap :NERDTreeToggle + +"Escape Insert Mode with indentLine +imap ii + " vim-prettier "let g:prettier#quickfix_enabled = 0 "let g:prettier#quickfix_auto_focus = 0 From 7069b3a63066a9ab7568528e718bbeef54895123 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Thu, 21 Oct 2021 11:11:41 -0700 Subject: [PATCH 27/33] made note of gwe --- linux_notes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/linux_notes.txt b/linux_notes.txt index 8dd445c4..ed5c5e3e 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -460,6 +460,7 @@ iscan (funny enough, it's in the local repos, but you can also get it from the A krita inkscape photogimp(plugin for gimp that gives it a more photoshop feeling ui download zip file from github, see brodie robertson's YT on installation) +greenwithenvy(gwe - nvidia overclock/fanspeed adjustment gui application) xbanish (hides mouse on keyboard input, make sure to add to startup applications) xbanish is definitely best called on start up, to do so, simply create a startup command from the whisker menu's startup GUI, and enter: xbanish From 97bb7bf908b26899ce58068cf990c1d258b33304 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Thu, 21 Oct 2021 12:22:00 -0700 Subject: [PATCH 28/33] prepared easykeymap --- bashrc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/bashrc.txt b/bashrc.txt index ac5d24bd..6c00fe74 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -169,6 +169,7 @@ alias config="cd ~/.config" alias Code="cd ~/Documents/Code" alias js="cd ~/Documents/Code/javascript" alias ls="ls -lah --color=auto" +alias {ekm,easykeymap}="python3 -m easykeymap" alias {his,hist}="history" alias {cmatrix,matrix}="cmatrix -bm -C cyan" alias {top,htop,btop}="xfce4-terminal --geometry=127x51+0+0 -x btop" From b0790015fb9fb3336bc2e54ac79498772d25e63d Mon Sep 17 00:00:00 2001 From: tomit4 Date: Thu, 21 Oct 2021 12:51:33 -0700 Subject: [PATCH 29/33] bashrc.txt --- bashrc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc.txt b/bashrc.txt index 6c00fe74..1dd3089b 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -169,7 +169,7 @@ alias config="cd ~/.config" alias Code="cd ~/Documents/Code" alias js="cd ~/Documents/Code/javascript" alias ls="ls -lah --color=auto" -alias {ekm,easykeymap}="python3 -m easykeymap" +alias {evr,easyavr}="python3 -m easykeymap" alias {his,hist}="history" alias {cmatrix,matrix}="cmatrix -bm -C cyan" alias {top,htop,btop}="xfce4-terminal --geometry=127x51+0+0 -x btop" From e283f34cbc9ec4795e0b36e5bfb06748a57922b4 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 22 Oct 2021 11:51:06 -0700 Subject: [PATCH 30/33] added multi-cursor plugin, cleaned up init.vim --- nvim/init.vim | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 09abbed4..4c10263f 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -13,23 +13,27 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'preservim/nerdcommenter' Plug 'Yggdroot/indentLine' Plug 'sheerun/vim-polyglot' +Plug 'mg979/vim-visual-multi', {'branch': 'master'} Plug 'iamcco/markdown-preview.nvim', {'do': { -> mkdp#util#install() }} Plug 'luochen1990/rainbow' Plug 'kassio/neoterm' Plug 'simeji/winresizer' Plug 'yaegassy/coc-volar' Plug '907th/vim-auto-save' -"Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } - -"Plug 'christoomey/vim-tmux-navigator' Plug 'HerringtonDarkholme/yats.vim' " TS Syntax " Initialize plugin system call plug#end() -inoremap jk + +"Toggle NerdTree with Ctrl + n nmap :NERDTreeToggle +"Toggle Multi-Cursor with j or k +nmap +nmap + + " Start NERDTree. If a file is specified, move the cursor to its window. autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif @@ -82,19 +86,9 @@ nmap 50:new " Toggle NerdTree nmap :NERDTreeToggle -"Escape Insert Mode with indentLine +"Escape Insert Mode with ii imap ii -" vim-prettier -"let g:prettier#quickfix_enabled = 0 -"let g:prettier#quickfix_auto_focus = 0 -" prettier command for coc -"command! -nargs=0 Prettier :CocCommand prettier.formatFile -" run prettier on save -"let g:prettier#autoformat = 0 - -"autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync - autocmd BufEnter *.{js,jsx,ts,tsx,vue} :syntax sync fromstart autocmd BufLeave *.{js,jsx,ts,tsx,vue} :syntax sync clear From 271504c0a3e2c2465aea9c708c60aac676f7f3b8 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 22 Oct 2021 11:53:28 -0700 Subject: [PATCH 31/33] fixed nerdtree shortcut --- nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index 4c10263f..e9df57e5 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -27,7 +27,7 @@ Plug 'HerringtonDarkholme/yats.vim' " TS Syntax call plug#end() "Toggle NerdTree with Ctrl + n -nmap :NERDTreeToggle +nmap :NERDTreeToggle "Toggle Multi-Cursor with j or k nmap From c8a1dfab39629660440ac46fa31c1bd2ba365f22 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 22 Oct 2021 12:14:39 -0700 Subject: [PATCH 32/33] remapped nerdtree to ctrl -l --- nvim/init.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index e9df57e5..e191cd59 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -26,14 +26,13 @@ Plug 'HerringtonDarkholme/yats.vim' " TS Syntax " Initialize plugin system call plug#end() -"Toggle NerdTree with Ctrl + n -nmap :NERDTreeToggle +"Toggle NerdTree with Ctrl + l +nmap :NERDTreeToggle "Toggle Multi-Cursor with j or k nmap nmap - " Start NERDTree. If a file is specified, move the cursor to its window. autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif @@ -83,9 +82,6 @@ nmap MarkdownPreviewToggle " creates a small horizontal window for neoterm ( type |T ) nmap 50:new -" Toggle NerdTree -nmap :NERDTreeToggle - "Escape Insert Mode with ii imap ii From bff92346e84748c4b51197c297b3275c14b4b629 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 22 Oct 2021 15:54:22 -0700 Subject: [PATCH 33/33] aliased shred command --- bashrc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/bashrc.txt b/bashrc.txt index 1dd3089b..3573fdb6 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -195,5 +195,6 @@ alias rmcache="paccache -rvk3" alias rm="rm -i" alias sudo="doas" alias {doasedit,sudoedit}="doas rnano" +alias shred="shred -uz" [ -f ~/.fzf.bash ] && source ~/.fzf.bash