Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Install certbot: wget https://dl.eff.org/certbot-auto chmod a+x .
-
Here is simple solution pacman -Qqen > pkglist.txt pacman --force -S $(< pkglist.txt) mkinitcpio -p linux
-
Create an empty file with the size of your container dd if=/dev/zero bs=1M count=100 of=~/my-container.img Here I’ll use a 100MB container Initialise the LUKS partition on the file and set the initial passphrase. cryptsetup luksFormat ~/mycontainer Open t…
-
$ cat hello.go package main import "fmt" func main() { fmt.Printf("Hello\n") } $ GOOS=windows GOARCH=386 go build -o hello.exe hello.go
-
Example $ ls -l AndroidTest.pdf Angular2Test.pdf BashTest.pdf The simplest way to remove ‘Test’ from any files: rename 's/Test//g' *.pdf $ ls -l Android.pdf Angular2.pdf Bash.pdf Or change ‘Test’ to ‘Hello’ rename 's/Test/Hello/g' *.pdf $ ls -l AndroidTes…
-
From php5.6 to php7.0: Apache: sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart CLI: sudo update-alternatives --set php /usr/bin/php7.0 From php7.0 to php5.6: Apache: sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apach…
-
Ważne jest, by jajka osiągnęły temperaturę pokojową, zanim zaczniemy je gotować.
-
Open PowerShell with Administrator Privileges and type: check the path to your openvpn.exe!
-
A few years ago a multilevel puzzle was published, in which there were 4.87 BTCs to win, now it was the last level and collected already 5BTC, calculated at the current rate of over $62770.00.
-
I like iconv as it handles all accents variations : cat non-ascii.txt | iconv -f utf8 -t ascii//TRANSLIT//IGNORE > ascii.txt
-
How to get a 72h ban in a second after sending a message.
-
Add the following lines to /etc/mosquitto/mosquitto.conf in the “Default Listener” section: port 1883 listener 9001 protocol websockets
-
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) … delete volumes // see: https://github.com/chadoe/docker-cleanup-volumes $ docker volume rm $(docker volume ls -qf dangling=true) $ docker volume ls -qf dangling=t…
-
encryption of the message into zlib from codecs import encode from functools import reduce print reduce(encode, ('utf8', 'zlib', 'hex'), "this is my message on the postcard") #output: 789c2bc9c82c5600a2dc4a85dcd4e2e2c4f45485fc3c85928c548582fce292e4c4a2140…
-
Przyjaciel z dysleksją opisał mi, jak odczuwa czytanie lektury.
-
Today I will demonstrate you how to install the FM radio transmitter on Raspberry Pi.
-
I’m using fast-export: cd ~ git clone https://github.com/frej/fast-export.git git init git_repo cd git_repo ~/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo git checkout HEAD source: https://stackoverflow.com/questions/16037787/convert-mercu…
-
reduce frames to 15 per sec: # ffmpeg -i stepup.mp4 -r 15 stepup15.mp4 make new directory for frames and put to stepup/ a video to split #mkdir stepup/; mkdir yolo_stepup/ split to frames: # ffmpeg -i stepup15.mp4 stepup_%04d.png lets begin the games!
-
Terminal clipboard, check it out :) ctrl + u = Cut to the clipboard ctrl + y = Paste from the clipboard
-
nano /etc/udev/rules.d/10-network.rules SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="08:00:27:a6:ad:0e", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="08:00:27:6e:77:cc", NAME="wlan0" then reboot.
-
1998: Don’t get into strangers’s cars Don’t meet people from the internet 2017: Literally summon strangers from the internet to get into their car
-
To make life a little easier from datetime import datetime MYPOST = """\ --- layout: post title: "{0}" date: {1} +0200 categories: {2} --- here my text """ if __name__ == "__main__": title = raw_input("Title:\n") categories = raw_input("Categories:\n") if…
-
Mark Zuckerberg officially announced that over 2 billion people in the world have a Facebook account As of this morning, the Facebook community is now officially 2 billion people!
-
Download VcXsrv (or any other X server) and run it.
-
server { listen 80; server_name my.example.com; access_log /var/log/nginx/nagios.access.log; error_log /var/log/nginx/nagios.error.log info; expires 31d; #rewrite ^/nagios3/(.*)$ /$1 break; rewrite ^/nagios3/(.*)$ /$1; root /usr/share/nagios3/htdocs; index
-
Local Installation Install jekyll gem install jekyll Creating a Blog Navigate to wherever you want to store your blog files on your local machine, and create a new blog like so: jekyll new awesomeblog This will create an awesomeblog directory containing t…
-
As in the comments, there’s no default editor set - strange - $EDITOR env variable is empty.
-
sudo raspi-config sudo apt-get update sudo apt-get upgrade sudo apt-get install git git clone git://git.drogon.net/wiringPi cd wiringPi .
-
It’s actually super cheap & easy.
-
root@raspberrypi:/var/www# cat /etc/nginx/sites-enabled/www server { listen 80; server_name home.control; root /var/www; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; autoindex on; } location ~ \.php$ { try_files $uri =404;…
-
.post-content ul {list-style: none;} NickServ Register nickname on server: /nick YourNick /msg NickServ REGISTER YourPassword youremail@example.com Login /msg NickServ IDENTIFY YourNick YourPassword Logging In /connect chat.freenode.net 6697 YourNick:Your…
-
systemd is very simple and easy to use, here you can see how to run the program in a screen with the specified user create new file nano /etc/systemd/system/radio.service and put it into a new file [Unit] Description=Radio DJ After=network.target [Service]
-
upstream tunnel { server 127.0.0.1:3000; } server { listen 80; server_name dev.server.tld www.dev.server.tld; #optional location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host
-
First for all we need to build and install x264 git clone --depth 1 git://git.videolan.org/x264 cd x264 .
-
# nano /etc/sysctl.conf # net.ipv4.ip_forward=1 # sysctl -p # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE Enable VPN at boot # systemctl enable openvpn@Japan nano /etc/default/openvpn #AUTOST…
-
If you are having problems with your browser locking up whenever you’re entering a password perform the following change.
-
cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | aplay -c 2 -f S32_LE -r 16000
-
openssl s_client -connect znc.itunix.cloud:6697 </dev/null 2>/dev/null | openssl x509 -in /dev/stdin -noout -fingerprint -sha256 | sed s/://g | cut -c 20- 5A038025E789ED2F1032EB15XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX08FA693 /server add BNC znc.itunix.cloud/6697
-
ssh -R 9000:192.168.1.13:80 -N root@example.com
-
sudo mount /dev/xxxx -o remount-ro /mnt mkdir /backup cd /backup tar --exclude='/backup' --exclude='/mnt/backup' --exclude='/mnt/mnt' -cvjpf mybackup.tar.bz2 /mnt tar –exclude='.
-
run as root sudo -s Save current firewall rules to file iptables-save > /etc/firewall.conf INCLUDE ON BOOT echo '#!
-
<?
-
If you have installed the openvpn server and iptable is blocking the service by default then use these configurations for openvpn to function properly.
-
install your language file from here about:config -> 'general.useragent.locale': 'de' restart Firefox http://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central-l10n/linux-x86_64/xpi/ http://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-centra…
-
# debootstrap --arch i386 squeeze /mnt http://ftp.halifax.rwth-aachen.de/debian # chroot /mnt # apt-get install linux-image-686 # apt-get install grub2 (answer to Continue without installing GRUB?
-
First, create a raw image of the required size.
-
I have prepared a list of applications that I use on my iPhone; the following list does not include all applications I’m using, but only those which can seem to be interesting for some of you. .appBoxs { border-bottom: 1px solid #ccc; margin-top: 10px; pa…
-
Zuckerberg jealous that I have a blog with my name in the domain, decided to open his factory in onions.
-
Start with the dependencies: apt-get install zip unzip ipset Then add this to your existing iptables firewall script: ipset create sfs_block hash:net iptables -I FORWARD -p tcp --dport 80:443 -m set --match-set sfs_block src -j DROP Then a script that upd…
-
For OpenCV 2.4.x cd /path/to/opencv/samples/c/ For OpenCV 3 cd /path/to/opencv/samples/cpp/ Compile g++ -ggdb `pkg-config --cflags --libs opencv` facedetect.cpp -o facedetect run .