Skip to content

Instantly share code, notes, and snippets.

View pauloo27's full-sized avatar
:shipit:
Sometimes I feel like the compiler just ignore my comments

Paulo pauloo27

:shipit:
Sometimes I feel like the compiler just ignore my comments
  • Brasil
  • 05:58 (UTC -03:00)
View GitHub Profile
@eta-orionis
eta-orionis / gitea-downgrade-1.23..1.22.sql
Last active January 26, 2026 15:53 — forked from hinrikus/gitea-downgrade-1.23..1.22.sql
Downgrade gitea database (postgresql) from 1.23 to 1.22 revision 310 to 298 for possible migration to forgejo
-- make sure you have a backup
-- tested only with postgresql
alter table issue drop column time_estimate ; -- 311
alter table protected_branch drop column priority; -- 310
drop index "IDX_notification_commit_id", "IDX_notification_issue_id", "IDX_notification_repo_id" , "IDX_notification_source", "IDX_notification_status", "IDX_notification_u_s_uu" , "IDX_notification_updated_by", "IDX_notification_user_id"; -- 309
drop index "IDX_action_r_u_d", "IDX_action_au_r_c_u_d", "IDX_action_c_u", "IDX_action_c_u_d"; -- 308
@sistematico
sistematico / dracula.theme
Created December 30, 2018 00:07
Dracula XFCE Terminal Theme
[Scheme]
Name=Dracula
ColorCursor=#5050fafa7b7b
ColorForeground=#f8f8f8f8f2f2
ColorBackground=#28282a2a3636
TabActivityColor=#5050fafa7b7b
ColorPalette=#000000000000;#9a9a40404646;#90907979b3b3;#929298986363;#3d3d98985a5a;#9a9a53538282;#3a3a4d4d5b5b;#8bfc8bfc8ccc;#4d4d4d4d4d4d;#ffff55555555;#cacaa9a9fafa;#f1f1fafa8c8c;#5050fafa7b7b;#ffff7979c6c6;#8b8be9e9fdfd;#f8f8f8f8f2f2
ColorBold=#f4f47676c3c3
ColorSelectionUseDefault=FALSE
ColorBoldUseDefault=FALSE
@crittermike
crittermike / App.js
Last active May 9, 2022 08:18
Using Google API (gapi) with React
/* global gapi */
const API_KEY = 'YOURAPIKEYHERE';
import React, { Component } from 'react';
class App extends Component {
loadYoutubeApi() {
const script = document.createElement("script");
@jesperorb
jesperorb / cors.md
Last active February 21, 2024 14:17
Handle CORS Client-side

Handle CORS Client-side

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served. This is set on the server-side and there is nothing you can do from the client-side to change that setting, that is up to the server/API. There are some ways to get around it tho.

Sources : MDN - HTTP Access Control | Wiki - CORS

CORS is set server-side by supplying each request with additional headers which allow requests to be requested outside of the own domain, for example to your localhost. This is primarily set by the header:

Access-Control-Allow-Origin