Skip to content

Instantly share code, notes, and snippets.

:shipit:
o(≧▽≦)o

Stanislas angristan

:shipit:
o(≧▽≦)o
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am angristan on github.
  • I am angristan (https://keybase.io/angristan) on keybase.
  • I have a public key ASCvz4pVclwO1ydYa-7t88TJ4SVEyASogumOwH6c-5yLqgo

To claim this, I am signing this object:

@angristan
angristan / hosts
Last active May 31, 2020
Windows 10 Privacy Hosts file
View hosts
0.0.0.0 choice.microsoft.com
0.0.0.0 choice.microsoft.com.nsatc.net
0.0.0.0 df.telemetry.microsoft.com
0.0.0.0 diagnostics.support.microsoft.com
0.0.0.0 feedback.microsoft-hohm.com
0.0.0.0 feedback.search.microsoft.com
0.0.0.0 feedback.windows.com
0.0.0.0 oca.telemetry.microsoft.com
0.0.0.0 oca.telemetry.microsoft.com.nsatc.net
0.0.0.0 onesettings-bn2.metron.live.com.nsatc.net
@angristan
angristan / h2o.service
Created Nov 17, 2016
h2o webserver systemd init script
View h2o.service
[Unit]
Description=H2O - the optimized HTTP/1, HTTP/2 server
After=network-online.target nss-lookup.target remote-fs.target
[Service]
Type=simple
PIDFile=/run/h2o.pid
ExecStart=/usr/local/bin/h2o --mode master --conf /etc/h2o/h2o.conf
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -TERM $MAINPID
@angristan
angristan / h2o.conf
Created Nov 17, 2016
h2o webserver exemple conf, just in case
View h2o.conf
user: www-data
num-threads: 2
max-connections: 1024
pid-file: /run/h2o.pid
access-log: /var/log/h2o/access.log
error-log: /var/log/h2o/error.log
http1-request-timeout: 10
file.dirlisting: OFF
hosts:
"website.tld:80":
@angristan
angristan / autoexec.cfg
Last active Mar 18, 2017
Personnal CS:GO conf
View autoexec.cfg
// Crosshair
cl_crosshair_drawoutline "1"
cl_crosshair_dynamic_maxdist_splitratio "0.35"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.5"
cl_crosshair_dynamic_splitdist "7"
cl_crosshair_outlinethickness "0.1"
cl_crosshairalpha "1000"
cl_crosshaircolor "1"
cl_crosshaircolor_b "255"
@angristan
angristan / mstdn.io_blocklist.md
Last active Aug 24, 2019
mstdn.io block list
View mstdn.io_blocklist.md

mstdn.io block list

Reminder on block types

Block type Explanation
Reject media Removes locally stored media files and refuses to download any in the future.
Silence Makes the account's/instance's posts invisible to anyone who isn't following them
Silence + reject media Combination of the two above
Suspend Removes all of the account's content, media, and profile data
@angristan
angristan / angristan_crypto_currencies.md
Last active Mar 7, 2020
My cryptocurrency addresses
View angristan_crypto_currencies.md

Thanks for donating!

  • BTC bc1qwjpa374gq9rywnrdt60r2alp8ugjemfnuvm9lf
  • ETH 0x8559064B126196D9ef41685CFc747A7afB91A87A
  • LTC MLL7xq5XHCfvqqA4H82neakeRBHKtDSKXV
@angristan
angristan / ip.php
Created Jan 23, 2018
Get the client IP address and reverse DNS
View ip.php
<?php
echo $_SERVER['REMOTE_ADDR'];
echo "<br>";
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo $hostname;
?>
@angristan
angristan / install_docker.sh
Last active Jun 13, 2020
Script to install Docker and Docker-Compose on Debian
View install_docker.sh
#!/bin/bash
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common sudo
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"
apt-get update
@angristan
angristan / mysql-cheatsheet.md
Last active Jun 27, 2019
MySQL cheatsheet
View mysql-cheatsheet.md

Manage databases

Create database

CREATE DATABASE database;

Delete database

You can’t perform that action at this time.