What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-27 08:05:02
find php files not used for x days
# /opt/script/delete-old-folders.sh #!/bin/bash prev_count=0 fpath=/var/log/app/app_log.* find $fpath -type d -mtime +10 -exec ls -ltrh {} \; > /tmp/folder.out find $fpath -type d -mtime +10 -exec rm -rf {} \; count=$(cat /tmp/folder.out | wc -l) if... Add solution -
Python 2022-02-26 22:10:05
python rsa
import Crypto from Crypto.PublicKey import RSA from Crypto import Random random_generator = Random.new().read key = RSA.generate(1024, random_generator) #generate public and private keys publickey = key.publickey # pub key export for exchange encrypted... Add solution -
C++ 2022-02-26 16:45:35
string
#A string is a type of data. There are many data types. It can be manipulated. #It can be storerd as a variable myString = "Hello world" #WE can print it: print(myString) #You can append it to arraY: myArr = [] myArr.append(myString) #You can fi... Add solution -
Other 2022-02-26 13:30:03
complex pattern in c
#include /* * nos = Num. of spaces required in the triangle. * i = Counter for the num. of characters to print in each row * skip= A flag for check whether to * skip a character in a row. * */int triangle(int nos, int i, int skip) { char prnt = '*... Add solution -
Python 2022-02-26 06:00:04
twilio rest api "5.7" python sms example
from twilio.rest import TwilioRestClient import twilio print twilio.__version__ # Your Account SID from twilio.com/console account_sid = "AC6791725bc93116fbd42b4cd477996f7d" # Your Auth Token from twilio.com/console auth_token = "30ed212f6... Add solution
Best helpers
Jean Luis
+5
Terry3497
+5
Aown Ali
+5
Ishan Yadav
+5
SunnyHills
+5
Rocky DeHart
+5
Numeri
+5
Martinako
+5
Eve noonan
+5
Cynthia
+5