Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Open $ vim /etc/default/grub
then add elevator=noop
next to GRUB_CMDLINE_LINUX_DEFAULT
. Run $ update-grub
and $ cat /sys/block/sda/queue/scheduler
to be sure that noop is being used:
$ vim /etc/default/grub
$ update-grub
$ cat /sys/block/sda/queue/scheduler
[noop] deadline cfq
import hashlib as hasher | |
import datetime as date | |
# Define what a Snakecoin block is | |
class Block: | |
def __init__(self, index, timestamp, data, previous_hash): | |
self.index = index | |
self.timestamp = timestamp | |
self.data = data | |
self.previous_hash = previous_hash |
// For all the confusing Prometheus configuration and | |
// regular expressions, | |
// explained in examples. | |
// Remember, there are default values for each item if it's missing. | |
// regex is (.*), | |
// replacement is $1, | |
// separator is ; | |
// ,and action is replace |
// PhantomJS script to reboot a Huawei B315 modem | |
// | |
// Author: Jonathan Hoskin / 2017-09-02 | |
// Twitter: @jhossnz | |
// Github: https://github.com/jonathanhoskin | |
// | |
// Requires PhantomJS ~ 2.1.1 | |
// | |
// Enter your own modem details here | |
var username = 'admin'; |
package main | |
import "core:fmt" | |
import "core:io" | |
import "core:odin/ast" | |
import "core:odin/parser" | |
import "core:os" | |
import "core:path/filepath" | |
import "core:slice" | |
import "core:strings" |
Как получить украшение профиля?
Ctrl
+Shift
+I
, чтобы открыть Инструменты разработчика# SGR color constants | |
# rene-d 2018 | |
class Colors: | |
""" ANSI color codes """ | |
BLACK = "\033[0;30m" | |
RED = "\033[0;31m" | |
GREEN = "\033[0;32m" | |
BROWN = "\033[0;33m" | |
BLUE = "\033[0;34m" |
Knowledge and Education should be open and free. Hierarchy and Exploitation must be abolished.