Skip to content

Instantly share code, notes, and snippets.

View anulaibar's full-sized avatar
😘
Walking in the park

Olle Hellgren anulaibar

😘
Walking in the park
  • Rebla
  • Sverige
View GitHub Profile
<style>
#backdrop {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 100;
display: flex;
dir='.'
find="find"
replace="replace"
cd $dir
files=$(git grep -l "$find")
for file in $files; do
sed -i '' -e s/"$find"/"$replace"/g $file
-- Avboka lägenheter
SELECT * FROM projects WHERE id = 7;
SELECT number, assigned_user_id, status FROM properties WHERE project_id = 7 ORDER BY id;
UPDATE properties SET assigned_user_id = null, status = 'AVAILABLE' WHERE project_id = 7;
-- Radera användare
SELECT id, queue_number, first_name, email FROM users WHERE project_id = 7;
DELETE FROM users WHERE project_id = 7;
UPDATE projects SET queue_counter = 0 WHERE id = 7;