- create keys
sudo open-ssl req -new -x509 -newkey rsa:2048 -keyout /path/to/nvidia-private.key -outform DER /path/to/nvidia-public.der -days 36500 -subj "/CN=Graphics Driver"
- load new keys into mok
sudo mokutil --import /path/to/public-nvidia.der
- create password, remember password
- disable nouveau
echo options nouveau modset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
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 python | |
import argparse | |
import sys | |
import shlex | |
import subprocess | |
import os | |
import os.path | |
def get_command(branch=None, grep=None): |
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
package reflection.magic; | |
import io.vertx.core.Vertx; | |
import io.vertx.core.VertxOptions; | |
import io.vertx.core.http.HttpMethod; | |
import io.vertx.core.http.HttpServer; | |
import io.vertx.core.http.HttpServerOptions; | |
import io.vertx.ext.web.Route; | |
import io.vertx.ext.web.Router; | |
import org.reflections.Reflections; |
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
diff --git a/src/http/request.cr b/src/http/request.cr | |
index 8cc855f..d64e7b9 100644 | |
--- a/src/http/request.cr | |
+++ b/src/http/request.cr | |
@@ -7,7 +7,6 @@ class HTTP::Request | |
getter headers | |
getter body | |
getter version | |
- getter cookies | |
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
# the goal of the bot is to do as many clicks as possible and collect gold from candy when it appears | |
# works better in chrome than firefox (firefox might hang) | |
# | |
# > virtualenv venv | |
# > source venv/bin/activate | |
# > pip install PyUserInput python3-xlib | |
# > python chbot.py | |
# | |
# change GAME_UPPER_LEFT_X / Y to fit the game is located in your version |
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
package cache | |
import ( | |
"bytes" | |
"encoding/json" | |
"github.com/golang/groupcache" | |
) | |
type GetterFunc func(string) (interface{}, error) |
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 perl | |
use strict; | |
use warnings; | |
# apt-get install libtext-csv-xs-perl | |
use Getopt::Long; | |
use Text::CSV_XS; |
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
(ns omnom.i18n | |
"This is a simplified bare minimum re-work of https://github.com/ptaoussanis/tower" | |
(:require [clojure.java.io :as io] | |
[clojure.string :as string])) | |
(def ^:dynamic *Locale* :sv) | |
(defonce ^:private config (atom {})) | |
(defn- update-config! [dict] (swap! config conj dict)) |
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 perl | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
use Text::CSV_XS; | |
my $delimiter = ','; | |
my $binary = 0; |
NewerOlder