Skip to content

Instantly share code, notes, and snippets.

View stahlnow's full-sized avatar
👽
I killed the flame to enable dark mode

stahl stahlnow

👽
I killed the flame to enable dark mode
View GitHub Profile
@HaoyangLiu
HaoyangLiu / ABCToken.sol
Last active November 9, 2022 16:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.4+commit.1dca32f3.js&optimize=true&gist=
pragma solidity 0.6.4;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
@rjhansen
rjhansen / keyservers.md
Last active April 2, 2025 05:42
SKS Keyserver Network Under Attack

SKS Keyserver Network Under Attack

This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Terminological Note

"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.

Who am I?

@chriscandy
chriscandy / install-arch-linux-using-efi-and-grub.md
Last active April 6, 2025 03:45
Install Arch Linux using EFI and GRUB

Installing Arch linux with EFI

  1. Change keyboard layout:

    • loadkeys no
  2. Verify boot mode:

    • ls /sys/firmware/efi/efivars (If the directory exist your computer supports EFI)
  3. Ping some site on the Internet to verify connection:

  • ping archlinux.org
@u1735067
u1735067 / 1. i2c-rtc.sh
Last active March 11, 2021 15:28
Properly set-up i2c RTC ds1307 on ArchLinux
echo "dtoverlay=i2c-rtc,ds3231" >> /boot/config.txt
cat <<EOF > /etc/udev/rules.d/55-rtc-i2c.rules
#/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc"
#/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"
# I2C RTC, when added and not the source of the sys clock (kernel), is used
ACTION=="add", SUBSYSTEMS=="i2c", SUBSYSTEM=="rtc", KERNEL=="rtc0", ATTR{hctosys}=="0", \\
RUN+="/sbin/hwclock '--rtc=\$root/\$name' --hctosys", \\
RUN+="/sbin/logger --tag systemd-udevd 'System clock set from i2c hardware clock \$name (\$attr{name})'"
@kylemcdonald
kylemcdonald / Triplet Loss.ipynb
Last active November 29, 2022 20:42
Experimenting with triplet loss embeddings.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@miblodelcarpio
miblodelcarpio / notes_weechat
Last active January 14, 2025 21:38
WeeChat Relay Setup
weechat
Relay setup
On the server's instance of weechat:
/relay add ssl.irc 8001
/secure set relay WHATEVER_PASSWORD
/set relay.network.password "${sec.data.relay}"
On the server, to generate the ssl certificate:
@5shekel
5shekel / neo-ali-bom.txt
Last active November 19, 2017 15:10
aliexpress links for neopixel
https://www.aliexpress.com/item/100pcs-LOT-Blue-Light-Diode-1210-SMD-LED-Super-Bright-3528-LED-3-5-2-8mm/32821411982.html
https://www.aliexpress.com/item/100pcs-LOT-Red-Light-Diode-1210-SMD-LED-Super-Bright-3528-LED-3-5-2-8mm/32821451559.html
https://www.aliexpress.com/item/5-Values-100PCS-LOT-Super-Bright-3528-1210-SMD-LED-Red-Green-Blue-Yellow-White-20pcs/32798221267.html
https://www.aliexpress.com/item/220pcs-lot-free-shipping-2N7002-MOS-SOT-23-100-new-Original-Quality-Assurance/2029421500.html
https://www.aliexpress.com/item/Free-shipping-1206-SMD-capacitor-10UF-25V-106K-100PCS/32372423744.html
https://www.aliexpress.com/item/1206-104-100NF-0-1UF-1206-SMD-capacitance-SMD-capacitors-100PCS-LOT/2025043980.html
https://www.aliexpress.com/item/100pcs-lot-SMD-Chip-Resistor-1206-1K-1K-ohm-5-Free-shippng/32382933718.html
https://www.aliexpress.com/item/100pcs-lot-SMD-Chip-Resistor-1206-330R-330-ohm-5-Free-shippng/32383295862.html
https://www.aliexpress.com/item/100pcs-lot-SMD-Chip-Resistor-1206-22K-22K-ohm-5-Fre
@dinoperovic
dinoperovic / vue-djangocms-patch.js
Last active November 8, 2021 17:10
Patch for Vue.js to enable djangoCMS's "double click to edit" feature.
// Patch for Vue.js to enable djangoCMS's "double click to edit" feature.
//
// To set it up you should call `new VueDjangoCMSPatch(this)` in a `created`
// hook on a Vue instance.
// And add 'cms-template' and 'cms-plugin' to `Vue.config.ignoredElements`.
var VueDjangoCMSPatch = function (instance) {
this.instance = instance;
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active April 19, 2025 01:52
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@HenrikBengtsson
HenrikBengtsson / xerox_accounting_template.ppd
Last active January 6, 2022 19:39
Linux: Pass Accounting information to Xerox Printer via Postscript Printer Description (PPD)
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*% GENERAL ACCOUNTING
*%
*% Instructions:
*%
*% 1. Identify the accounting option or options used by the printer.
*%
*% 2. Replace the '{{...}}' placeholders with corresponding information
*% (without curly brackets). For example, '<22>XRX_USERID,{{userid}}<22>'
*% should become '<22>XRX_USERID,12345<22>'.