This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.9; | |
import "./modules/Crypto.sol"; | |
contract SmartWallet { | |
struct Call { | |
address to; | |
uint256 value; | |
bytes data; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: | |
# https://www.cloudflare.com/ips | |
# https://support.cloudflare.com/hc/en-us/articles/200169166-How-do-I-whitelist-CloudFlare-s-IP-addresses-in-iptables- | |
for i in `curl https://www.cloudflare.com/ips-v4`; do iptables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done | |
for i in `curl https://www.cloudflare.com/ips-v6`; do ip6tables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done | |
# Avoid racking up billing/attacks | |
# WARNING: If you get attacked and CloudFlare drops you, your site(s) will be unreachable. | |
iptables -A INPUT -p tcp -m multiport --dports http,https -j DROP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.openland.react.anim.hack | |
import android.util.Log | |
import android.view.View | |
import android.view.ViewPropertyAnimator | |
import java.lang.reflect.Constructor | |
import java.lang.reflect.Field | |
object MakeAnimationsFast { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Reconciler from 'react-reconciler'; | |
var tagIndex = 0; | |
function createTag() { | |
return 't' + (tagIndex++); | |
} | |
const createReconciler = (onChanged: () => void) => Reconciler({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IS_FAILING=`systemctl is-failed miner.service` | |
if [ "$IS_FAILING" == "active" ]; then | |
echo "ok" | |
else | |
echo failed | |
exit 2 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
added = set() | |
with open('include_framework/j2objc.h', 'w') as umbrella: | |
for root, directories, filenames in os.walk('include/'): | |
for filename in filenames: | |
if not filename.endswith(".h"): | |
continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) 2014-2015 Actor LLC. <https://actor.im> | |
// | |
import Foundation | |
// Cell automatic registration and dequeuing | |
private var registeredCells = "cells!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/ | |
wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz | |
tar xvf android-sdk_r23.0.2-linux.tgz | |
rm android-sdk_r23.0.2-linux.tgz | |
./android update sdk --no-ui --filter tools,platform-tools,build-tools-21.1.1,build-tools-21.1.0,build-tools-21.0.2,build-tools-21.0.1,build-tools-21.0.0,build-tools-20.0.0,build-tools-19.1.0,build-tools-19.0.3,build-tools-19.0.2,build-tools-19.0.1,build-tools-19.0.0,build-tools-18.1.1,build-tools-17.0.0,android-21,android-20,android-19,android-18,android-16,android-15,android-14,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.telegram.android.ui; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import se.emilsjolander.stickylistheaders.StickyListHeadersListView; | |
/** | |
* Created by ex3ndr on 11.12.13. | |
*/ | |
public class StickyFix extends StickyListHeadersListView { |