This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Video Tag</title> | |
<style> | |
figure { | |
text-align: center; | |
} |
This file contains hidden or 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
git config -l (--system ?! ) -> C:\Users\All Users\Application Data\Git\config | |
git config --global -l -> C:\Users\Administrator\.gitconfig | |
git config --local -l -> project\.git\config | |
********************* | |
Linux | |
This file contains hidden or 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
#fire up a new box | |
vagrant init hashicorp/precise64 | |
vagrant up | |
#optional customization in the vm | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install vim | |
sudo apt-get install apache2 | |
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql |
This file contains hidden or 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
# ------------------ NETSH --------------- | |
# | |
#for help: $ netsh /? | |
#NETSTAT | |
# | |
#usefull | |
netstat -bn |
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get install samba | |
#we need a different username and password for sambaserver | |
#for convenience, the user and passsword could be same as the username we are logged in linux | |
sudo smbpasswd -a <user_name> | |
#optional if the user is not the owner of the folder | |
#if apache and the user has is not owner(usually root) we need to chmod with and chown | |
#sudo chmod 2775 /var/www -R | |
#sudo chown root:<user_name> /var/www | |
sudo chown <user_name> /var/opt/folder |
This file contains hidden or 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
Difference between Home,Work,Public is about SHARING policy. | |
Public to be used when using a public Internet connection, for example | |
"Public" Network Profile: -more secure | |
- turn off sharing and not allow others to see your computer | |
"Home" Network- win7 network.Mixed XP,Linux or Max could be dangerous | |
-like an open network, joined by a SINGLE password and supports media sharing | |
"Work" Network- is XP style file sharing- with username and pass to connect to other comps | |
-is safe because is controlled by user account and share permissions, for example | |
in mixed OSs cases. |
This file contains hidden or 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
Function Get-EnabledRules | |
{ | |
Param($profile) | |
$rules = (New-Object -comObject HNetCfg.FwPolicy2).rules | |
$rules = $rules | where-object {$_.Enabled -eq $true} | |
$rules = $rules | where-object {$_.Profiles -bAND $profile} | |
$rules | |
} | |
$networkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}")) |
This file contains hidden or 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
#show language | |
locale | |
#change keyboard quickly | |
loadkeys de | |
#for X | |
setxkbmap de | |
#system wide, if ubuntu | |
sudo dpkg-reconfigure console-setup | |
#toggle us de | |
setxkbmap -option grp:alt_shift_toggle us,de |
This file contains hidden or 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
#show all rules in a table ; you can use alternatively -L | |
sudo iptables -S | |
#show rule number in each of the 3 possible cases: INPUT OUTPUT FORWARD | |
sudo iptables -L --line-numbers | |
#delete a rule with a number; syntax: iptables -D <OUTPUT|INPUT|FORWARD> <line_number> | |
sudo iptables -D OUTPUT 3 | |
#delete all rules in a chain ;chain= INPUT, OUTPUT or FORWARD | |
sudo iptables -F INPUT | |
# |
OlderNewer