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)
View fortigate.py
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): |
View gist:6fbd9f35b14f6a24c4feb9f400a0aca0
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 |
View jc.go
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" | |
) |
View pyx
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 | |
;; |
View ipconv.go
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, ".") |
View local.py
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 |
View ddns_updater.py
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 |
View drm-call-stack.md
View app.py
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: |
View app.py
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