Skip to content

Instantly share code, notes, and snippets.

View eef's full-sized avatar
💭
I may be slow to respond.

Arthur Canal eef

💭
I may be slow to respond.
  • DoStuffMedia
  • Austin, Texas
View GitHub Profile
@idmontie
idmontie / glitch.html
Last active June 15, 2022 12:42
Glitch Text Effect with CSS
<!doctype html>
<html>
<head>
<!-- Based on http://codepen.io/lbebber/pen/ypgql -->
<link href="http://necolas.github.io/normalize.css/3.0.2/normalize.css" rel='stylesheet'/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
<style>
/* Just colors and font sizes */
* {
font-family: sans-serif;
@henriquemenezes
henriquemenezes / postgresql-set-id-seq.sql
Created March 31, 2016 12:23
PostgreSQL set Next ID Sequence Value to MAX(id) from Table
-- Get Max ID from table
SELECT MAX(id) FROM table;
-- Get Next ID from table
SELECT nextval('table_id_seq');
-- Set Next ID Value to MAX ID
SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
@wbotelhos
wbotelhos / clear-sidekiq-jobs.sh
Last active October 23, 2024 14:10
Clear Sidekiq Jobs
require 'sidekiq/api'
# 1. Clear retry set
Sidekiq::RetrySet.new.clear
# 2. Clear scheduled jobs
Sidekiq::ScheduledSet.new.clear