Skip to content

Instantly share code, notes, and snippets.

@ByungSunBae
ByungSunBae / EditGraph.py
Created December 5, 2017 09:18
simple tensorflow graph edit example
# from : https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/graph_editor/examples/edit_graph_example.py
import numpy as np
import tensorflow as tf
from tensorflow.contrib import graph_editor as ge
# create a graph
g = tf.Graph()
with g.as_default():
@Hakky54
Hakky54 / openssl_commands.md
Last active May 2, 2024 23:49 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL πŸ”

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@upsuper
upsuper / delayed_balance.py
Created June 27, 2021 10:29
Beancount plugin to handle transactions geting delayed and not being included in the next bank statement
#!/usr/bin/env python3
# Copyright (C) 2021 Xidorn Quan
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,

TL;DR

When Riot Games introduces the Vanguard anti-cheat to League of Legends, you should STOP playing and you should not install the anti-cheat when you get the pop-up. Vanguard is a kernel-level anticheat and these anticheats operate at a privilege level HIGHER THAN YOUR OWN. The anti-cheat can do things that even you can't do, without asking or letting you know. It's like Riot installing a camera in every room of your house and getting a copy of every key inside.

Here is just one example of what they can do: https://www.theregister.com/2013/11/20/esea_gaming_bitcoin_fine/

https://www.wired.com/2013/11/e-sports/

Who am I?

@tomByrer
tomByrer / English-Homophones.md
Last active May 2, 2024 23:41
English Homophones

English Homophones

Words that sound alike, but are spelled differently (usually different meanings).

Use cases

  • filter out dictionary words, resulting in a word list that reduces confusion for verbal password phrases
  • rhymes (song lyrics, poetry)
  • humor/jokes
π–‚π–Šπ–‘π–ˆπ–”π–’π–Š 𝖙𝖔 π–’π–ž π–˜π–™π–Šπ–†π–’ π–•π–—π–”π–‹π–Žπ–‘π–Š
___β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–€β—’β–†β–…β–ƒβ€†γ€€γ€€γ€€β€†β€†β€†γ€€γ€€β€‚γ€€γ€€γ€€β€‚β–€β–€β–ˆβ–ˆβ–ˆβ–ˆ
___β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œβ—’β–€β–ˆβ–“β–“β–ˆβ—£β€†β€†β€†γ€€γ€€γ€€γ€€γ€€γ€€β–‚β–ƒβ–ƒγ€€ β–ˆβ–ˆβ–ˆβ–ˆ
__β–β–β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–Œβ–β–“β–“β–‰γ€€γ€€γ€€γ€€γ€€γ€€γ€€β—’β–“β–“β–ˆ β–Ό β–ˆβ–ˆβ–ˆβ–ˆ
__β€†β–Œβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Žγ€€β€†β–€β–€β–€γ€€γ€€γ€€γ€€γ€€γ€€ γ€€β–ˆβ–“β–“β–Œ β–Œ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ
_▐ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Šγ€€β€‚G γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€β–€β—₯◀▀    β–²β–ˆβ–ˆβ–ˆβ–ˆβ–‰
_β–Šβ€†β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ—£β€†γ€€γ€€γ€€γ€€γ€€γ€€β€†β€†β€²γ€€γ€€γ€€Gγ€€β€†β–ƒβ—’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–
_β€†β–‰β€‚β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ—£β€†γ€€γ€€γ€€γ€€β€†β–ƒγ€γ€€γ€€γ€€γ€€γ€€β—’β–ˆβ–ˆβ–ˆβ–Šβ–ˆβ–ˆβ–ˆβ€Š
_β–‰γ€€β€†β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–†β–ƒγ€€γ€€γ€€γ€€γ€€γ€€γ€€β€‚β—’β–ˆβ–ˆβ–ˆβ–ˆβ–Œβ€‚β–ˆβ–ˆβ–ˆβ€Š
@tobek
tobek / get-image-urls.js
Last active May 2, 2024 23:39
Save images from chrome inspector/dev tools network tab
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
*/
@edolstra
edolstra / nix-lang.md
Last active May 2, 2024 23:39
Nix language changes

This document contains some ideas for additions to the Nix language.

Motivation

The Nix package manager, Nixpkgs and NixOS currently have several problems:

  • Poor discoverability of package options. Package functions have function arguments like enableFoo, but there is no way for the Nix UI to discover them, let alone to provide programmatic ways to
β£Ώβ‘Ÿβ ™β ›β ‹β ©β ­β£‰β‘›β’›β «β ­β „β ’β „β „β „β ˆβ ‰β ›β’Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώ
β£Ώβ‘‡β „β „β „β „β£ β –β ‹β£€β‘€β „β ’β „β „β „β „β „β „β „β „β „β£ˆβ‘­β ­β „β „β „β ‰β ™
β£Ώβ‘‡β „β „β’€β£žβ£‘β ΄β šβ β „β „β’€β  β „β „β „β „β „β „β „β ‰β „β „β „β „β „β „β „β „
β£Ώβ‘‡β „β‘΄β β‘œβ£΅β’—β’€β „β’ β‘”β β „β „β „β „β „β „β „β „β „β „β „β „β „β „β „β „β „
β£Ώβ‘‡β‘œβ „β‘œβ „β „β „β ‰β£ β ‹β  β „β’€β‘„β „β „β£ β£†β „β „β „β „β „β „β „β „β „β „β’Έ
β£Ώβ Έβ „β‘Όβ „β „β „β „β’°β β „β „β „β ˆβ£€β£ β£¬β£­β£›β „β β „β‘„β „β „β „β „β „β’€β£Ώ
⣏⠄⒀⠁⠄⠄⠄⠄⠇⒀⣠⣴⣢⣿⣿⣿⣿⣿⣿⑇⠄⠄⑇⠄⠄⠄⠄⒀⣾⣿
β£Ώβ£Έβ ˆβ „β „β °β Ύβ ΄β’Ύβ£»β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ’β£Ύβ’€β β „β „β „β’ β’Έβ£Ώβ£Ώ
β£Ώβ£Ώβ£†β „β †β „β£¦β£Άβ£¦β£Œβ£Ώβ£Ώβ£Ώβ£Ώβ£·β£‹β£€β£ˆβ ™β ›β‘›β Œβ „β „β „β „β’Έβ’Έβ£Ώβ£Ώ
β£Ώβ£Ώβ£Ώβ „β „β „β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ ‡β ˆβ „β „β „β „β „β ˆβ’Έβ£Ώβ£Ώ
@JamesChevalier
JamesChevalier / mac_utf8_insanity.md
Last active May 2, 2024 23:38
Unicode on Mac is insane. Mac OS X uses NFD while everything else uses NFC. This fixes that.

convmv manpage

Install convmv if you don't have it

sudo apt-get install convmv

Convert all files in a directory from NFD to NFC:

convmv -r -f utf8 -t utf8 --nfc --notest .