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
Zulu
+5
Calista
+5
Shivam Patel
+5
MGA
+5
Carla Walker
+5
Brad Thomas
+5
DJaye
+5
Umesh
+5
Mai0003c
+5
Pc1oad1etter
+5
Loronzo
+5
Lupa
+5
Vermilions
+5
Ian Goldby
+5
Elenaher
+5
Nerrolken
+5
OiciTrap
+5
RLHanout
+5
Hassaan
+5
JBeez
+5