radeon module
__init radeon_init() (radeon_device.c)
=> radeon_kms_pci_driver.probe = radeon_pci_probe
=> if (radeon_modeset == 1)
"radeon kernel modesetting enabled.\n"
driver = &kms_driver
pdriver = &radeon_kms_pci_driver
radeon_register_atpx_handler() (radeon_atpx_handler.c)
=> drm_pci_init() (drm_pci.c)
This file contains 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
# -*- coding: utf-8 -*- | |
import logging | |
import requests | |
LOGGER = logging.getLogger(__name__) | |
def join(*args): |
This file contains 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
terraform apply terra-plan | |
2021/01/05 15:12:35 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. | |
Use TF_LOG=TRACE to see Terraform's internal logs. | |
---- | |
2021/01/05 15:12:35 [INFO] Terraform version: 0.13.5 | |
2021/01/05 15:12:35 [INFO] Go runtime version: go1.15.3 | |
2021/01/05 15:12:35 [INFO] CLI args: []string{"/usr/bin/terraform", "apply", "terra-plan"} | |
2021/01/05 15:12:35 [DEBUG] Attempting to open CLI config file: /home/momoka/.terraformrc | |
2021/01/05 15:12:35 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2021/01/05 15:12:35 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins |
This file contains 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 main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
) |
This file contains 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
#!/bin/bash | |
function log() { | |
ts=$(date +%Y-%m-%d_%T,%6N) | |
level=$1 | |
shift 1 | |
case $level in | |
(err*) | |
echo ${ts} [ERROR]: $* 1>&2 | |
;; |
This file contains 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 ipconv | |
import ( | |
"fmt" | |
"strconv" | |
"strings" | |
) | |
func Conv(ip string) (uint32, error) { | |
segs := strings.Split(ip, ".") |
This file contains 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
# -*- coding: utf-8 -*- | |
import errno | |
import os | |
import fcntl | |
# !! License GPLv2 !! | |
# only work on Linux, MacOSX, may work on Windows, no tested. | |
# some syscall/flags not available on other OS(like Solaris), so not supported |
This file contains 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/python2 | |
# -*- coding: utf-8 -*- | |
import logging | |
import os | |
import re | |
import subprocess | |
import sys | |
import syslog | |
import dns.resolver |
This file contains 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
# -*- coding: utf-8 -*- | |
import gc | |
s = {} | |
for i in gc.get_objects(): | |
_ = str(type(i)) | |
if _ in s: | |
s[_] += 1 | |
else: |
This file contains 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
# -*- coding: utf-8 -*- | |
from jinja2 import Environment, FileSystemLoader | |
env = Environment(loader=FileSystemLoader('templates')) | |
t = env.get_template('test.jinja2') | |
print(t.render(name='world')) |
NewerOlder