Skip to content

Instantly share code, notes, and snippets.

stefanmaier@macbookpro:~/tmp/foo$ LC_ALL=de_DE.UTF-8 dotnet run
14046
stefanmaier@macbookpro:~/tmp/foo$ LC_ALL=en_US.UTF-8 dotnet run
14
stefanmaier@macbookpro:~/tmp/foo$ LC_ALL=C dotnet run
14
stefanmaier@macbookpro:~/tmp/foo$
Now playing: Kyle - iSpy (feat. Lil Yachty)
[shuffle on]
Now playing: Lily Allen - Fuck You
[shuffle on]
Now playing: Lily Allen - Fuck You
[shuffle on]
Now playing: Lily Allen - Fuck You
[shuffle on]
Now playing: Shawn Mendes - There's Nothing Holdin' Me Back
[shuffle on]
bool make_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg){
Serial.print("encoding string ");
Serial.println((char* const) arg);
char* const str = (char* const) arg;
if (!pb_encode_tag_for_field(stream, field))
return false;
return pb_encode_string(stream, (uint8_t*)str, strlen(str));
}
root@hosting-glusterfs-2:~# apt-get install xfs_progs
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package xfs_progs
root@hosting-glusterfs-2:~# apt-get install xfs_tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package xfs_tools
tGwGDtww tGwtDtww tGwwDtww
twtwDtww twtwDtww twtwDtww
tGGwDtww tGwwDtww tGtwDtww
completions = {
supson = { value = "¯\\_(ツ)_/¯"; };
tableflip = { value = "(╯°□°)╯︵ ┻━┻"; };
tableback = { value = "┬─┬ ノ( ゜-゜ノ)"; };
gief = { value = "༼ つ ◕_◕ ༽つ"; };
eyes = { value = "ಠ_ಠ"; };
};
#!/usr/bin/env ruby
require 'net/dns'
require 'sinatra'
get '*' do
begin
data = Resolver("_redirect.#{request.host}", Net::DNS::TXT).each_mx.map(&:txt).first
code, rest = data.split(' ')
redirect(rest, code)
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1
hQMOA/UPeXlPtA8wEAv/ZBAjABQQkRH2Rxhq2+yVR3kdu0heAILcdFpwuzGSymek
wS1Avr1VSxkpNkHiAiINlTfhYah8wOfCZ8yl05p1PdB80uYCk7RoaidGUyZteB5O
hElNyc85X8LPi6IwqTcBU5B+Q7YfHm+fmTLYNlxdDiko/ciY0Z6agBFhGRL1Hupk
JMSZ9x57udxK/Apg4TwKwDTuJmnSw69RX0GEoS0+gqqSnATGFAosILoJM4rxROg6
7TCMDxFAZCiCrPPVNJ5w7YqRw45Q4MtKZG6+RcYmgJIGkkc8CkVSwaFiNsPgi/hP
3yZnTOGVV+IZlwNp6St2+1yAivU1peVHlxiHCnqhzvZX7678hwUuDGz8Urhs7xr3
fxZOi7V3l3ZKoJQwJrl6kX2FgPYmmtAEnGNQ03G3/QzPbXq5oBf2XIuPyIuDcxCj
core@core100 /data/services $ fleetctl list-units
UNIT MACHINE ACTIVE SUB
balancer.service 392ebce5.../10.10.10.102 active running
balancerip.service 392ebce5.../10.10.10.102 active running
mysql.service 0bd448ab.../10.10.10.103 active running
mysqlip.service 0bd448ab.../10.10.10.103 active running
worker-discover.wordpress.1.service bc0fe9af.../10.10.10.100 active running
worker-discover.wordpress.2.service 0bd448ab.../10.10.10.103 active running
worker-discover.wordpress.3.service e7c79e69.../10.10.10.110 active running
worker-discover.wordpress.4.service 392ebce5.../10.10.10.102 active running
Data:
etcdctl mkdir /vhosts
etcdctl mkdir /vhosts/foo
etcdctl mkdir /vhosts/foo/backends
etcdctl mkdir /vhosts/foo/hostnames
etcdctl set /vhosts/foo/backends/mybackend "192.168.0.1:8001"
etcdctl set /vhosts/foo/backends/myotherbackend "192.168.1.1:8001"
etcdctl set /vhosts/foo/hostnames/example "example.com"