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/sh | |
disp_num="${DISPLAY/:/}" | |
systemctl --user start gnome-terminal-server@"$disp_num".service | |
exec /usr/bin/gnome-terminal --app-id org.gnome.Terminal.X"$disp_num" |
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
# not sure if raw or mangle makes more sense, but it seem to work fine as long as it's no "later" than dstnat | |
type filter hook prerouting priority dstnat; policy accept; | |
# the ". iif" part is probably irrelevant for this case, | |
# it should probably be removed if the "usual" behavior of the input traffics needs to be retained | |
# if it's for a "real" WAN, it might be desirable to also drop multicast (and even broadcast?) traffics | |
iifname "$WAN" fib daddr . iif type != { local, broadcast, multicast } drop |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define B 4 | |
static unsigned char* ntb(unsigned char b[], unsigned int n) { | |
b[0] = n >> 24; | |
b[1] = n >> 16; | |
b[2] = n >> 8; |
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
[Unit] | |
Description=dnsmasq - A lightweight DHCP and caching DNS server | |
Documentation=man:dnsmasq(8) | |
BindsTo=netns-temp.service | |
After=network.target netns-temp.service | |
Before=network-online.target nss-lookup.target | |
Wants=nss-lookup.target | |
[Service] | |
NetworkNamespacePath=/run/netns/temp |
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
port=0 | |
dhcp-range=192.168.150.2,192.168.150.252 | |
dhcp-option=option:router,192.168.150.1 | |
dhcp-option=option:dns-server,192.168.150.1 |
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
load -nc %homefilesystem%\NvmExpressDxe.efi | |
connect -r | |
%homefilesystem%\EFI\arch\grubx64.efi |
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
alias 1920='echo Xft.dpi: 144 | xrdb; xrandr --output screen --mode 1920x1080; i3-msg restart' | |
alias 2560='echo Xft.dpi: 192 | xrdb; xrandr --output screen --mode 2560x1600; i3-msg restart' |
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
class A { | |
private int a; | |
// private int b; | |
int b; | |
// private void aa() { | |
// a++; | |
// } |
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
class Meh { | |
@Override | |
protected void finalize() { | |
try { | |
super.finalize(); | |
} catch (Throwable e) { | |
; | |
} | |
System.out.println("\"" + this + "\" " + "destroyed"); | |
} |
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
class Huh { | |
public int huh; | |
public Huh() { | |
huh = 123; | |
} | |
} | |
public class Meh { | |
// Re-implement "toString()" for String |
NewerOlder