a.go
package main
/*
#include <stdio.h>
char __attribute__((section(".signature"))) signature[40] ;
int helloFromC() {
printf("hello from C\n");
#!/bin/bash | |
# Before script... | |
# $ mkdir src | |
# $ amd-driver-installer-<version>-x86.x86_64.run --extract src | |
# $ cd src | |
# $ ./packages/Ubuntu/ati-packager.sh --buildpkg source | |
# change this script modalias 6600 to your graphic card | |
# | |
# run this script | |
# |
set pagination off | |
b main | |
r | |
python | |
sys.path.insert(0, './') | |
import supertrace | |
end |
#!/usr/bin/python | |
import gdb | |
INDENT = ' ' | |
class SuperTrace(gdb.Command): | |
old_stack = [] | |
def __init__(self): |
#!/bin/bash | |
# Local Network | |
NETWORK=192.168.16.0 | |
GW=192.168.16.1 | |
# Server IP Address | |
SERVER=123.123.123.123 | |
# Server 對外的 Interface | |
SERVER_IF=eth0 |
#!/usr/bin/env python | |
# usage: | |
# $ pst | |
# $ pst <pid> | |
# $ pst <command> | |
import sys | |
import subprocess as sp | |
import re |
#!/bin/sh | |
if [ `id -u` != "0" ]; then | |
echo You have to run with root user | |
exit 1 | |
fi | |
cat <<EOF | tee /etc/systemd/user/x11vnc-password.service | |
[Unit] | |
Description=x11vnc password |
a.go
package main
/*
#include <stdio.h>
char __attribute__((section(".signature"))) signature[40] ;
int helloFromC() {
printf("hello from C\n");
module example.com | |
replace github.com/coreos/go-systemd => github.com/coreos/go-systemd/v22 v22.0.0 | |
go 1.13 | |
require github.com/coreos/go-systemd v0.0.0-00010101000000-000000000000 // indirect |