Skip to content

Instantly share code, notes, and snippets.

Klaus cgonzalezdai

Block or report user

Report or block cgonzalezdai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View agregar sources kali a ubuntu-debian-raspbian
sudo nano /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://old.kali.org/kali sana main non-free contrib
# For source package access, uncomment the following line
# deb-src http://old.kali.org/kali sana main non-free contrib
deb http://old.kali.org/kali moto main non-free contrib
# For source package access, uncomment the following line
# deb-src http://old.kali.org/kali moto main non-free contrib
@cgonzalezdai
cgonzalezdai / .rtorrent.rc
Created Dec 31, 2016 — forked from bryanjswift/.rtorrent.rc
rtorrent configuration file with description
View .rtorrent.rc
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 1
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
View comandos-linux.md

###comprime un fichero o directorio en archive.tar.gz

tar -czvf archive.tar.gz /path/to/directory-or-file 

###descomprime el fichero archive.tar.gz en la carpeta /temp

tar -xzvf archive.tar.gz -C /temp 
@cgonzalezdai
cgonzalezdai / promesa.js
Created Aug 31, 2016
Ejemplo básico de promesa.
View promesa.js
var promesa = new Promise (function (resolve, reject) {
//consulta asíncrona angular
$http(consulta).success(function (resp){
// hacemos cosas con la respuesta de la consulta
resolve(true);
}).error(function() {
reject(false);
})
});
promesa.then(function(resp) {
@cgonzalezdai
cgonzalezdai / como-subir-un-proyecto-local-a-github.md
Last active Feb 19, 2020
Como subir un proyecto local a github
View como-subir-un-proyecto-local-a-github.md

Como subir un proyecto local a github.

desde la web de github

Creamos un nuevo repositorio en https://github.com. Le damos nombre, descripción, seleccionamos si va a ser un proyecto publico o privado si es el caso, y dejamos el check de crear README sin marcar. Le damos a crear repositorio y con esto ya tenemos el repositorio donde alojaremos nuestro proyecto.

desde la terminal del equipo donde esta el proyecto que queremos subir a github

Nos vamos a la carpeta del proyecto y ejecutamos estos comandos.

git init

git add .
@cgonzalezdai
cgonzalezdai / ExampleActivity.js
Last active Sep 8, 2015
Implementing the lifecycle callbacks
View ExampleActivity.js
// code from http://developer.android.com/guide/components/activities.html#ImplementingLifecycleCallbacks
public class ExampleActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// The activity is being created.
}
@Override
protected void onStart() {
You can’t perform that action at this time.