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
| <?php | |
| // Uso: $ php sql_to_seeder.php archivo.sql NombreDelSeeder nombre_tabla | |
| if ($argc < 4) { | |
| echo "Uso: php sql_to_seeder.php archivo.sql NombreDelSeeder nombre_tabla\n"; | |
| exit(1); | |
| } | |
| $sqlFile = $argv[1]; |
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
| PS1="\`if [ \$? = 0 ]; | |
| then echo '\[\033[38;5;79m\]\w > \[\033[38;5;99m\]['\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)']\[\033[00m\] | |
| \[\033[30;48;5;6m\]( ._.)φ__\[\033[00m\] ' | |
| else echo '\[\033[38;5;79m\]\w > \[\033[38;5;99m\]['\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)']\[\033[00m\] | |
| \[\033[31m\]( o_o)φ__\[\033[00m\] '; fi | |
| \`" |
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
| #!/bin/bash | |
| echo cleaning /tmp | |
| cd /tmp | |
| find ! -name 'SBo' ! -name . ! -name .. -type d -exec rm -rf {} + | |
| find ! -name . ! -name .. -type f -exec rm -f {} + | |
| echo turn off | |
| shutdown -h now |
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
| //static ip configuration on Slackware | |
| //turn down interface | |
| # ip link set eth0 down | |
| //flush old ip | |
| # ip addr flush dev eth0 up | |
| //add static ip | |
| # ip addr add {ip}/{mask} dev eth0 broadcast + |
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
| #us intl with AltGr key, Slackware | |
| #/etc/X11/xorg.conf.d/90-keyboard-layout.conf | |
| Section "InputClass" | |
| Identifier "keyboard-all" | |
| MatchIsKeyboard "on" | |
| MatchDevicePath "/dev/input/event*" | |
| Driver "evdev" | |
| Option "XkbLayout" "us" | |
| Option "XkbVariant" "altgr-intl" | |
| # Option "XkbOptions" "terminate:ctrl_alt_bksp" |
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
| #/etc/X11/xorg.conf.d/00-keyboard.conf | |
| Section "InputClass" | |
| Identifier "system-keyboard" | |
| MatchIsKeyboard "on" | |
| Option "XkbLayout" "us" | |
| Option "XkbVariant" "altgr-intl" | |
| EndSection |
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
| #!/bin/bash | |
| dhclient -v -4 -pf /root/dhclient.pid $@ |
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
| #!/bin/bash | |
| /usr/bin/cp $1 ~/recycle/$1 | |
| /usr/bin/mv $1 $2 |
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
| #!/bin/bash | |
| /usr/bin/mv $@ ~/recycle/ |
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
| #!/bin/bash | |
| xbacklight -set $@ |
NewerOlder