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
import os | |
import shutil | |
import re | |
def changeFileName(files): | |
for file in files: | |
name = file.split("-") | |
extension = name[2].split(".")[1] | |
newFileName = ".".join([name[1],extension]) | |
os.renames(file, newFileName) |
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
var jquery = document.createElement('script'); | |
jquery.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jquery); | |
document.addEventListener("DOMContentLoaded", function(event) { | |
sheet = "title^is_active^phone^country_id^region^street^city^postal_code^desc^latitude^longitude^stores^website^icon^image^position\n"; | |
$('.magasin').each(function(){ | |
/*Dealer Name*/ | |
$(this).children('.nom_mag').children('font').remove(); | |
title = $(this).children('.nom_mag').text(); |
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
<svg preserveAspectRatio="xMinYMin" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" | |
viewBox="0 0 560 1388"> | |
<defs> | |
<mask id="canTopMask"> | |
<image width="560" height="1388" xlink:href="img/can-top-alpha.png"></image> | |
</mask> | |
</defs> | |
<image mask="url(#canTopMask)" id="canTop" width="560" height="1388" xlink:href="can-top.jpg"></image> | |
</svg> |
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
## -*- coding: utf-8 -*- | |
%for inv in objects : | |
<%def carriage_returns(text): | |
return text.replace('\n', '<br />') | |
%> | |
<% setLang(inv.partner_id.lang) %> | |
<html> | |
<head> | |
<style type="text/css"> | |
${css} |
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 | |
ip1=""; | |
ip2=""; | |
changed=0; | |
date1=$( date "+%s" ) | |
while true; do | |
ip1=$(curl -s ifconfig.me/ip); | |
if [[ "$ip1" != "$ip2" ]]; then | |
changed=$(( changed + 1 )); | |
date2=$( date "+%s" ) |
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/sh | |
smtpsrv="smtp.gmail.com" | |
smtpport="587" | |
smtpusr="" | |
smtppwd="" | |
username64=$( echo $smtpusr | base64 ) # $( base64_encode $smtpusr ) | |
password64=$( echo $smtppwd | base64 ) # $( base64_encode $smtppwd ) | |
( | |
echo "EHLO localhost"; sleep 3; |
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 | |
sudo /usr/local/cpanel/bin/backup --force && sudo tail -f "$(sudo find /usr/local/cpanel/logs/cpbackup/ -maxdepth 1 -type f -printf "%T@ %p\n" | sort -n | tail -n 1 | cut -d' ' -f 2-)" |
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
. | |
├── actions | |
├── stores | |
├── views | |
│ ├── Anonymous | |
│ │ ├── __tests__ | |
│ │ ├── views | |
│ │ │ ├── Home | |
│ │ │ │ ├── __tests__ | |
│ │ │ │ └── Handler.js |
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
Show hidden characters
{ | |
"presets": ["es2015"] | |
} |
OlderNewer