Skip to content

Instantly share code, notes, and snippets.

@chaodonghu
chaodonghu / follow-instagram.js
Last active April 19, 2024 01:16
Google Chrome script that allows user to mass follow instagram users on another's profile
// Run GOOGLE CHROME - WORKING AS OF DEC 26 2023
// Please @ me in the comments if this stops working, I will try to get it working again within the month
// INSTRUCTIONS
// 1. Open Instagram in Chrome
// 2. Click on "FOLLOWERS" OR "FOLLOWING" on your Instagram profile or a desired user's Instagram profile
// 3. Open developer tools by right clicking on the page and clicking "INSPECT"
// 4. Copy the code below and paste in the developer tools console and press enter to run
// 5. Script will not run if tab is navigated away from, minimized of unfocused (It is recommended to open a new chrome window or push tab to the side and let script run in background)
@scriptdev
scriptdev / .php
Created February 26, 2024 02:51
DESTACAR LINHA ( COR DE FUNDO ) DATAGRID
<?php
$column_vencimento->setTransformer(function($value, $object, $row)
{
if ($value < date('Y-m-d'))
{
$row->style = 'background:#FC7474';
}
$date = new DateTime($value);
@MihailJP
MihailJP / scala.xml
Last active April 19, 2024 01:14
Notepad++ syntax highlighting definition file for Scala
<NotepadPlus>
<UserLang name="Scala" ext="scala" udlVersion="2.0">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments" id="0">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, additional" id="1"></Keywords>
<Keywords name="Numbers, prefixes" id="2">0x</Keywords>
@willianfalbo
willianfalbo / README.md
Last active April 19, 2024 01:13
Install Zsh, Oh-My-Zsh, Fonts-Powerline & Plugins (Ubuntu 18.04+)

Install Zsh, Oh-My-Zsh, Fonts-Powerline & Plugins (Ubuntu 18.04+, MacOS)

Introduction

After following these steps, your terminal will look like:

1. Install Zsh

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

@samselikoff
samselikoff / chart-with-d3.jsx
Last active April 19, 2024 01:11
Diff from "Building an Animated Line Chart with d3, React and Framer Motion" https://www.youtube.com/watch?v=kPbRDn5Fg0Y
import * as d3 from "d3";
import {
eachMonthOfInterval,
endOfMonth,
format,
isSameMonth,
parseISO,
startOfMonth,
} from "date-fns";
import useMeasure from "react-use-measure";
@troggy
troggy / gist:eb5f80e84ac3f8a2c85d
Created June 24, 2014 21:39
Testing bitcoinj P2SH support with WalletTool
# Create first wallet
$ wallet-tool --wallet=first --net=REGTEST create --seed="7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f"
# Create second wallet
$ wallet-tool --wallet=second --net=REGTEST create --seed="7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f00"
# Get xpub of the second wallet
$ wallet-tool --wallet=second --net=REGTEST dump
...omitted...
@rosylilly
rosylilly / gist:3401612
Created August 20, 2012 06:40
先輩と覚える HTTP ステータスコード

先輩に学ぶ HTTP Status Code

超雑にまとめました。修正してください。

登場人物

  • アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
  • 後輩: 頼んでばっかしで役に立たない。
  • サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
  • プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
@gustavohenrique
gustavohenrique / codigos-secretos-android
Created October 16, 2012 20:35
Codigos secretos no Android
Ao digitar os códigos, digite os caracteres sem usar espaço.
* # * # 4636 # * # * – Informações sobre o smartphone (permite que você altere o número do centro de serviço SMS e muito mais).
* 2767 * 3855 # – Hard Reset (USE COM CUIDADO, pois apaga todos os dados e restaura o firmware).
* # * # 34971539 # * # * Mostra informações completas sobre a câmera.
* # * # 7594 # * # * Mudando o comportamento do botão de energia.
* # * # 273283 * 255 * 663282 * # * # * Para um backup rápido de todos os seus arquivos de mídia.
* # * # 197328640 # * # * Ativar modo de teste para a atividade de serviço
* # * # 232339 # * # * OU * # * # 526 # * # * OU * # * # 528 # * # * Testes Wireless Lan
* # * # 232338 # * # * Apresenta Wi-Fi Mac-address