Skip to content

Instantly share code, notes, and snippets.

View mbledkowski's full-sized avatar
🤔
Coding

echo r"0xX4H" | rev mbledkowski

🤔
Coding
View GitHub Profile
@slavafomin
slavafomin / 00-typescript-esm.md
Last active September 20, 2024 21:31
Using TypeScript with native ESM

Using TypeScript Node.js with native ESM

This reference guide shows how to configure a TypeScript Node.js project to work and compile to to native ESM.

Rationale

CommonJS module system was introduced by the Node.js developers due to the lack of the notion of "modules" in the original JavaScript (ECMAScript) language specification at that time. However, nowadays, ECMAScript has a standard module system called ESM — ECMAScript Modules, which is a part of the accepted standard. This way CommonJS could be considered vendor-specific and obsolete/legacy. Hopefully, TypeScript ecosystem now supports the "new" standard.

So the key benefits are:

@HichamBenjelloun
HichamBenjelloun / instructions-vmware-workstation-pro-16-on-fedora-36.sh
Last active June 2, 2024 19:49
How to install VMware Workstation Pro 16.2.3 on Fedora 36
# Install VMware Workstation Pro 16.2.3 on Fedora 36
# Install packages to build kernel modules
sudo dnf install @development-tools
sudo dnf install kernel-headers-$(uname -r) kernel-devel-$(uname -r) dkms elfutils-libelf-devel qt5-qtx11extras
# Download VMware Workstation Pro here: https://www.vmware.com/go/getworkstation-linux
# Install VMware Workstation Pro
chmod +x VMware-Workstation-Full-16.2.3-19376536.x86_64.bundle
@eizedev
eizedev / treestyletab.css
Created June 11, 2021 10:20
Firefox Tree Style Tab CSS - Collapsible
/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar.
#tabbar {
border: 0;
overflow-y: scroll !important;
margin-left: -18px !important;
}
*/
/* Hide .twisty and adjust margins so favicons have 7px on left. */
.tab .twisty {
@ManuKpL
ManuKpL / initProject.md
Last active October 20, 2022 00:59
Quick init node project from terminal (JS or TS)

Quickly init empty node project

General information

Nota Bene

  • npm v7 is required to use npm-set-script command (see npm doc)

Dependencies

@rssnyder
rssnyder / oracle-cloud-free-tier-guide.md
Last active September 17, 2024 09:19
oracle-cloud-free-tier-guide

how to leverage oracle's temping offers

free tier limits

The limits of the free tier say that you can create up to 4 instances.

  • x2 x86 instances (2core/1g)
  • x2 ampere instances (with 4core/24g spread between them)
  • 200GB total boot volume space across all intances (minimum of 50G per instance)

create your account

@mbledkowski
mbledkowski / README.md
Last active July 6, 2021 13:32
Pinterest promoted posts blocking - uBlock rule

Ad-blocking (promoted posts) rule for Pinterest - uBlock

uBlock dashboard > My Filters > Add this line:

pinterest.com##div[data-grid-item="true"]:has(div > div > div > div > div:nth-child(2) > div > div > div > div > div.ujU.zI7.iyn.Hsu > a > div > div > div > div > div[title="Promoted by"])

@salilsaxena
salilsaxena / Full_Description.md
Last active July 4, 2024 16:53
CUDA + CuDNN install in Fedora/Ubuntu for Tensorflow-gpu guide.

We will not be using anacond, just classic old pip3
Works on python <= 3.8
Recomended OS: Fedora29(Have reached End of Life), Ubuntu 18.04(End of life: 2023). You can also use Later versions of same OS.
Step 1:
 Install Nvidia Propiatary Drivers:
  For ubuntu: link[https://medium.com/@redowan/no-bullshit-guide-on-installing-tensorflow-gpu-ubuntu-18-04-18-10-238924cc4a6a]. //Just follow the part where he shows how to install drivers.
  For Fedora using optimus: link[https://www.reddit.com/r/Fedora/comments/ga1ek6/optimus_setting_the_nvidia_gpu_as_primary/]. I personally stopped before Step 8(in tutorial).
 I know they are Lenghty process(may require several Reboots, but stay with me.
Step 2:
 Install Cuda10.1 for tf2.2 and tf1.15{only for python<3.8}, using this link1[https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os=Linux]. A local .deb/.rpm method is recomended.

// Rename object keys
const renameKeys = (keysMap, obj) =>
Object.keys(obj).reduce(
(acc, key) => ({
...acc,
...{ [keysMap[key] || key]: obj[key] },
}),
{}
);
@saravanabalagi
saravanabalagi / ad_removal_jdownloader.md
Created April 14, 2020 14:33
Removing Ads in Jdownloader

Remove ads in JDownloader

Search for the following keywords in "advanced settings" and disable (uncheck) the options which appear.

premium alert
oboom
Special Deals
Donate
Banner
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution
Last active September 21, 2024 03:06
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.