Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| function slugify(text) | |
| { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |
| # Fucking scripts to download from chiasenhac, whole album! | |
| import os | |
| from bs4 import BeautifulSoup | |
| import requests | |
| from multiprocessing import Pool | |
| NUMBER_PROCESS = 8 | |
| MUSIC_QUALITY = '320' |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import re | |
| import argparse | |
| import errno | |
| import requests | |
| from bs4 import BeautifulSoup |
| #Compile rsync 3.1.2 | |
| #Follow these instructions in Terminal on both the client and server to download and compile rsync 3.1.2: | |
| #Download and unarchive rsync and its patches | |
| curl -O http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz | |
| tar -xzvf rsync-3.1.2.tar.gz | |
| rm rsync-3.1.2.tar.gz | |
| curl -O http://rsync.samba.org/ftp/rsync/src/rsync-patches-3.1.2.tar.gz | |
| tar -xzvf rsync-patches-3.1.2.tar.gz |
| ### java -jar | |
| java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=y -jar target/cxf-boot-simple-0.0.1-SNAPSHOT.jar | |
| ### Maven | |
| Debug Spring Boot app with Maven: | |
| mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8001" |
| [ | |
| { | |
| "Document": { | |
| "Statement": [ | |
| { | |
| "Action": [ | |
| "directconnect:Describe*", | |
| "ec2:DescribeVpnGateways" | |
| ], | |
| "Effect": "Allow", |
| Description: Creates alerts for root logins | |
| Parameters: | |
| emailRecipients: | |
| Type: CommaDelimitedList | |
| Default: 'xx.xx@xx.co,xx.xx@xx.co' | |
| slackChannel: | |
| Type: String | |
| Default: '#security-task-force' | |
| slackToken: |
| #!/bin/sh | |
| sudo yum install -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm | |
| sudo yum install -y mysql-community-client |
| # Make sure you grab the latest version | |
| curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip | |
| # Unzip | |
| unzip protoc-3.4.0-linux-x86_64.zip -d protoc3 | |
| # Move protoc to /usr/local/bin/ | |
| sudo mv protoc3/bin/* /usr/local/bin/ | |
| # Move protoc3/include to /usr/local/include/ |