This file contains 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
# xset m acceleration threshold | |
# defaults 2/1 4 | |
xset m 1/4 4 |
This file contains 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
<?php | |
namespace AppBundle\Services; | |
use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface; | |
use HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider as BaseClass; | |
use Symfony\Component\Security\Core\User\UserInterface; | |
/** | |
* https://gist.github.com/danvbe/4476697 |
This file contains 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
#!/bin/bash | |
FILENAME=$@ | |
if [ ! -f $FILENAME ]; then | |
echo "File $FILENAME not found!" | |
exit 1 | |
fi | |
while read line; do |
This file contains 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
def _check_cedula(self, identificador): | |
if len(identificador) == 13 and not identificador[10:13] == '001': | |
return False | |
else: | |
if len(identificador) < 10: | |
return False | |
coef = [2,1,2,1,2,1,2,1,2] | |
cedula = identificador[:9] | |
suma = 0 | |
for c in cedula: |
This file contains 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
$app['security.firewalls'] = array( | |
'login' => array( | |
'pattern' => '^/login$', | |
'anonymous' => true, | |
), | |
'admin' => array( | |
'pattern' => '^/admin', | |
'form' => array( | |
'login_path' => '/login', | |
'check_path' => '/admin/login_check'), |