export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS
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/perl -w | |
# 2/2000 krischan at jodies.cx | |
# | |
# 0.14 Release | |
# 0.14.1 Allow netmasks given as dotted quads | |
# 0.15 Colorize Classbits, Mark new bits in network | |
# 0.16 25.9.2000 Accept <addr>/<cidr> as first argument | |
# Print <pre> tag in the script | |
# 0.17 Bugfix |
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
char** explode(char delimiter, char* str) { | |
int l = strlen(str), i=0, j=0, k=0; | |
char x = NULL; | |
char** r = (char**)realloc(r, sizeof(char**)); | |
r[0] = (char*)malloc(l*sizeof(char)); | |
while (i<l+1) { | |
x = str[i++]; | |
if (x==delimiter || x=='\0') { | |
r[j][k] = '\0'; | |
r[j] = (char*)realloc(r[j], k*sizeof(char)); |
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
// program | |
package main | |
import "os/signal" | |
import "os" | |
import "fmt" | |
import "syscall" | |
import "time" | |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
obj-m := asus_fan.o | |
KDIR := /lib/modules/$(shell uname -r)/build | |
PWD := $(shell pwd) | |
all: | |
$(MAKE) -C $(KDIR) M=$(PWD) modules | |
install: | |
# just copy the .ko file anywhere below: | |
# /lib/modules/$(uname -r)/ |
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
A very basic gravatar privacy proxy | |
This is only very basic!!! | |
TODO: | |
- Cache | |
- GET validation | |
Install | |
- Put the script in the webserver directory |
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
## Systemd user unit file for pulseaudio-dlna | |
# Copy to: ~/.config/systemd/user/pulseaudio-dlna.service | |
# Enable: systemctl --user enable pulseaudio-dlna | |
[Unit] | |
Description=PulseAudio-DLNA Service | |
[Install] | |
WantedBy=default.target |