There are now official docs, so follow those as they'll be up-to-date and easier to follow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#+BEGIN_SRC emacs-lisp :results output silent :exports none | |
(setq | |
org-latex-minted-options '(("breaklines" "true")) | |
org-latex-listings 'minted | |
org-latex-packages-alist '(("" "minted" "parskip" "hypersetup")) | |
org-latex-to-pdf-process | |
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" | |
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" | |
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f") | |
org-latex-pdf-process org-latex-to-pdf-process) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* Shoutouts: | |
* | |
* Bytecode origin https://www.reddit.com/r/ethereum/comments/6ic49q/any_assembly_programmers_willing_to_write_a/dj5ceuw/ | |
* Modified version of Vitalik's https://www.reddit.com/r/ethereum/comments/6c1jui/delegatecall_forwarders_how_to_save_5098_on/ | |
* Credits to Jorge Izquierdo (@izqui) for coming up with this design here: https://gist.github.com/izqui/7f904443e6d19c1ab52ec7f5ad46b3a8 | |
* Credits to Stefan George (@Georgi87) for inspiration for many of the improvements from Gnosis Safe: https://github.com/gnosis/gnosis-safe-contracts | |
* | |
* This version has many improvements over the original @izqui's library like using REVERT instead of THROWing on failed calls. | |
* It also implements the awesome design pattern for initializing code as seen in Gnosis Safe Factory: https://github.com/gnosis/gnosis-safe-contracts/blob/master/contracts/ProxyFactory.sol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.19; | |
/** | |
* @title NonFungibleTokenLib | |
* @author Ghilia Weldesselasie | |
* SHAMELESS SELF-PLUG: https://github.com/ERC-ME/Whitepaper | |
* | |
* version 1.2.1 | |
* Copyright (c) 2018 Ghilia Weldesselasie | |
* The MIT License (MIT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir emacs | |
cd emacs | |
git init | |
git remote add origin https://github.com/emacs-mirror/emacs.git | |
git fetch --depth 1 origin emacs-26 | |
git reset --hard FETCH_HEAD | |
sudo apt install autoconf make gcc texinfo libgtk-3-dev libxpm-dev libjpeg-dev libgif-dev libtiff5-dev libgnutls-dev libncurses5-dev | |
./configure | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
numDisplays=$(xrandr --current | grep '\bconnected' | wc -l) | |
outputs="--output eDP1 --primary --mode 2880x1620 --pos 2880x0 --dpi 96 --scale 1x1" | |
xrandr --output HDMI1 --off | |
xrandr --output DP2 --off | |
if xrandr | grep "HDMI1 connected"; then | |
outputs+=" --output HDMI1 --auto --mode 1920x1080 --pos 0x0 --right-of eDP1 --scale 1.5x1.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Corsair headsets will stuck the apps on your linux system. This is due to wrong usb-mapping. | |
# thx to http://www.c0urier.net/2016/corsair-gaming-void-usb-rgb-linux-fun | |
# 1. open terminal | |
# 2. type this and search the line with your headset | |
lsusb | |
# Get the USB ID of the headset and add it to xorg.conf: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
## DISK CONFIGURATION | |
imports = |