Skip to content

Instantly share code, notes, and snippets.

# show all active connections
netstat -napt
@lorenadl
lorenadl / wordpress_ssl_insecure_content_fixer.txt
Created April 19, 2018 15:54
[Wordpress] extension for mixed content: SSL Insecure Content Fixer
insecure content fixer
https://it.wordpress.org/plugins/ssl-insecure-content-fixer/
@lorenadl
lorenadl / rake_commands_db.txt
Created April 24, 2018 08:48
Rake commands for db
UPDATE for rails 3.2.12:
db:create creates the database for the current env
db:create:all creates the databases for all envs
db:drop drops the database for the current env
db:drop:all drops the databases for all envs
db:migrate runs migrations for the current env that have not run yet
db:migrate:up runs one specific migration
db:migrate:down rolls back one specific migration
db:migrate:status shows current migration status
@lorenadl
lorenadl / redirect.php
Created April 24, 2018 09:25
[PHP] Redirect to another site/page
<? header("location: http://www.my_site.ext"); ?>
@lorenadl
lorenadl / markdown_cheatsheet.txt
Created April 24, 2018 10:15
Markdown cheatsheet
#Heading 1
##Heading 2
###Heading 3
####Heading 4
#####Heading 5
######Heading 6
---
Paragraph
@lorenadl
lorenadl / linux_list_users
Created April 26, 2018 14:29
Linux list users command
Linux list all users command
$ cat /etc/passwd
@lorenadl
lorenadl / linux_commands.md
Created April 26, 2018 16:18
Linux commands

Show processes:

ps -afx

Killing a process:

kill -INT prcess_id

Viewing active connections:

@lorenadl
lorenadl / remove_svn.md
Created May 2, 2018 13:09
[Linux + Windows] Remove all .svn directories

How to remove all .svn directories from an application folder

Linux

find . -name .svn -exec rm -rf '{}' \;

Before running a command like that, I often like to run this first:

find . -name .svn -exec ls '{}' \;

@lorenadl
lorenadl / yum_commands.md
Created May 2, 2018 13:23
[Linux] Yum commands

YUM commands

List installed packages:

yum list installed

Search a package:

yum search xxx