Skip to content

Instantly share code, notes, and snippets.

View skylock's full-sized avatar

Emanuil Copil skylock

  • Cluj-Napoca, Romania
View GitHub Profile
"Imposible, significa que no has encontrado la solución"
## Inversare și înlocuire
Inversează un string folosind recursivitatea.
Înlocuiește un caracter dintr-un string cu un alt string.
## Calculator
Scrie un program care imită un calculator de buzunar în formă prefixată.
Operațiile posibile sunt:
1. adunare/scădere
# Install Telenet Client
dism /online /Enable-Feature /FeatureName:TelnetClient
# Install Telenet Client Deploy .NET Framework 3.5
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
#Allow DPM Agent Push
netsh advfirewall firewall add rule name="Allow DPM Remote Agent Push" dir=in action=allow service=any enable=yes profile=any remoteip=192.168.100.15
UNTAGGED is a regular ethernet data packet
TAGGED is an ethernet data packet with an addition which contains a VLAN ID
A PVID (Port VLAN ID) is an UNTAGGED packet that enters a switch port , the PVID is attched to the untagged packet and forwarded to a VLAN specified by the ID part of the PVID
Tagged traffic: Is used between tag-aware units (Switches and AP's), so they can see what VLAN the traffic belongs to. In short, if you use one cable between two switches, you will have to tag traffic. You can have one untagged all the way around in the network, but the next VLAN's have to be tagged.
Best practice:
VLAN 1 untagged in all of the network, and the rest is tagged. When you need to extract one VLAN to a specific port, you will need to assign the PVID to the correct VLAN.
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
******************************************************************************************
How to decide the priority of execution of Test Cases
******************************************************************************************
After building & validating the testing models several test cases are generated. The next biggest task is to decide the priority for executing them by using some systematic procedure.
The process begins with identification of "Static Test Cases" and "Dynamic Test Runs", brief introduction of which is as under.
Test case: It is a collection of several items and corresponding information, which enables a test to be executed or performing a test run.
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -U postgres
@skylock
skylock / docker-examples.md
Created January 25, 2018 12:25 — forked from thaJeztah/docker-examples.md
Some docker examples

Commit, clone a container

To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.

For example;

docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
@skylock
skylock / docker-rm-images.md
Created January 30, 2018 12:06 — forked from alferov/docker-rm-images.md
Remove all (untagged) images and containers from Docker
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")

References:

Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres