Skip to content

Instantly share code, notes, and snippets.

@jehadja
jehadja / expo-skeleton-placeholder.js
Created May 21, 2023 01:51
expo skeleton placeholder with animation
import MaskedView from '@react-native-masked-view/masked-view';
import React, { useState, useEffect, useRef, useMemo } from 'react';
import {
Animated,
Dimensions,
Easing,
StyleSheet,
View,
} from 'react-native';
import { LinearGradient } from 'expo-linear-gradient';
@jehadja
jehadja / clear_log.sh
Created August 17, 2017 13:09 — forked from ET-CS/clear_log.sh
Linux (CentOS) clear log script
#!/bin/bash
# this script clear logs in Linux (made in CentOS)
cd /var/log
truncate -s 0 /var/log/*log
find . -name "*.gz" -type f -delete
find . -name "*.0" -type f -delete
find . -name "*.1" -type f -delete
find . -name "*.log.*" -type f -delete