Skip to content

Instantly share code, notes, and snippets.


Ömer Faruk Çakı ofarukcaki

View GitHub Profile
KoryNunn /
Last active Nov 26, 2021
Handshake airdrop for github users.

Had 15 github followers in 2019? You can get about $4kAUD of crypto for minimal effort.

Explain this scam

That's legitimately a good default position to hold, however, in this case, the free money is a function of time, and not only charity.

In February 2020, in order to promote Handshake (HNS) to developers, an airdrop was offered to any Github user with more than 15 followers. The Airdrop would give you 4246HNS, at the time worth around at $0.08USD per coin, for a total of $339.68USD, pretty generous!

Today, 4246HNS is worth around $4000 dollarydoos, and there are plenty of github users who haven't claimed theirs.


Pure ESM package

The package linked to from here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
corinneling /
Last active Dec 31, 2021
Node web scraper with axios and cheerio

Node JS Web Scraper

I this is part of the first node web scraper I created with axios and cheerio. I took out all of the logic, since I only wanted to showcase how a basic setup for a nodejs web scraper would look.

const cheerio = require('cheerio'),
      axios = require('axios'),
      url = `<url goes here>`;
matthewjberger /
Last active Dec 20, 2021
How to make an electron app using Create-React-App and Electron with Electron-Builder.
ingo-m /
Last active Jul 4, 2021
How to install CUDA on Debian

How to install CUDA on Debian 8 (Jessie)

This document describes how to install nvidia drivers & CUDA in one go on a fresh debian install.

Work in progress


  • Start with a fresh Debian install.
cdock1029 / index.js
Created Mar 18, 2017
firebase-functions express.js path fix
View index.js
const app = require('express')();
// define your routes, etc ...
exports.route = functions.https.onRequest((req, res) => {
// without trailing "/" will have req.path = null, req.url = null
// which won't match to your app.get('/', ...) route
balupton / next.config.js
Created Feb 3, 2017
next.js webpack configs
View next.config.js
module.exports = {
webpack: (config) => {
const webpack = require('webpack')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
config.plugins = config.plugins || []
config.plugins.push(new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en/))
config.plugins.push(new BundleAnalyzerPlugin())
return config
View recaptcha.fake.js
window.grecaptcha = {
getResponse: function() {
reset: function() {
console.log("FAKE-RECAPTCHA-RESET", arguments)
render: function() {
application2000 / how-to-install-latest-gcc-on-ubuntu-lts.txt
Last active Dec 19, 2021
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
View how-to-install-latest-gcc-on-ubuntu-lts.txt
These commands are based on a askubuntu answer
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \