Skip to content

Instantly share code, notes, and snippets.

@Sotatek-NuiTran
Sotatek-NuiTran / multi_ssh_git.md
Last active May 3, 2024 03:48
Setup SSH keys for multiple github and gitlab account

Setup SSH keys for multiple github and gitlab account

Prepare SSH keys:

Add a new key

$ ssh-keygen -t rsa_new -C "your_email@youremail.com"

Start ssh-agent

$ eval `ssh-agent -s`
@jinjier
jinjier / 250.csv
Last active May 3, 2024 03:43
JavDB Top 250 movies code list. [Updated at 2024/02]
1 LAFBD-41
2 SSNI-497
3 ABP-984
4 IPX-580
5 IPX-811
6 IPX-177
7 STARS-804
8 SMBD-115
9 ABP-968
10 ABF-017
@drakeguan
drakeguan / ConvertEXRToJPG.py
Created August 22, 2013 03:55
Convert OpenEXR to JPEG with gamma encoding (2.4) efficiently through OpenEXR and numpy.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import numpy
import OpenEXR
import Imath
import Image
@asukakenji
asukakenji / go-stdlib-interface-selected.md
Last active May 3, 2024 03:38
Go (Golang) Standard Library Interfaces (Selected)

Go (Golang) Standard Library Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

All of the following information is based on go version go1.8.3 darwin/amd64.

@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@tophtucker
tophtucker / .DS_Store
Last active May 3, 2024 03:34
Measure text
@kulak-at
kulak-at / app.js
Created August 12, 2020 15:31
theme -react
const useThemeDetector = () => {
const getCurrentTheme = () => window.matchMedia("(prefers-color-scheme: dark)").matches;
const [isDarkTheme, setIsDarkTheme] = useState(getCurrentTheme());
const mqListener = (e => {
setIsDarkTheme(e.matches);
});
useEffect(() => {
const darkThemeMq = window.matchMedia("(prefers-color-scheme: dark)");
darkThemeMq.addListener(mqListener);
@nwesterhausen
nwesterhausen / node_exporter_setup.md
Last active May 3, 2024 03:33
node_exporter installation on ubuntu

Installing node_exporter

Steps to install node_exporter

  1. Add user for node_exporter

    sudo useradd --no-create-home --shell /bin/false node_exporter
@Flash-Ser
Flash-Ser / wmob1.js
Created May 11, 2022 19:13
WAME GENERATOR : MADE BY FLASH SER ONLY FOR LYFE MD WHATSAPP BOT
const {
forwardOrBroadCast, bot,
parsedJid,
getBuffer,
} = require('../lib/')
@CMCDragonkai
CMCDragonkai / wework_wifi_on_linux_with_nmcli.md
Last active May 3, 2024 03:30
WeWork WiFi on Linux with `nmcli`

WeWork WiFi on Linux

When using nmcli device wifi connect 'WeWorkWiFi' password '...', you'll get something like:

Error: Failed to add/activate new connection: Failed to determine AP security information

To actually use it, you need to create a connection first and configure it: