Skip to content

Instantly share code, notes, and snippets.

[PROXY.surge_Proxy]
type = "SHADOWSOCKS"
host = "server"
port = port
encryption = "encrypt"
password = "password"
[RULESET.surge]
name = "Surge Ruleset"
rules = [
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <errno.h>
int main(int argc, char **argv) {
if (argc > 1) {
int fd = open(argv[1], O_WRONLY);
if(fd == -1) {
printf("Unable to open the file\n");
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <errno.h>
int main(int argc, char **argv) {
if (argc > 1) {
int fd = open(argv[1], O_RDONLY);
if(fd == -1) {
printf("Unable to open the file\n");